Fauna API logo

Fauna API

Fauna API

Fauna is a serverless distributed ACID database — globally distributed, strongly consistent, FQL query language, hybrid relational + document model.

Use it when

Globally distributed strong consistency like Spanner

Watch for

Steep FQL learning curve (proprietary functional syntax)

First check

Sign up at dashboard.fauna.com and create DB for secret. JS SDK: const client = new fauna.Client({secret: "..."}); await client.query(fql`Collection.create({name: "users"})`);

Auth
api_key
CORS
?
HTTPS
Yes
Signup
?
Protocol
REST, GraphQL
Pricing
paid

Uptime · 30-day window

Health history will appear here after the next daily check.
01

About this API

Fauna is a serverless database company founded 2017, positioned as "relational + document hybrid DB for the serverless era". Tech differentiators: (1) Calvin protocol — distributed ACID based on academic research, providing globally strong consistency (Spanner-like) but serverless deployment (developers don't manage clusters); (2) FQL (Fauna Query Language) — functional query language (not SQL nor MongoDB), expressive but steep learning curve; (3) GraphQL first-class — declare schema auto-generates GraphQL endpoint. Best for: serverless function (AWS Lambda, Cloudflare Workers, Vercel Functions) backends; apps needing global consistency without setting up Spanner. But FQL learning cost and small-scale pricing make it less popular than Supabase / Firebase. Fauna underwent product adjustments in 2024.

02

What you can build

  • 1Serverless app backend (Lambda / Workers + Fauna)
  • 2Need ACID but want serverless flexibility
  • 3GraphQL-first dev experience
  • 4Multi-tenant SaaS
03

Strengths & limitations

Strengths

  • Globally distributed strong consistency like Spanner
  • Serverless (per-query billing)
  • GraphQL native (no separate GraphQL layer)
  • Powerful FQL query language

Limitations

  • Steep FQL learning curve (proprietary functional syntax)
  • Smaller ecosystem than Postgres / MongoDB
  • Pricing not necessarily worthwhile at small-mid scale
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://fauna.com/<endpoint> \
  -H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.
05

Getting started

Sign up at dashboard.fauna.com and create DB for secret. JS SDK: const client = new fauna.Client({secret: "..."}); await client.query(fql`Collection.create({name: "users"})`);

06

FAQ

Fauna vs. Supabase?+

Need globally strong consistency ACID: Fauna. Postgres ecosystem + standard SQL: Supabase.

07

Technical details

CORS: ?HTTPS: YesSignup: ?Open source: No
Auth type
api_key
Pricing
paid
Rate limit
按 plan
Protocols
REST, GraphQL
SDKs
javascript, typescript, python, go, java, csharp
08

Tags