Show HN: Doculite – Use SQLite Like Firestore

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • doculite

    Use SQLite as a Document Database

  • Found where you're using those: https://github.com/thenorthbay/doculite/blob/c05d98c209d0031...

    It looks like your tables have a single value column and a id generated column that extracts $.id from that value:

          CREATE TABLE IF NOT EXISTS ${collection} (

  • better-sqlite3

    The fastest and simplest library for SQLite3 in Node.js.

  • better-sqlite3 is orders of magnitude faster than the async SQLite bindings. We found this to be true when testing SQLite options for Notion's desktop app anyways.

    https://github.com/WiseLibs/better-sqlite3#why-should-i-use-...

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • surrealdb

    A scalable, distributed, collaborative, document-graph database, for the realtime web

  • That is an interesting approach.

    > 6) SQLite is a proven, stable, and well-liked standard.

    How does adding this adapter on top affect the stability?

    Have you looked at SurrealDB? - https://surrealdb.com/

    Seems like it would provide you with what you need.

  • kvstore-sqlite

    Basic key-value store for SQLite databases

  • Interesting project! I have lately been trying out these cool and perhaps in some way similar sqlite libraries:

    - https://github.com/haxtra/kvstore-sqlite (Basic key-value store for SQLite databases.)

    - https://github.com/haxtra/super-sqlite3 (Fast SQLite library with optional full db encryption, simple query builder, and a host of utility features, all in one neat package.)

    - https://github.com/haxtra/live-object (Standard javascript object with built-in JSON serialization to file. Dreams do come true sometimes.)

    All from github user: https://github.com/haxtra

    I think the super-sqlite3 source might also be an inspiration for the 'driver' topic: "super-sqlite3 is a thin wrapper around better-sqlite3-multiple-ciphers, which extends better-sqlite3 (the fastest SQLite library for node.js) with full database encryption using SQLite3MultipleCiphers. super-sqlite3 then adds its own query builder and other convenience features."

    And do check out this user's XRay (JavaScript object browser component) library for your preferred component framework.

    In my bookmarks I also found these other related and interesting links:

  • super-sqlite3

    Fast SQLite library with optional full db encryption, simple query builder, and a host of utility features, all in one neat package

  • Interesting project! I have lately been trying out these cool and perhaps in some way similar sqlite libraries:

    - https://github.com/haxtra/kvstore-sqlite (Basic key-value store for SQLite databases.)

    - https://github.com/haxtra/super-sqlite3 (Fast SQLite library with optional full db encryption, simple query builder, and a host of utility features, all in one neat package.)

    - https://github.com/haxtra/live-object (Standard javascript object with built-in JSON serialization to file. Dreams do come true sometimes.)

    All from github user: https://github.com/haxtra

    I think the super-sqlite3 source might also be an inspiration for the 'driver' topic: "super-sqlite3 is a thin wrapper around better-sqlite3-multiple-ciphers, which extends better-sqlite3 (the fastest SQLite library for node.js) with full database encryption using SQLite3MultipleCiphers. super-sqlite3 then adds its own query builder and other convenience features."

    And do check out this user's XRay (JavaScript object browser component) library for your preferred component framework.

    In my bookmarks I also found these other related and interesting links:

  • live-object

    Standard javascript object with built-in JSON serialization to file

  • Interesting project! I have lately been trying out these cool and perhaps in some way similar sqlite libraries:

    - https://github.com/haxtra/kvstore-sqlite (Basic key-value store for SQLite databases.)

    - https://github.com/haxtra/super-sqlite3 (Fast SQLite library with optional full db encryption, simple query builder, and a host of utility features, all in one neat package.)

    - https://github.com/haxtra/live-object (Standard javascript object with built-in JSON serialization to file. Dreams do come true sometimes.)

    All from github user: https://github.com/haxtra

    I think the super-sqlite3 source might also be an inspiration for the 'driver' topic: "super-sqlite3 is a thin wrapper around better-sqlite3-multiple-ciphers, which extends better-sqlite3 (the fastest SQLite library for node.js) with full database encryption using SQLite3MultipleCiphers. super-sqlite3 then adds its own query builder and other convenience features."

    And do check out this user's XRay (JavaScript object browser component) library for your preferred component framework.

    In my bookmarks I also found these other related and interesting links:

  • tinybase

    The reactive data store for local‑first apps.

  • - https://dgl.cx/2020/06/sqlite-json-support (An article about SQLite as a document database, using the relatively new 'genrated columns' feature of sqlite 3.31.0, which you seem to be using)

    - https://www.npmjs.com/package/best.db (easy and quick storage)

    - https://tinybase.org (This project seems to be an even more similar idea to Doculite) https://github.com/tinyplex/tinybase (The reactive data store for local-first apps.)

    Good luck with your project!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Socio

    A WebSocket Real-Time Communication (RTC) API framework for the Web

  • I forgot to share this very cool alternative approach to realtime reactivity, via websockets, by subscribing to actual raw queries from the frontend!

    - https://github.com/Rolands-Laucis/Socio

    - https://www.youtube.com/watch?v=5MxAg-h38VA&list=PLuzV40bvrS... (video updates of the code and functionality)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts