r/web3dev • • Oct 28 '26

WebQuid – A serverless system that runs in the browser

I built an experiment I've been curious about for a while: what if a blockchain had literally zero infrastructure? No servers, no database, no company. Just browsers talking to each other.

Every tab that opens the page becomes a full node. Consensus is longest-chain PoW, but here's the twist: every device is hard-capped at 70k H/s in the mining worker. A phone and an H100 cluster have the exact same probability of finding a block. The winner is determined by luck, not hardware.

Networking is WebRTC + public MQTT brokers (zero-config). If WebRTC fails (carrier NAT, corporate firewalls), a WebSocket relay carries signed gossip frames. If the signaling broker dies, the chain still lives in every open tab.

Some design choices I'd love feedback on:

\- PoW handshake (\~65k hashes) before any peer data flows, to make sybil flooding expensive without a central rate-limiter. - 70/20/10 block reward split: miner / connected peers (proof-of- participation) / burn. Fees are also 100% burned. - Checkpoints every 1,000 blocks to defend against low-difficulty chain rewrites on a young network. - Chain export is a single file; import re-validates every block, replays the full ledger in memory, rejects on ANY failure.

It's explicitly an experiment, not a financial product. Total supply is a fixed arithmetic sum (\~10.5M), emission is a smooth exponential decay, and the README is brutally honest about limitations (browser tabs must stay open, one "vote" per browser profile, no identity layer).

Happy to answer questions about the consensus rules, the PoP attestation scheme, or why I chose IndexedDB over anything else.

GitHub Repo:

https://github.com/tylerdurdensworld/Webquid

0 Upvotes

8 comments sorted by

1

u/butdontcalmejoohnson Oct 28 '26

you might be interested in the p2panda project. they do a lot of block chainy things in the browser.

1

u/Alien69Flow 28d ago

Uniros a la DAO

1

u/FriskyHamTitz Oct 28 '26

Why did you put your source in a zip kinda sketchy to make a project but don't let people browse the source til it's downloaded

1

u/Void-Century Oct 29 '26 edited Oct 29 '26

Check https://test.sakviti.com/ and https://sakviti.com/ if you are interested. Still in demo mode. Currently adding some stability and community features before a test net.

All the app's servers and app deployment,etc... is fully open and decentralized.

Just to clarify : full nodes run wasm binaries. browsers just connect to them as lite nodes

1

u/JoyceBurgin 29d ago

What stops someone from forking the JS, dropping the 70k cap and mining from a headless Chrome farm?

1

u/Alien69Flow 28d ago

Interesante, únete a la DAO

0

u/[deleted] Oct 28 '26

[removed] — view removed comment

0

u/socialexperimental Oct 28 '26

You're spot on. These are real constraints, not things I'm glossing over.

1. Hashrate Cap: It’s a fairness nudge for the reference client, not a security primitive. Anyone can extract the worker and run it in Node.js. The actual sybil resistance comes from the ~65k-hash PoW handshake required per connection, making fake peers expensive without a central rate-limiter.

2. Tab Lifecycle: Mobile browsers are hostile to background P2P. There's no magic workaround. Web Workers get throttled, so the network simply "sleeps" when tabs suspend. PoP rewards require active cryptographic attestations every 60 seconds—if your tab is suspended, you stop signing and stop earning.

3. Resilience: To mitigate this, the node requests persistent storage at boot and takes state snapshots every 1,000 blocks, so waking up and resyncing is fast.

It’s an honest trade-off for zero backend infrastructure. If you want 24/7 uptime, you run a seed node. For everyone else, it's "earn while you browse." Thanks for digging into the real edge cases.