FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

db: add SQLite backend for mobile/embedded environments · Issue #154 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

db: add SQLite backend for mobile/embedded environments #154

Description

MongoDB works great for servers but won't run on mobile (Termux/Android, iOS) or embedded environments.

A SQLite backend for the /db/ route would provide the same JSON-LD document storage with:

  • No daemon process required
  • Single file storage
  • Works on mobile via better-sqlite3 or sql.js (pure WASM)

The storage API in src/db/store.js (findOne, upsertOne, deleteOne, listByPrefix) stays the same — just a different backend implementation.

Could auto-detect: use MongoDB if --mongo is set, fall back to SQLite otherwise via --db-sqlite or similar flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pluginCould be implemented as a plugin (#206); core/plugin line defined in #564

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL