litefs-js
sqld
litefs-js | sqld | |
---|---|---|
7 | 9 | |
157 | 917 | |
0.0% | - | |
3.4 | 9.6 | |
3 months ago | 7 months ago | |
TypeScript | Rust | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
litefs-js
- Syncing Only Specific Notes
-
Why sqlite3 temp files were renamed 'etilqs_*' (2006)
Fly[1] uses it
1: https://fly.io/blog/introducing-litefs/
-
Low-cost website backend solution: Can I host a MySQL database on a local machine and access it online for my small website?
Check this series of articles out: 1, 2, 3, 4, 5, 6, 7.
- Help me sell sqlite to my boss
-
SQLite the only database you will ever need in most cases
Also worth mentioning Fly.io's work on LiteStream [1] and LiteFS [2] giving SQLite important S3 DR/reliability & multi-node replication and scalability opens SQLite up to even more use-cases.
We're making use of this ourselves in https://blazordiffusion.com which runs entirely on SQLite, using Litestream to replicate it to Cloudflare's R2 object storage which is running on a single Hetzner US Cloud VM at €13 /mo.
As we believe SQLite + Litestream is a very cost effective solution that can support a large number of App's data requirements we've added first-class support to add SQLite + Litestream support in our Project templates [3] which uses GitHub Actions to run Docker compose App deployments along with setting up Litestream replication to AWS S3, Azure Blob Storage and SFTP in a sidecar container that also includes support running DB Migrations on Server with Rollback on failure. If anyone's looking to do something similar, the GitHub Actions that enable this are being maintained at [4].
[1] https://litestream.io
[2] https://fly.io/blog/introducing-litefs/
[3] https://docs.servicestack.net/ormlite/litestream
[4] https://github.com/ServiceStack/mix/tree/master/actions
- GitHub - fly-apps/litefs-js: JavaScript utilities for working with LiteFS on Fly.io
- Litefs-JS: JavaScript utilities for working with LiteFS on Fly.io
sqld
-
LiteFS Cloud: Distributed SQLite with Managed Backups
There's https://github.com/libsql/sqld , but sqlite's concurrency model doesn't always work well with long-lived transactions (and just the network hop can be slower than a local transaction), especially if you want to write.
-
Get started with libSQL, a next-gen fork of SQLite
For instructions on how to build sqld from source, see the docs.
- Help me sell sqlite to my boss
-
Litestream is awesome for backing up sqlite databases
I also discovered https://github.com/libsql/sqld/ which provides similar functionality ("Bottomless replication"), and exposes the database over the network via the Postgres protocol. I haven't played with this yet, but it would be neat to try running some apps that require Postgres with this.
-
Early impressions of Turso, the edge database from ChiselStrike
There are some language-specific clients suited for data transaction with a Turso database, such as @libsql/client for TypeScript, libsql-client for Python, and libsql-client for Rust(currently works with Cloudflare workers), but for simplicity, we’re going to use curl scripts. We’ll interact with the database by sending HTTP POST requests containing the JSON-encoded SQL queries that we’d otherwise run on the SQL shell as already demonstrated. By supporting database interaction via the HTTP protocol, Turso guarantees easy access from all types of applications, especially edge functions.
-
SQLite-based databases on the Postgres protocol? Yes we can
- And you can embed it in your application and it will really talk to a "SQLite" database over the network: https://github.com/libsql/sqld (not a lot on consistency, I wonder how multiple writers are handled?)
- In 3 months, libsql released WASM functions, S3 WAL and network database sqld
- Sqld – a server mode for libSQL (SQLite fork) using the PostgreSQL wire protocol
- Sqld is a server mode for libSQL
What are some alternatives?
SQLite - Official Git mirror of the SQLite source tree
mycelite - Mycelite is a SQLite extension that allows you to synchronize changes from one instance of SQLite to another.
cheapo_website - An experiment in production SQLite on render.com and fly.io
StorX - PHP library for flat-file data storage
SQLite - Unofficial git mirror of SQLite sources (see link for build instructions)
StorX-API - A REST API for StorX
postgresql-embedded - Embedded PostgreSQL Server
stream-sqlite - Python function to extract rows from a SQLite file while iterating over its bytes
donutdb - Store and query a sqlite db directly backed by DynamoDB.
popcorn-time - Example application using libSQL's sqld + express + Vue.js
sqlite-y-crdt - Y-CRDT extension for SQLite
litestack