snaplet / postgres-wasm

A PostgresQL server running in your browser
MIT License
2.32k stars 73 forks source link
playground postgres wasm

Postgres WASM

A PostgreSQL server instance running in a virtual machine running in the browser
by Supabase & Snaplet

Snaplet, Supabase and friends

Demo   •   Discord   •   Snaplet   •   Supabase


The future is now

Since we worked on this project, awesome and more usable solutions exist:

While postgres-wasm was more of a proof of concept, both the above solutions can be used to run PostgreSQL in the browser or getting in-memory PostgreSQL databases!

Quickstart

cd packages/runtime && npx serve

Go to http://localhost:3000 and have fun!

Packages

This repo is split into three packages that build up the environment for running PostgreSQL in the browser.

Acknowledgements