https://github.com/pedroscosta/live-state
High-performance, real-time sync engine written in TypeScript
https://github.com/pedroscosta/live-state
nodejs react sync-engine
Last synced: about 2 months ago
JSON representation
High-performance, real-time sync engine written in TypeScript
- Host: GitHub
- URL: https://github.com/pedroscosta/live-state
- Owner: pedroscosta
- License: apache-2.0
- Created: 2025-04-30T02:52:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-20T21:46:17.000Z (2 months ago)
- Last Synced: 2026-03-21T12:51:46.973Z (2 months ago)
- Topics: nodejs, react, sync-engine
- Language: TypeScript
- Homepage: https://live-state.vercel.app
- Size: 2.22 MB
- Stars: 35
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Roadmap: ROADMAP.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
# live-state
[](https://codspeed.io/pedroscosta/live-state?utm_source=badge)
live-state is a high-performance, real-time sync engine written in TypeScript.
## Features
- Real-time bidirectional state synchronization
- Built-in client store with fine-grained reactive
- Optimistic updates
- Built-in ORM
## Monorepo Structure
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.
## Getting Started
### Installation
> [!IMPORTANT]
> Live-state is currently in alpha. It's not ready for production use. Use at your own risk.
```bash
pnpm add @live-state/sync
```
### Development
Clone the repository and install dependencies:
```bash
git clone https://github.com/pedroscosta/live-state.git
cd live-state
pnpm install
```
### Building
```bash
pnpm build
```
### Development
Watch for changes and rebuild:
```bash
pnpm dev
```
## Documentation
Detailed API documentation is available in the `packages/live-state/src` directory.
## Contributing
Contributions are welcome! Please open issues and pull requests.
## License
Apache License 2.0