Skip to main content

Convex Docs

Convex is the open source, reactive database where queries are TypeScript code running right in the database. Just like React components react to state changes, Convex queries react to database changes.

Convex provides a database, a place to write your server functions, and client libraries. It makes it easy to build and scale dynamic live-updating apps.

Get Started

Built for AI coding agents

Convex's database primitives were designed with scale and safety at the core. This means agents can write correct Convex code with fewer iterations, avoiding issues they'd hit in a traditional SQL database. Convex's query / mutation / action split makes agent-written code actually safe. Mutations run as serializable transactions, so an agent has the opportunity to race-condition-correct code by default: no locking primitives to reason about, no half-applied writes, avoiding whole classes of consistency bugs to debug later.

It's as easy as telling your agent or harness

"Let's make a todo app with Convex"

See the per-tool setup guides for more details:

Your favorite frameworks:

Your favorite languages:

Why Convex?

Read the team's Perspectives on Stack:

Learn Convex

See more walkthroughs and patterns on Stack