You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With [postgres.new](https://postgres.new), you can instantly spin up an unlimited number of Postgres databases that run directly in your browser (and soon, deploy them to S3).
8
+
9
+
Each database is paired with a large language model (LLM) which opens the door to some interesting use cases:
10
+
11
+
- Drag-and-drop CSV import (generate table on the fly)
12
+
- Generate and export reports
13
+
- Generate charts
14
+
- Build database diagrams
15
+
16
+
## How it works
17
+
All queries in postgres.new run directly in your browser. There’s no remote Postgres container or WebSocket proxy.
18
+
19
+
How is this possible? [PGlite](https://pglite.dev/), a WASM version of Postgres that can run directly in your browser. Every database that you create spins up a new instance of PGlite that exposes a fully-functional Postgres database. Data is stored in IndexedDB so that changes persist after refresh.
20
+
5
21
## Monorepo
6
22
7
23
This is a monorepo split into the following projects:
8
24
9
-
-[Frontend (Next.js)](./apps/postgres-new/)
10
-
-[Backend (pg-gateway)](./apps/db-service/)
25
+
-[Frontend (Next.js)](./apps/postgres-new/): This contains the primary web app built with Next.js
26
+
-[Backend (pg-gateway)](./apps/db-service/): This serves S3-backed PGlite databases over the PG wire protocol using [pg-gateway](https://github.com/supabase-community/pg-gateway)
0 commit comments