Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/supabase-community/postgres-new
In-browser Postgres sandbox with AI assistance
https://github.com/supabase-community/postgres-new
ai browser llm pglite postgres
Last synced: about 1 month ago
JSON representation
In-browser Postgres sandbox with AI assistance
- Host: GitHub
- URL: https://github.com/supabase-community/postgres-new
- Owner: supabase-community
- License: apache-2.0
- Created: 2024-07-22T18:27:25.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-08T16:22:35.000Z (about 1 month ago)
- Last Synced: 2024-10-09T23:21:58.678Z (about 1 month ago)
- Topics: ai, browser, llm, pglite, postgres
- Language: TypeScript
- Homepage: https://database.build
- Size: 22.6 MB
- Stars: 2,260
- Watchers: 22
- Forks: 178
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# database.build ([formerly postgres.new](#why-rename-postgresnew))
In-browser Postgres sandbox with AI assistance.
![github-repo-hero](https://github.com/user-attachments/assets/1ace0688-dfa7-4ddb-86bc-c976fa5b2f42)
With [database.build](https://database.build), you can instantly spin up an unlimited number of Postgres databases that run directly in your browser (and soon, deploy them to S3).
Each database is paired with a large language model (LLM) which opens the door to some interesting use cases:
- Drag-and-drop CSV import (generate table on the fly)
- Generate and export reports
- Generate charts
- Build database diagrams## How it works
All queries in database.build run directly in your browser. There’s no remote Postgres container or WebSocket proxy.
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.
## Monorepo
This is a monorepo split into the following projects:
- [Frontend (Next.js)](./apps/postgres-new/): This contains the primary web app built with Next.js
- [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)## Why rename postgres.new?
This project is not an official Postgres project and we don’t want to mislead anyone! We’re renaming to database.build because, well, that’s what this does. This will still be 100% Postgres-focused, just with a different URL.
## Video
[![image](https://github.com/user-attachments/assets/9da04785-d813-4e9c-a400-4e00c63381a1)](https://youtu.be/ooWaPVvljlU)
## License
Apache 2.0