MCPcopy
hub / github.com/livestorejs/livestore

github.com/livestorejs/livestore @v0.4.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.4.0 ↗
4,109 symbols 13,878 edges 1,477 files 396 documented · 10%
README

LiveStore Logo

What LiveStore does

  • 🏰 Provide a powerful data foundation for your app.
  • ⚡ Reactive query layer with full SQLite support.
  • 🔌 Adapters for most platforms (web, mobile, server/edge, desktop).
  • 📐 Flexible data modeling and schema management.
  • 📵 Support true offline-first workflows.
  • 💥 Custom merge conflict resolution.
  • 🔄 Sync with a supported provider or roll your own.

Getting Started

How LiveStore works

LiveStore is a fully-featured, client-centric data layer (replacing libraries like Redux, MobX, etc.) with a reactive embedded SQLite database powered by real-time sync (via event-sourcing).

How LiveStore works

  1. Instant, reactive queries to your local SQLite database (via built-in query builder or raw SQL).
  2. Data changes are commited to the store, applied instantly and synced across clients.
  3. Change events are persisted locally and synced across clients (and across tabs).
  4. Events are instantly applied to the local database via materializers.
  5. Query results are reactively and synchronously updated in the next render.
  6. The LiveStore sync backend propagates changes to all connected clients.

If you’d like to learn more about how LiveStore works under the hood, feel free to check out our in-depth guides in the documentation and dive into topics like:

License

Livestore is licensed under the Apache License 2.0.

Extension points exported contracts — how you extend this code

ClientDoWithRpcCallback (Interface)
(no doc) [8 implementers]
packages/@livestore/common-cf/src/do-rpc/server.ts
ProviderEntry (Interface)
Shape of each entry in the provider registry.
tests/sync-provider/src/providers/registry.ts
EventsVisualizerProps (Interface)
* Visualizes LiveStore events as a title with event boxes. * Used for documentation to illustrate event flow.
docs/src/components/EventsVisualizer.tsx
PreviewOptions (Interface)
* Netlify Dev only runs edge functions when it proxies to a user-provided * origin. The Netlify adapter also disables `
docs/scripts/preview-server.ts
DiagramCacheEntry (Interface)
(no doc)
packages/@local/astro-tldraw/src/cache.ts
TExistingRuleset (Interface)
(no doc)
scripts/src/commands/github.ts
ImportMeta (Interface)
(no doc)
tests/integration/src/ambient.d.ts
PreparedStatement (Interface)
(no doc)
tests/wa-sqlite/test/lib/lib.ts

Core symbols most depended-on inside this repo

map
called by 581
packages/@livestore/wa-sqlite/src/FacadeVFS.js
get
called by 512
packages/@livestore/sqlite-wasm/src/FacadeVFS.ts
join
called by 383
packages/@livestore/wa-sqlite/src/FacadeVFS.js
set
called by 289
packages/@livestore/wa-sqlite/src/FacadeVFS.js
commit
called by 270
packages/@livestore/livestore/src/effect/LiveStore.ts
toString
called by 264
packages/@livestore/wa-sqlite/src/FacadeVFS.js
filter
called by 219
packages/@livestore/wa-sqlite/src/FacadeVFS.js
update
called by 180
packages/@livestore/wa-sqlite/docs/assets/main.js

Shape

Function 2,265
Class 835
Method 779
Interface 230

Languages

TypeScript100%

Modules by API surface

packages/@livestore/sync-s2/src/http-client-generated.ts135 symbols
packages/@livestore/wa-sqlite/src/types/index.d.ts110 symbols
packages/@livestore/wa-sqlite/src/FacadeVFS.js89 symbols
packages/@local/astro-twoslash-code/src/cli/snippets.ts59 symbols
packages/@livestore/common/src/devtools/devtools-messages-leader.ts54 symbols
packages/@livestore/utils/src/browser/WebError.ts46 symbols
packages/@livestore/common/src/devtools/devtools-messages-client-session.ts46 symbols
packages/@livestore/sqlite-wasm/src/cf/CloudflareWorkerVFS.ts44 symbols
packages/@livestore/sqlite-wasm/src/FacadeVFS.ts44 symbols
packages/@livestore/wa-sqlite/docs/assets/main.js39 symbols
packages/@livestore/wa-sqlite/src/examples/IDBBatchAtomicVFS.js38 symbols
scripts/src/commands/devtools-artifact.ts36 symbols

Dependencies from manifests, versioned

@astrojs/check0.9.4 · 1×
@astrojs/netlify6.5.9 · 1×
@astrojs/react4.3.0 · 1×
@astrojs/starlight0.35.2 · 1×
@astrojs/starlight-tailwind4.0.1 · 1×
@automerge/automerge3.2.0 · 1×
@automerge/react2.5.0 · 1×
@babel/core7.28.0 · 1×
@babel/plugin-syntax-import-attributes7.27.1 · 1×
@babel/runtime7.28.2 · 1×
@biomejs/biome2.3.8 · 1×
@changesets/cli2.31.0 · 1×

Datastores touched

electricDatabase · 1 repos

For agents

$ claude mcp add livestore \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact