Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://supabase.com/blog/postgres-wasm #693

Open
1 task
irthomasthomas opened this issue Mar 5, 2024 · 1 comment
Open
1 task

https://supabase.com/blog/postgres-wasm #693

irthomasthomas opened this issue Mar 5, 2024 · 1 comment
Labels
Papers Research papers programming-languages Topics related to programming languages and their features. Research personal research notes for a topic software-engineering Best practice for software engineering source-code Code snippets WebAssembly WebAssembly for running sandboxed code in browser

Comments

@irthomasthomas
Copy link
Owner

Title: Postgres WASM by Snaplet and Supabase

Description: Postgres WASM by Snaplet and Supabase
2022-10-03

11 minute read
Mark Burggraf avatar
Mark Burggraf
Engineering

Postgres WASM by Snaplet and Supabase

Today we're open sourcing postgres-wasm with our friends at Snaplet.

postgres-wasm is a PostgreSQL server that runs inside a browser. It provides a full suite of features, including persisting state to browser, restoring from pg_dump, and logical replication from a remote database.

We're not the first to run Postgres in the browser - that title belongs to the team at Crunchy Data who shared their version of this on HN a month ago. It's awesome, and we wanted an open source version, so we teamed up with Snaplet build it. Let's explore how it's built, and some extra features we've added.

🐈 Who's Snaplet?

Snaplet gives developers production-accurate data and preview databases that they can code against, so they can focus on shipping.

Checkout out how you can use Snaplet to clone Supabase environments.

Demo

Before we get into the technical details, try it out yourself (warning: it will download ~30MB):

wasm.supabase.com

Postgres inside a browser

To run it locally:

# From Snaplet Repo
git clone git@github.com:snaplet/postgres-wasm.git
cd postgres-browser/packages/pg-browser
npx serve

# From Supabase Fork
git clone git@github.com:supabase-community/postgres-wasm.git
cd postgres-wasm
git checkout web
cd packages/supabrowser
npx serve

And open a browser at localhost:3000.

URL: https://supabase.com/blog/postgres-wasm

Suggested labels

{'label-name': 'WebAssembly', 'label-description': 'Technology that enables running high-performance applications in web browsers.', 'confidence': 76.53}

@irthomasthomas irthomasthomas added New-Label Choose this option if the existing labels are insufficient to describe the content accurately Papers Research papers programming-languages Topics related to programming languages and their features. Research personal research notes for a topic software-engineering Best practice for software engineering source-code Code snippets labels Mar 5, 2024
@irthomasthomas
Copy link
Owner Author

irthomasthomas commented Mar 5, 2024

Related content

#693 - Similarity score: 1.0

#74 - Similarity score: 0.86

#688 - Similarity score: 0.85

#695 - Similarity score: 0.84

#691 - Similarity score: 0.83

#692 - Similarity score: 0.82

@irthomasthomas irthomasthomas added WebAssembly WebAssembly for running sandboxed code in browser and removed New-Label Choose this option if the existing labels are insufficient to describe the content accurately labels Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Papers Research papers programming-languages Topics related to programming languages and their features. Research personal research notes for a topic software-engineering Best practice for software engineering source-code Code snippets WebAssembly WebAssembly for running sandboxed code in browser
Projects
None yet
Development

No branches or pull requests

1 participant