Quickstart
Let's make a super-fast, reactive web app using Electric with TanStack DB.
✨ Just want to see it in action?
See the app running here or fork it on StackBlitz.
Get started
Run the starter script:
shell
npx @electric-sql/start my-electric-appStart the dev server:
shell
pnpm devOpen https://localhost:5173.
See the real-time sync
In another terminal, connect to Postgres using psql:
shell
pnpm psqlUpdate the project name:
sql
UPDATE projects SET name = 'Baz bam!';The app updates instantly in real-time — across all users and devices.
Develop your app
The starter is a fully-fledged TanStack Start app with routing and auth.
You can edit the code manually. Or it has an AGENTS.md file you can load directly into your AI code editor:
sh
claude "Read Agents.md. Sort the project page todo list alphabetically."Deploy your app
Claim the Electric Cloud resources:
shell
pnpm claimDeploy the app to Netlify:
sh
pnpm deployCongratulations! You've shipped a super-fast, reactive web app!
Next steps
- learn more about Local-first sync with Electric and TanStack DB
- see the Interactive guide to TanStack DB.