BASE

LiveStore

LiveStore

Database / data tool · Free

A local-first data layer with SQLite and event synchronization: it helps build fast applications with local state and shared data.

Also known as: livestorejs/livestore; livestore; livestore-js; live-store

Resource illustration: LiveStore

Open resource ↗

What you can use for free

Code and local use under Apache-2.0.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Create a local-first application with event synchronization
  • Connect the UI to local queries and test event sync between clients

Example workflow

A possible workflow; this is not a report of hands-on testing.

Create a local-first application with event synchronization.

Before you start

  • A schema, test dataset, and queries.
  • A supported database or runtime.

Steps

  1. Define events and the application's local SQLite data model.
  2. Connect the UI to local queries and test event sync between clients.
  3. Check schema changes, indexes, and data recovery.

Check your result

  • Query results match the reference data.
  • Check access permissions, backup recovery, and load before production use.

Choosing LiveStore

Create a local-first application with event synchronization

Choose this when

  • Create a local-first application with event synchronization
  • Connect the UI to local queries and test event sync between clients

Consider alternatives when

  • When choosing for this topic, compare LiveStore with Automerge. A candidate to compare under the topic: Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
  • When choosing for this topic, compare LiveStore with Liveblocks. A candidate to compare under the topic: Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

Requirements

  • Define events, SQLite schema/materializers, and a sync provider; select your platform's adapter.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
  • The library does not include free sync hosting; offline workflow support does not guarantee a chosen conflict policy.

Frequently asked questions

What can you use for free in LiveStore?

Code and local use under Apache-2.0.

What additional costs might arise with LiveStore?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for LiveStore?

Apache-2.0 for the code; third-party components retain their own terms.

How do you get started with LiveStore?

Define events and the application's local SQLite data model. Connect the UI to local queries and test event sync between clients. Check schema changes, indexes, and data recovery.

How does LiveStore connect events, local SQLite, and reactive UI?

Change events are stored locally and synchronized between clients and tabs. Materializers apply events to SQLite, and reactive queries update the UI; a query builder and raw SQL are available. The sync backend distributes changes to connected clients. Use a supported provider or implement your own; configure merge conflict resolution separately.

Related tasks and approaches

  • Automerge

    A candidate to compare under the topic: Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

  • Liveblocks

    A candidate to compare under the topic: Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

  • PartyKit

    A candidate to compare under the topic: Realtime and notifications. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

License

Apache-2.0 for the code; third-party components retain their own terms.

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Technologies and topics

  • LiveStore
  • database
  • Development

Sources

Other resources