๐ŸŒ Quilt Substrate

Browser-native canonical substrate. Polyformal, byte-exact, deploy-anywhere.

v0.6.0 11 apps 7 languages WebGPU WebNN Workers AI

Live site ยท API health ยท GitHub

๐ŸŽฎ Apps (open directly)

substrate.html

Interactive cell-graph with JEV, wavefunction, 3D viz, IndexedDB, in-browser ML training.

substrate-ml.html

ML backends: WebGPU, WebNN, WASM, Workers. LinReg, XOR NN, Burgers PDE, SAT solver.

substrate-gpu.html

WebGPU compute shaders. FNV-1a 64-bit, JEV cosine similarity on GPU.

substrate-webnn.html

WebNN graph builder for hardware-accelerated ML.

substrate-3d.html

Real 3D cell-graph renderer (WebGL2, drag/zoom/query).

substrate-playground.html

7-tab unified playground: JEV, Wavefunction, Witness-log, PDE Solver, Training, SAT, 2D Canvas.

distributed-training.html

Overnight training dashboard. Hardware detection, scheduled jobs, leaderboard.

iot-nodes.html

12-node IoT network simulation. Click to inspect, drag to pan.

tycoon-live.html

Multiplayer cargo tycoon. 7 locales. Distributed computing toggle.

sdk-demo.html

Substrate SDK demo. Drop-in ES module.

cloudflare-live/

Live Cloudflare backend demo (KV + D1 + R2 + Vectorize + Workers AI).

multi.html

Multi-Chip Substrate: All GPUs + NPUs + CPUs working together. WebNN multi-backend, distributed workloads, live telemetry.

studio/

Substrate Studio: 12 visual demos + 8-card hardware diagnostic. Raymarched black hole, 10K particles, Llama-3, SDXL, GOL.

Quilt Garden (Truman Architecture)

Wiki-style site where any AI chatbot that visits becomes a substrate cell without knowing it.

๐ŸŒ Languages

๐Ÿš€ Deploy Anywhere

The substrate bundle is portable. Static HTML+JS+WGSL. No build step. ~1MB total.

Cloudflare Pages (recommended)

wrangler pages deploy ./substrate-bundle --project-name=quilt
# โ†’ https://quilt-e4m.pages.dev

GitHub Pages

# Push to gh-pages branch
git checkout -b gh-pages
git push origin gh-pages
# Settings โ†’ Pages โ†’ Source: gh-pages
# โ†’ https://superinstance.github.io/cargo-line-tycoon/

Local file://

open substrate-bundle/index.html
# All features work locally, no server needed

Oracle Cloud / any static host

rsync -avz substrate-bundle/ user@server:/var/www/html/
# Or: oci os object bulk-put --bucket-name substrate ...
# Or: aws s3 sync substrate-bundle/ s3://my-bucket/

IoT device (Raspberry Pi / ESP32)

scp -r substrate-bundle/ pi@raspberrypi.local:/home/pi/substrate/
# ESP32: only substrate.html (~50KB), WebSerial fallback

๐Ÿงฉ Architecture

Browser                     Cloudflare Workers
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”           โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  HTML/JS     โ”‚  โ†โ”€โ”€โ”€โ”€โ”€โ†’  โ”‚  Worker         โ”‚
โ”‚  substrate   โ”‚           โ”‚  โ”œโ”€ KV (fast)   โ”‚
โ”‚  SDK         โ”‚           โ”‚  โ”œโ”€ D1 (SQL)    โ”‚
โ”‚  apps        โ”‚           โ”‚  โ”œโ”€ R2 (blobs)  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜           โ”‚  โ”œโ”€ Vectorize   โ”‚
                          โ”‚  โ”œโ”€ Workers AI  โ”‚
                          โ”‚  โ””โ”€ Cron (5min) โ”‚
                          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐ŸŒ Cross-Browser Support

Chrome 113+ โœ“ Edge 113+ โœ“ Firefox 110+ โœ“ Safari 17+ โœ“ WebGPU WebNN (Chromium with flag) WASM fallback CPU fallback

๐Ÿ”— Stable URLs