{"id":13461746,"url":"https://github.com/snaplet/postgres-wasm","last_synced_at":"2025-10-02T01:31:44.024Z","repository":{"id":59985418,"uuid":"528288530","full_name":"snaplet/postgres-wasm","owner":"snaplet","description":"A PostgresQL server running in your browser","archived":true,"fork":false,"pushed_at":"2024-04-08T07:06:05.000Z","size":313033,"stargazers_count":2311,"open_issues_count":10,"forks_count":74,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-01-20T01:06:00.601Z","etag":null,"topics":["playground","postgres","wasm"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snaplet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-24T06:07:27.000Z","updated_at":"2025-01-19T17:42:22.000Z","dependencies_parsed_at":"2024-09-23T14:12:37.651Z","dependency_job_id":null,"html_url":"https://github.com/snaplet/postgres-wasm","commit_stats":{"total_commits":81,"total_committers":10,"mean_commits":8.1,"dds":0.5555555555555556,"last_synced_commit":"3d93ccd824b7bebfc336e3e41a9b509b33d9afd4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snaplet%2Fpostgres-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snaplet%2Fpostgres-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snaplet%2Fpostgres-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snaplet%2Fpostgres-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snaplet","download_url":"https://codeload.github.com/snaplet/postgres-wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234922778,"owners_count":18907828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["playground","postgres","wasm"],"created_at":"2024-07-31T11:00:56.266Z","updated_at":"2025-10-02T01:31:34.013Z","avatar_url":"https://github.com/snaplet.png","language":"Shell","funding_links":[],"categories":["Shell","wasm"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003ePostgres WASM\u003c/h1\u003e\n  \u003cp align=\"center\"\u003eA PostgreSQL server instance running in a virtual machine running in the browser\u003cbr /\u003e\n  \u003ci\u003eby Supabase \u0026amp; Snaplet\u003c/i\u003e\u003c/p\u003e\n  \u003cimg align=\"center\" src=\"https://user-images.githubusercontent.com/90199159/192729860-730e89a9-2489-4a95-a814-25eaaebebb7d.png\" alt=\"Snaplet, Supabase and friends\" width=\"480\"\u003e\n  \u003cbr /\u003e\u003cbr /\u003e\n  \u003ca href=\"https://postgres-wasm.netlify.com\"\u003eDemo\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://app.snaplet.dev/chat\"\u003eDiscord\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://www.snaplet.dev/\"\u003eSnaplet\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://www.supabase.com\"\u003eSupabase\u003c/a\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\n\n## The future is now\n\nSince we worked on this project, awesome and more usable solutions exist:\n\n- [PGlite by ElectricSQL](https://github.com/electric-sql/pglite) which is a native WASM build of Postgres\n- [pgmock by Stackframe](https://github.com/stackframe-projects/pgmock) which is using the same approach as this project, emulating the Postgres server in an x86 emulator\n\nWhile `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!\n\n## Quickstart\n\n```terminal\ncd packages/runtime \u0026\u0026 npx serve\n```\n\nGo to http://localhost:3000 and have fun!\n\n## Packages\n\nThis repo is split into three packages that build up the environment for running PostgreSQL in the browser.\n\n- [runtime](/packages/runtime): The v86 emulator that starts the `buildroot` image\n- [Buildroot](/packages/buildroot): Scripts to build the CPU and memory snapshot run by v86.\n- [Websockproxy](/packages/websockproxy): Networking\n\n## Acknowledgements\n\n- [v86](https://github.com/copy/v86) which is **the** emulator for running x86 operating systems in the browser, without it none of the following projects would be possible\n- [crunchydata playground](https://www.crunchydata.com/developers/playground) for leading the way and showing the world that it was possible to run PostgreSQL in the browser\n- [browser-shell](https://github.com/humphd/browser-shell) which was already way ahead of its time, especially on the filesystem part\n- [browser-linux](https://github.com/Darin755/browser-linux) for showing us how we can make the pieces fit together\n- [Websockets Proxy](https://github.com/benjamincburns/websockproxy) the ingenious workaround that opened up the world for **v86** emulators everywhere\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnaplet%2Fpostgres-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnaplet%2Fpostgres-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnaplet%2Fpostgres-wasm/lists"}