SOLRALLY
Sol Rally is a 3D open source kart racing
Created on 17th October 2026
•
SOLRALLY
Sol Rally is a 3D open source kart racing
The problem SOLRALLY solves
Sol Rally solves the problem of trust and permanence in competitive gaming leaderboards. In most racing games, high scores live on a private server controlled by one operator — scores can be edited, deleted, or lost when the server goes down, and players have no way to verify that the records are legitimate. Sol Rally replaces that fragile model with a public, tamper-resistant leaderboard backed by Arkiv, a Web3 database.
Every race result is written as a signed Arkiv entity: the player's wallet signs the write, so nobody can forge or alter someone else's lap time. The leaderboard reads these entities through a public client that needs no wallet and costs no gas — anyone, anywhere, can verify that a record exists and who created it. Accounts are identified by wallet address, so there are no passwords to leak, no email addresses to collect, and no auth backend to maintain. The game itself is a static site compiled to WebAssembly; it talks directly to Arkiv over HTTPS, so there is no server to host, no uptime to monitor, and no infrastructure cost. Race records expire after 90 days and accounts last 3650 days, with lifetimes managed natively by the store rather than by application logic.
For players, this means their nickname and best laps follow them across machines as long as they have their wallet. For judges and the community, it means the leaderboard is a public audit trail — every entity can be independently queried on Tiramisu testnet and verified against the player's wallet. Sol Rally demonstrates that a full 3D game can run in the browser and use a decentralized database as its only backend, making competitive records open, verifiable, and permanent without any central authority.
Challenges I ran into
-
No query for "all entities." Arkiv's select() with no where() throws InvalidPredicateError — the SDK has no spelling for "match everything." We discovered this only at fetch() time, not at build time, so it looked like a network fault. The fix was to namespace every entity with a project = "solrally" attribute from the very first write and filter on it forever. If we had not planned that attribute up front, the entities would be unrecoverable.
-
SDK needs a bundler, docs only cover Vite. Arkiv's SDK loads a WASM dependency internally (brotli-wasm). The MetaMask guide assumes Vite. Our game has no bundler — it is vanilla JS loaded by a C++ WebAssembly binary. We solved this by bundling browser.js with esbuild into a single 716 KB ES module (wasm/web/arkiv.js) that is served as a static file and imported at runtime via import('/arkiv.js'). This removed the CDN dependency entirely.
-
Thread pool exhaustion. The game runs on Emscripten pthreads. When the Arkiv module loaded asynchronously, its internal WASM operations tried to spawn threads and hit the default pool limit of 4, causing a deadlock. The console reported "Tried to spawn a new thread, but the thread pool is exhausted." We fixed it by setting -sPTHREAD_POOL_SIZE=16 in the linker flags.
-
List widget called before add(). STK's ListWidget::clearColumns() and addColumn() have a precondition: they may only be called after the widget is added to the screen. We were calling them in loadedFromFile(), which runs before add(). This caused a "memory access out of bounds" crash when opening the leaderboard. The fix was moving those calls to beforeAddingWidget(), which runs after add().
-
Layout collapse to zero height. A height="fit" parent holding height="fit" rows had no definite height to resolve against, so every row and textbox collapsed to zero width. The fix was changing the form container to proportion="1" (taking leftover space) while keeping rows at height="fit" (sizing to font).
-
Unreliable ribbon event routing. The tab strip was a <tabs> ribbon, but the event name that arrived in eventCallback depended on the input propagation path (mouse vs keyboard). We replaced the ribbon with plain <button> widgets whose own names always arrive, making the Login/Register toggle reliable.
-
Stale data in pack_assets. The asset packer skips repacking if a manifest already exists, so our stkgui edits were not reflected in the tarball. We had to delete the manifests and cached data_low/ directories before repacking.
-
Cross-origin isolation. Emscripten pthreads require COOP/COEP headers. Any missing header breaks SharedArrayBuffer and the game fails to start. We set these in both run_server.py and vercel.json. This also constrains which CDNs can be used (they must serve Cross-Origin-Resource-Policy: cross-origin).
Link to a twitter post explaining your project (or post with the video)
Tracks Applied (4)
Censorship Resistance
Open Source
Privacy
Security
Technologies used
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
