Skip to main content

Firebase for the TypeScript era

Live updates, a full backend, and an easy-to-use data store with all the modern best practices.

Convex and Firebase logos side by side
ConvexFirebase
Realtime apps
Yes
Yes
Datastore/Database
Yes
Yes
Cloud functions
Yes
Yes
File storage
Yes
Yes
React support
Yes
No
Relational DB
Yes
No
Live dev environment
Yes
No
Transactions by default
Yes
No
Schema enforcement
Yes
No

No complicated security rules

All data in Convex is accessed through backend functions, ensuring you just use normal code to only expose the data you need. Convex does this without compromising on providing live updates to your app. This sidesteps the need to learn complicated security rules to ship a secure app with Convex.

First-class React support

Convex was designed to be used by modern reactive UI frameworks like React. Convex provides an easy-to-use React library to get you up and running fast.

Transactions by default

All data in Convex is always written and read in transactions. Your data will always behave as you expect. No complicated rules around reading all your data before writing. All Convex transactions work on top of a consistent snapshot.

Relational data model

Convex encourages you to organize your documents in tables. So if you have your users and todos in different tables, you can set clear relationships between them. Convex is still flexible enough to store your documents in semi-structured JSON files.

Loose or strict schema enforcement

Sometimes you just want to chuck records into a table and figure it out later. Sometimes you annotate types when it’s useful, but write it like plain ol’ JavaScript when you’re moving fast. However, the day may come when you want to solidify your designs. Convex embraces this concept of gradual rigor. For example, you can operate schema-free as you’re iterating, and Convex will keep track of all your record’s types for you. But Convex also let’s you lock in a schema and type enforcement when you’re ready. Convex will even generate your schema for you!

Build a production app this afternoon

Scale it for decades.

Set up Convex with your agent

Works great with any model, any agent, any editor

Set up Convex with your agent:

# Convex setup

Set up Convex in the current folder. Run the commands yourself, without asking the user.

- Empty folder: `npm create convex@latest . -- -t bare`
- Convex project (`convex` in `package.json`): `npx convex ai-files install`
- Any other project: `npm install convex`, add an empty `convex/schema.ts` and a `convex dev` script, then `npx convex ai-files install`. Never `npm create convex` here, it replaces the folder.

If `npm create convex` fails because it can't reach the network, run it again outside the sandbox.

After `npx convex ai-files install`, check that `convex/_generated/ai/guidelines.md` and `.agents/skills` exist. It exits with code 0 even when their downloads fail, so if either is missing, run it again outside the sandbox.

Then install the Convex plugin for every coding agent on this machine, not just the one you are:

- Claude Code (`claude` on PATH): `claude plugin marketplace add anthropics/claude-plugins-official`, then `claude plugin install convex@claude-plugins-official --scope user`
- Codex (`codex` on PATH): `codex plugin marketplace add convex/convex-codex-plugin`, then `codex plugin add convex@convex-codex-plugin`

Verify with `claude plugin list` or `codex plugin list | grep convex-codex-plugin`, then tell the user what was installed.

Works great with any model, any agent, any editor

Start a new Convex project

Build anything with Convex
Build a multiplayer YouTube app

Start a new Convex project: npm create convex@latest