Post image

Sometimes you need a Postgres database right now, and you’d like to have it without setting up containers, deploying infra, or creating an account anywhere. Maybe you’re following a tutorial online or testing a quick idea. 

Enter Instagres—a tool that lets you spin up a fully functional Postgres database in your browser in under a second, giving you a connection string that you can start using immediately:

But what happens if after a while, you decide you’d actually like to keep the database? Maybe the quick idea you were playing with it’s actually worth keeping and sharing it with a teammate, or you’d like to resume the tutorial where you left it.

This is where some “Postgres in the browser” tools fall short—you cannot keep your DB afterwards. But Instagres has you covered: it doesn’t just offer instant access to a Postgres database, it also gives you the flexibility to transfer your database to a free account in Neon whenever you’re ready to make it persistent:

Post image

To claim your database, you only have to click on “Transfer it to your Neon account”. If you are not a Neon user yet, you’ll be prompted to create an account: it’s free and you don’t need a credit card (it truly takes seconds). Once you do this, you’ll be able to access your new database whenever you want. 

Instant Postgres in your browser and also in your terminal 

There’s actually two ways to launch Postgres using Instagres:

In your browser 

You can simply open https://www.instagres.com/

Or in your terminal 

You can launch Postgres databases equally fast using the CLI, which is pretty cool. If you have NodeJS installed, you can just run:

npx instagres

You’ll be prompted: 

Would you like an instant Postgres connection string from Neon (No signup required)? (Y/n):

After confirming, a page will automatically open in your browser showing your database URL and the button where you can claim it for posterity.

How Instagres works 

The project lives in these repos:

https://github.com/neondatabase-labs/instagres-js
https://github.com/neondatabase-labs/instagres-demo
https://github.com/neondatabase-labs/instagres

Instant database creation via Neon

At the heart of Instagres is Neon, a serverless Postgres platform that allows databases to be created in under a second. When a user accesses Instagres, either through the browser or the CLI, the tool interacts with Neon’s API to spin up a new Postgres database.

FYI

Tools like Retool and Replit Agent leverage this instant provisioning speed to quickly create databases for end-users and AI agents. Explore their stories here and here.


This lightning-fast provisioning generates a connection string almost instantly. Once you claim your database, Neon also handles the backend heavy lifting, such as autoscaling for storage and compute.

Backend: Cloudflare Workers, React Router, and Drizzle ORM

Instagres is built as a Cloudflare Workers app, using React Router v7 (an evolution of Remix) for its frontend and routing. To interact with the Postgres databases, Instagres uses Drizzle ORM, which enables the app to execute queries while maintaining a clean codebase.

Bot protection by Cloudflare

One challenge with offering free, no-signup databases is preventing abuse from bots. Instagres addresses this with two layers of bot protection, made possible by hosting on Cloudflare Workers:

  • Cloudflare Turnstile: Turnstile is a CAPTCHA alternative that uses browser signals and heuristics to detect bots. For real users, it’s pretty much invisible (no complex puzzles to solve). Turnstile automatically “turns green,” allowing legitimate users to proceed without interruption.
  • Rate Limiting API: Cloudflare’s also offers very handy built-in rate limiters (currently in beta), This avoided the work of a separate Redis setup.

Database transfer to your Neon account

Instagres databases are temporary by default: they self-destruct after an hour. But if you want to save your database for later, Instagres has a feature for long-term use: transferring databases to a Neon account.

This feature works by using Neon’s OAuth for authentication. When a user decides to transfer their database, Instagres securely links the temporary database to their Neon account. 

The actual transfer process is powered by a Docker-based AWS Lambda function, which uses pg_dump to export the data from the temporary database and pg_restore to import it into the persistent Neon database.

The result 

This simple app allows you to get a fully functional Postgres database in seconds, whether you’re learning a new trick, prototyping, or following a tutorial. And when you’re ready to persist your work, you can transfer your database to a Neon free account with one click. 

Give it a try at instagres.com or through your command line!