trailbase/examples/tanstack-db-sync
2026-04-08 14:05:45 +02:00
..
screenshots Docs: update roadmap. 2025-08-05 12:45:33 +02:00
src Move TanStack/db example to a less missleading location, document it and update JS dependencies. 2025-08-05 11:50:02 +02:00
traildepot Move "main" DB migrations into <traildepot>/migrations/main to follow latest best practices. 2025-12-12 13:04:02 +01:00
.gitignore Move TanStack/db example to a less missleading location, document it and update JS dependencies. 2025-08-05 11:50:02 +02:00
.prettierrc Move TanStack/db example to a less missleading location, document it and update JS dependencies. 2025-08-05 11:50:02 +02:00
eslint.config.js Move TanStack/db example to a less missleading location, document it and update JS dependencies. 2025-08-05 11:50:02 +02:00
index.html Move TanStack/db example to a less missleading location, document it and update JS dependencies. 2025-08-05 11:50:02 +02:00
package.json Update Rust and JS dependencies. 2026-04-08 14:05:45 +02:00
README.md Move TanStack/db example to a less missleading location, document it and update JS dependencies. 2025-08-05 11:50:02 +02:00
tsconfig.json Cleanup: move all Rust code into a crates/ directory. 2025-08-07 10:02:32 +02:00
vite.config.ts Move TanStack/db example to a less missleading location, document it and update JS dependencies. 2025-08-05 11:50:02 +02:00

Local-First Sync with TanStack/db

TrailBase is officially supported backend for TanStack/db 🎉: https://www.npmjs.com/package/@tanstack/query-db-collection.

For a more comprehensive example showcasing the query, Electrict and TrailBase integration, check out the official ToDo example.

The example here is a very minimal, early proof-of-concept. It pre-dates the official one and at this point mostly serving as a jump-off point to the official material and as a canary for us to validate the integration.