Files
turso/bindings/javascript/sync
Glauber Costa 1679062d8c docs: drop the beta warning for 0.7
Turso runs in production at multiple organizations, so the "this
software is in BETA, use caution with production data" warning no
longer reflects reality. It appeared in the main README, was
copy-pasted in 11 bindings READMEs (what users see on npm, PyPI, and
pkg.go.dev), and was printed by tursodb at every shell startup.

- README: remove the warning blockquote from About, leaving a one-line
  status pointer. Rewrite the production-readiness FAQ to lead with
  production use and the testing story, keeping the honest caveats in
  softer form: not yet 1.0, some features experimental, keep backups
  as with any database. Add a FAQ on SQLite compatibility (gap tracked
  in COMPAT.md, closing quickly, required for 1.0), and fix the libSQL
  FAQ, which still claimed Turso Database is not production ready.
- bindings READMEs: replace the warning with the same softened status
  line, linking to the FAQ.
- cli: remove the startup banner line entirely, matching the SQLite
  shell.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 10:56:57 -05:00
..
2025-09-10 22:35:57 +04:00
2026-07-03 10:56:57 -05:00

Turso Sync for JavaScript

npm

Chat with other users of Turso on Discord


About

This package is for syncing local Turso databases to the Turso Cloud and back.

Turso Database runs in production today at multiple organizations. It has not yet reached 1.0, so as with any database we recommend keeping backups — see the FAQ for where the project stands.

Installation

npm install @tursodatabase/sync

Getting Started

To sync a database hosted at Turso Cloud:

import { connect } from '@tursodatabase/sync';

const db = await connect({
    path: 'local.db',                // path used as a prefix for local files created by sync-engine
    url: 'https://<db>.turso.io',    // URL of the remote database: turso db show <db>
    authToken: '...',                // auth token issued from the Turso Cloud: turso db tokens create <db>
    clientName: 'turso-sync-example' // arbitrary client name
});

// db has same functions as Database class from @tursodatabase/database package but adds few more methods for sync:
await db.pull(); // pull changes from the remote
await db.push(); // push changes to the remote
await db.sync(); // pull & push changes

License

This project is licensed under the MIT license.

Support