Hacker News

P2P Distributed Computing Mesh

by @joeldw

I'm building a P2P distributed computing mesh that runs in the browser. It's a TS library that provides a few things: - A WS + WebRTC mesh - A request/response protocol incentivizing the closest or most efficient peers to respond to requests - A WASM environment ensuring deterministic execution and supporting contract composition - Collateralization around responses, ensuring invalid responses have amortized negative value - A consensus and UTXO layer, focused on low-latency, low-finality micropayments (for request incentive and collateral), using WASM compute as the weight metric The idea came out of me wondering a few years ago why a multiplayer game couldn't simply be run on the player's machines without a central server. It has grown since, but the focus has remained on low-latency and log(N) state consensus (unlike a blockchain). It's wrapped up as a single fetch() method, mostly mirroring the browser's native fetch(). There's a lot more I could say; I love working on it and discovering elegant solutions to the problems that pop up. I'm hoping to release a prototype in a few weeks/months. If you're interested in trying it out, let me know (joel at scaffold.io); I'd love to have some other eyes on it.

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app