Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamsocket/driftdb
A real-time data backend for browser-based applications.
https://github.com/jamsocket/driftdb
Last synced: 7 days ago
JSON representation
A real-time data backend for browser-based applications.
- Host: GitHub
- URL: https://github.com/jamsocket/driftdb
- Owner: jamsocket
- License: mit
- Created: 2023-01-22T21:42:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-22T13:40:30.000Z (6 months ago)
- Last Synced: 2025-02-13T16:07:41.117Z (8 days ago)
- Language: TypeScript
- Homepage: https://driftdb.com
- Size: 10.6 MB
- Stars: 956
- Watchers: 5
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - jamsocket/driftdb - A real-time data backend for browser-based applications. (TypeScript)
README
# DriftDB
[](https://github.com/drifting-in-space/driftdb)
[](https://crates.io/crates/driftdb)
[](https://docs.rs/driftdb/)
[](https://driftdb.com/)
[](https://github.com/drifting-in-space/driftdb/actions/workflows/test.yml)
[](https://discord.gg/N5sEpsuhh9)DriftDB is a real-time data backend for browser-based applications.
For more information, see [driftdb.com](https://driftdb.com).
## Local Development
### TypeScript libraries
To prepare the environment, install the dependencies and run a turborepo build:
# from repo root
cd js-pkg
npm i
npm run buildTo run demos, run:
# from repo root
cd js-pkg/apps/demos
npm run devTo test the TypeScript libraries, first run a local development server:
# from repo root
cargo run -p driftdb-serverThen, with the local development server running:
# from repo root
cd js-pkg/packages/driftdb
npm test### Server
Server development requires the Rust toolchain (including `cargo`) to be installed.
Developing and deploying the `driftdb-worker` (Cloudflare worker) also requires Cloudflare's
Wrangler tool.To run tests:
# from repo root
cargo testTo run a local development server:
cargo run -p driftdb-server
For instructions on `driftdb-worker`, see `driftdb-worker/README.md`.
## Structure of this repo
- `docs/`: main online documentation and website for driftdb, available on the web at [driftdb.com](https://driftdb.com).
- `driftdb/`: core Rust driftdb implementation.
- `driftdb-server/`: Rust crate of driftdb dev server.
- `driftdb-worker/`: driftdb implementation on Cloudflare Workers.
- `js-pkg/`: JavaScript package root (turborepo monorepo).
- `apps/demos/`: next.js project containing several demos, available on the web at [demos.driftdb.com](https://demos.driftdb.com).
- `packages/driftdb/`: JavaScript client library for driftdb.
- `packages/driftdb-react/`: Higher-level React hook-based interface to driftdb.
- `packages/driftdb-ui/`: React-based debug UI for driftdb, available on the web at [ui.driftdb.com](https://ui.driftdb.com).