From prompt to persistent in 10 seconds.
INITIALIZE
Create a project to generate your universally unique /v1/db/:slug endpoint and isolated API secret.
INTEGRATE
Copy the auto-generated system prompt tailored for your project directly into your LLM or .cursorrules.
SYNCHRONIZE
Use standard fetch(). Send a GET to read, and a PUT to overwrite. Safe, optimistic concurrency handles the rest.
Test the gateway before you sign in.
Modify the JSON payload below and hit PUT. Watch the edge gateway instantly replace your state in real-time.
Everything you need for state. Nothing you don't.
FAST_IO
Global edge caching ensures sub-30ms read/write cycles. Built for instant UI responsiveness.
SAFE_CONCURRENCY
Built-in x-version header validation prevents simultaneous overwrites without complex lock files.
SCHEMA_FREE
Powered by native PostgreSQL JSONB and full ACID compliance. Pass any data structure you want. No strict tables, no migrations.
Live applications. Zero backend boilerplate.
These fully functional frontend apps use the shared cloudstate-apps project. Try opening them in multiple tabs to see optimistic sync and conflicts in action.
Sprint board
A robust Kanban task tracker demonstrating optimistic locking and automatic merge resolution under race conditions.
DrawSync Canvas
A collaborative sketchpad that automatically merges drawing vectors back into a single shared document state.
Agent Memory Console
An auto-polling AI agent log terminal. Demonstrates real-time state streaming and audit telemetry.
Why spin up Postgres for a single JSON object?
See how CloudState compares to traditional storage engines for rapid AI application state storage.
| FEATURE | CLOUDSTATE | LOCAL STORAGE | RAW POSTGRES | UPSTASH REDIS |
|---|---|---|---|---|
| Setup Time | < 10s | Instant | ~ 10 mins | ~ 5 mins |
| Client SDK Needed | No (Pure Fetch) | No | Yes (Prisma/PG client) | Yes (@upstash/redis) |
| Multi-client Sync | Yes (Cloud Sync) | No (Browser Bound) | Yes | Yes |
| Schema Migrations | None (Freeform JSON) | None | Strict | None |
| AI Tool Integration | Perfect (1-Prompt) | Impossible | Fails / Hallucinates | Complex |
Free for builders. Scaled for production.
- ▸Up to 5 Active Endpoints
- ▸5 MB JSON document payload
- ▸60 requests / minute rate limit
- ▸Standard Concurrency Check (x-version)
- ▸Up to 50 Active Endpoints
- ▸10 MB JSON document payload
- ▸300 requests / minute rate limit
- ▸State history & rollback capability
Frequently questioned architecture.
Built in public. Trusted by creators.
See what developers are building when they pair their favorite AI generation environments with CloudState.
“With CloudState, I successfully built a fully cloud-synced dashboard directly inside Bolt in under 60 seconds. An absolute game-changer for AI app prototyping.”
“I spent hours wrestling with database migrations in Lovable before finding this. Literally GET and PUT is all you need for simple web app state. Brilliant.”
“Using this inside my .cursorrules lets my agent store task states and notes across editor restarts. It feels like magic.”
Latest Integration Guides
How to Add Persistence to a Cursor App in 10 Seconds
Cursor is the fastest way to build frontend prototypes, but lacks a built-in state sync database. Learn how to plug in CloudState persistence with one simple prompt.
localStorage But Online: The Simplest Pattern for Frontend Apps
Client-side storage like localStorage is excellent for prototypes, but does not support multi-device syncing or sharing. Here is the online localStorage pattern.
How to Persist Data in Bolt.new and Support Markdown via CDN
Bolt.new allows running full-stack React and Vite environments in your browser, but databases require docker or backend setup. Learn how to persist data in Bolt.new using CloudState and render markdown via CDN.