SQLite WASI Web Server inside a Meta-Tracing Wasm JIT on TinyCore Linux

A self-contained WebAssembly stack: sqlite_httpd.wasm (SQLite 3.49.1 + C HTTP/1.1 reactor over wasi_snapshot_preview1) runs inside meta_tracer.wasm (a meta-tracing Wasm-in-Wasm trace JIT) both right here in your browser and inside a bootable TinyCore 16.x kernel image (6.12.11-tinycore64) for QEMU (localhost SLIRP or bridged LAN), AWS EC2 Nitro/ENA, and Google Cloud GCE.

Agent Discovery & Terms: Machine-readable API at /api/v1/*, MCP JSON-RPC 2.0 at /mcp, and onboarding at /agents (/.well-known/agent-interface.json). Ordinary callers share 30 operations per 60 seconds; API keys expire within ≤ 7 days (604,800s).

1. Burbank Cadastral & Corporate Control Datalog Ontology (Server API & CoW Wasm Unikernel)

All 43,438 ground facts & 12 deductive queries from burbank-ledger.pages.dev. Initial page load evaluates queries server-side via /api/v1/cadastre/* (Cloudflare D1), while the browser & TinyCore unikernel run the exact same dataset inside 4 KiB Copy-on-Write forked Wasm instances.

D1 Server + CoW Unikernel
Ground EDB Facts
43,438
Secured Roll Parcels
20,486
Grant Deeds (owns/2)
21,004
Media Firms
1,217
Opportunity Sites
510
Commercial Campuses
150
-

Loading preset...

Loading Burbank Datalog Ontology overview from /api/v1/cadastre/overview...

Published Governance, Prop 13, Executive & Financial Audits

2. Live Browser Demo: Meta-Tracing JIT + Copy-on-Write Forked WASI SQLite Server

Initializing Wasm VM...
Traces Compiled
0
Bridges Compiled
0
Trace Entries
0
Side Exits
0
WASI /data/site.db
0 B
Last Request Latency
-
CoW Forks Executed
0
CoW 4K Pages (Shared/Dirty)
-
Shared JIT Merged / Deduped
0 / 0

Send HTTP Requests to Guest Wasm

Waiting for VM...

Rendered Guest HTML Output (GET /)

WASI Preview 1 Virtual Filesystem (/data)

No syscalls yet.

Recent Compiled Native Wasm Trace Modules

TraceKindAnchorIR Ops (raw → opt)Emitted WasmSide Exits

3. Download TinyCore Kernel, Disk Images, Boot Launchers, Native Host & Wasm Binaries

Verify every artifact against SHA256SUMS or GET /api/v1/assets. Large disk/kernel images stream from Cloudflare R2 behind the global caller limiter.

FilenameDescriptionSHA-256 Digest
vmlinuz64TinyCore Linux 16.x kernel (6.12.11-tinycore64)see SHA256SUMS
tinycore-sqlite-wasm.gzInitramfs with mtwasm-host + meta_tracer.wasm + sqlite_httpd.wasm + QEMU/AWS/GCP driverssee SHA256SUMS
tinycore-sqlite-wasm.isoHybrid BIOS MBR + El Torito ISO (QEMU -drive format=raw / AWS EC2 raw)see SHA256SUMS
tinycore-sqlite-wasm-gce.tar.gzGoogle Cloud GCE custom image archive (disk.raw, 1 GiB aligned)see SHA256SUMS
mtwasm-host-linux-x86_64Linux x86_64 native Wasmtime host CLI (serve, run, bench)see SHA256SUMS
boot-qemu-user.shQEMU localhost SLIRP launcher scriptsee manifest
boot-qemu-bridge.shQEMU bridged LAN (br0) launcher scriptsee manifest
boot-qemu.ps1Windows PowerShell QEMU launchersee manifest

4. Boot Instructions: QEMU (Localhost / Bridged), Native Host, Google Cloud, & AWS EC2

mkdir -p tc-wasm && cd tc-wasm
curl -fLO https://meta-tracing-tinycore.pages.dev/downloads/vmlinuz64
curl -fLO https://meta-tracing-tinycore.pages.dev/downloads/tinycore-sqlite-wasm.gz
curl -fLO https://meta-tracing-tinycore.pages.dev/downloads/SHA256SUMS
curl -fLO https://meta-tracing-tinycore.pages.dev/downloads/boot-qemu-user.sh
sha256sum -c --ignore-missing SHA256SUMS

# Boot Linux kernel + WASI SQLite HTTP server (forwards 127.0.0.1:18080 -> guest:8080)
chmod +x boot-qemu-user.sh && PORT=18080 ./boot-qemu-user.sh .

# Or boot directly from the hybrid BIOS ISO disk image:
curl -fLO https://meta-tracing-tinycore.pages.dev/downloads/tinycore-sqlite-wasm.iso
qemu-system-x86_64 -m 512M -smp 2 -nographic \
  -drive file=tinycore-sqlite-wasm.iso,format=raw,if=virtio \
  -netdev user,id=net0,hostfwd=tcp:127.0.0.1:18080-:8080 \
  -device virtio-net-pci,netdev=net0

# Verify HTTP + SQLite + JIT stats once TINYCORE-WASM-SQLITE-READY prints on serial:
curl http://127.0.0.1:18080/healthz
curl -X POST http://127.0.0.1:18080/api/notes -H 'content-type: application/json' \
  -d '{"title":"QEMU Boot","body":"Persisted in WASI /data/site.db","source":"qemu"}'
curl http://127.0.0.1:18080/_jit/stats