Skip to content
← Blog

floo vs Neon: a Postgres database, or the whole app

Neon is serverless Postgres with branching, a Data API, auth, and functions, and the app runs on another host. floo runs the app with its Postgres, preview database branches, sign-in, and scoped agent keys. When each fits.

floo team

TL;DR

Neon is a Postgres database. floo is a place to run an app that has one. With Neon, the web app, sign-in, and scheduled jobs live on other services that you connect. With floo, two lines of floo.app.toml give the app Postgres, with separate dev and prod databases, a branch per preview, and DATABASE_URL already set.

  • Pick Neon for a database on its own, many branches, or databases an agent creates without an account.
  • Pick floo to run the whole app, with sign-in and agent keys in front of it.
  • Both scale Postgres to zero when it's idle.

Facts about Neon come from its own documentation, pricing page, and API specification, read on October 22, 2026.

What you connect yourself with Neon

Neon gives you a connection string. The rest of the app comes from elsewhere:

PieceWith NeonOn floo
The web appVercel, Netlify, or another hostRuns on floo from your Dockerfile
Connection stringCopied into the host's environment variablesDATABASE_URL and PG* set in each environment
MigrationsRun from CI or by handmigrate_command runs before traffic moves; a failure stops the deploy
Invite-only sign-inManaged Better Auth components in your React app, with sign-up disabled through the APIaccess_mode = "accounts" and floo apps invite <email>
Daily jobScheduled Function trigger, or pg_cron on an always-on compute[cron.<name>] runs a command in the app's container
Agent credentialProject API keys with editor access to the whole projectA key per agent, limited to declared routes
Price to startFree plan, no card; Launch is pay as you goStarter, $4 a month for one app with 4 credits included

On floo, the database is part of the app's config:

[managed.default]
type = "postgres"

[services.web]
type = "web"
path = "."
port = 3000
ingress = "public"
migrate_command = "npx prisma migrate deploy"

The next deploy creates the dev and prod databases, each with its own credentials, and every push to main runs the migration before the new version takes traffic.

Branching: Neon's API or floo's previews

Branching is Neon's signature feature. A branch is a copy-on-write clone of a database from any point in time, with reset and expiry. Neon can create a branch for every Vercel preview deployment, and an agent can use the API to try a schema change on a branch before touching the real one.

floo uses branches for one job: previews. When a pull request opens a preview, or floo deploy runs on a feature branch, the preview gets its own database branch with its own credentials. Dev and prod are never touched. [preview.data] sets how a branch starts:

[preview.data]
mode = "clone-dev"   # or "empty", or "seed"

A preview's branch is removed with the preview. floo has no point-in-time branch you create on demand, and resetting a preview's database branch isn't available yet. If your workflow is many branches managed through an API, Neon does that better. For migration testing on floo, see how agents should test database migrations.

Scale to zero on both

Both put an idle database to sleep and bill compute only while it runs. On floo a database sleeps after about 5 idle minutes. The first query after a pause waits about 0.5 seconds, or up to 2 seconds after an hour floo starts waking the database when someone signs in. To keep it awake:

[managed.default]
type = "postgres"
keep_warm = true       # stays awake for 1 hour after the last query

The app itself doesn't sleep. floo keeps web services warm between visits, so a visitor never waits for a container to boot.

Letting an agent create a database

Claimable Neon lets an agent create a database with no account. It expires after 72 hours unless a person claims it, which suits a demo or a throwaway prototype.

On floo, Claude adds [managed.default] to the config and deploys. The database belongs to an app in your org from the start, so nothing expires and nothing needs claiming. It needs a floo account, and the agent asks you to approve one sign-in in the browser.

Agent access to the data

Neon's Data API is compatible with PostgREST and authenticates with JWTs. Neon's docs say it has no permission layer of its own: access comes from Postgres grants and row-level security. Neon's project API keys are revocable but grant editor access to the project's resources. A key for one agent means a dedicated Postgres role and connection string, or JWTs your own identity provider mints.

floo puts agent access at the app, not the database:

floo apps consumers create stock-agent
floo apps keys create stock-agent --consumer stock-agent --scope inventory.write --rate-limit-rpm 60

The agent calls your app's routes, and the key works only on routes declared with that scope. floo strips the key before your code sees the request, passes the consumer's identity instead, and lists every request by key ID. The agent never holds a database password.

When Neon is the better choice

  • The database is all you need. The app already runs somewhere else and you want serverless Postgres behind it.
  • Branching at scale. Point-in-time branches, reset, and a branch per preview on another host.
  • A permanent free plan. No card, 100 projects, and scale to zero.
  • Many databases created by agents, including throwaway ones with Claimable Neon.

Choose floo when you want the app, its database, its sign-in, and its agent keys to be one thing you deploy. For the wider field, see the best platforms to host internal tools built with AI.

Sources

Frequently asked questions

Does Neon host the web app?

No. Neon's docs say its Functions are backend primitives, not full-stack app hosting, and point you to Vercel, Netlify, or another host for the app itself.

Does floo have database branching like Neon?

For previews, yes. Each preview environment with managed Postgres gets its own database branch, started empty, from a seed command, or as a copy of dev. Neon's branching is broader: branches from any point in time, reset, expiry, and a full API.

Does floo's Postgres scale to zero like Neon?

Yes. A floo database sleeps after about 5 idle minutes and wakes on the next query, about 0.5 seconds after a short pause and up to 2 seconds after an hour. keep_warm = true or "always" keeps it awake.

Can an agent get a scoped API key for a Neon database?

Not as a documented feature. Neon's Data API authenticates with JWTs and relies on Postgres grants and row-level security, and Neon's project API keys grant editor access to the whole project. A per-agent data key means a dedicated Postgres role or JWTs minted by your own identity provider.

Get your app live.

read https://getfloo.com/agents.md and set me up on floo

Get an API key
Usage-based pricing. See plans →