live-state is a high-performance, real-time sync engine written in TypeScript.
- Real-time bidirectional state synchronization
- Built-in client store with fine-grained reactive
- Optimistic updates
- Built-in ORM
This repository is organized as a pnpm monorepo:
packages/live-state: Core synchronization engine (client/server API).examples/ls-imp: Reference implementation.examples/api: Server example using Express and WebSockets.examples/storefront: Frontend demo showing live-state in action.
Important
Live-state is currently in alpha. It's not ready for production use. Use at your own risk.
pnpm add @live-state/syncClone the repository and install dependencies:
git clone https://github.com/pedroscosta/live-state.git
cd live-state
pnpm installpnpm buildWatch for changes and rebuild:
pnpm devDetailed API documentation is available in the packages/live-state/src directory.
Contributions are welcome! Please open issues and pull requests.
Apache License 2.0