Technical & Functional Architecture · VONK 1.0

Built from scratch to open the hood on physics.

VONK is a free, ad-free, zero-tracking 2027 chain-reaction workbench inspired by The Incredible Machine (1992). Instead of hiding a black-box library behind a canvas, every collision, impulse, energy transfer, sound wave, and AI verification pass was crafted in plain ES Modules and Python stdlib so you can watch the math happen live.

240 Hz
Deterministic simulation loop
24
Tactile & 2027 smart parts
20
Mathematically verified puzzles
0
Trackers, ads, or npm deps

01 · The Physics Core

A transparent 240 Hz rigid-body engine

The exact same pure-ES-Module engine runs in your browser at 60 FPS and in headless Node.js verification. Four fixed substeps per frame keep fast basketballs, stacked dominoes, seesaws, and ropes rock-solid and bit-for-bit reproducible.

Live 240 Hz X-Ray Micro-Bench

This is not a video or GIF. Your browser is running the actual VONK PhysicsWorld right now with live X-Ray vectors enabled.

Tick 0 · 0.00 s
Contacts 0
Kinetic E 0.0 J
Potential E 0.0 J
Total E 0.0 J

Every 16.67 ms frame executes four 4.17 ms substeps

01

External Forces & Fields

Applies gravity (Earth 9.81, Moon 1.62, Jupiter 24.79, or Zero-G), balloon buoyancy, directional fan airflow scaled per windFactor, electromagnet attraction on steel orbs, rocket thrust, and gravity-zone lift.

02

Anti-Tunneling Integration

Semi-implicit Euler integration clamps speed at 1150 px/s. At dt = 4.17 ms, projectiles move at most 4.79 px per substep, well under the 16 px plank thickness.

03

2-Point SAT & Edge Clipping

AABB broadphase plus exact Circle-Circle, Circle-OBB, and OBB-OBB Separating Axis tests with Sutherland-Hodgman 2-point clipping keep dominoes resting flat with zero jitter.

04

8-Iteration Sequential Impulse

Resolves restitution (48 px/s resting threshold), Coulomb friction, conveyor surface velocity, soft basket catch-net damping (e = 0.12), and Baumgarte stabilization (0.32).

05

Contraptions & Link Constraints

Resolves ropes burnable by candle flames, bidirectional pulleys (d1 + d2 <= L), cradled seesaw levers, AI eye line-of-sight signals, boxing gloves, momentum-preserving portals, and mini-bots.

06

Live Telemetry & X-Ray Snapshot

Captures velocity and force vectors, contact normals, centers of mass, and total mechanical energy (1/2 mv² + mgh at 55 px/m) for live X-Ray and Under the Hood graphs.

Exact Engine Parameters (loaded from data/config.json)

Parameter Value Engineering reason
Board coordinate space 960 × 540 px (55 px/m) Fixed deterministic world space scaled smoothly to any screen
Fixed frame / substep 60 Hz × 4 = 240 Hz (4.17 ms) Eliminates high-speed tunneling and stabilizes stacked dominoes
Impulse solver passes 8 iterations per substep Converges multi-body stacks and lever impulses cleanly
Speed / angular clamp 1150 px/s · 18 rad/s Guarantees max 4.79 px displacement per substep
Baumgarte / slop 0.32 · 0.35 px Resolves penetration smoothly without artificial energy injection
Restitution threshold 48 px/s Stops micro-bouncing so resting balls settle cleanly
Sleep threshold v² < 9 · ω² < 0.0025 · 0.55 s Conserves CPU when contraption regions come to rest
Gravity presets 9.81 · 1.62 · 24.79 · 0.00 m/s² Earth, Moon, Jupiter, and Zero-G available in Free Play & puzzles

02 · Functional Catalog

All 24 interactive parts, live from the catalog

Every part's physical mass, bounce (restitution e), friction (μ), drag, magnetic flag, and sandbox sliders are defined in data/parts.json rather than hardcoded in logic. Filter by category to inspect every single piece.

Balls & Balloons (5 parts)

Bowling Ball (5.5 kg, inertia), Basketball (1.4 kg, e = 0.84), Tennis Ball (0.42 kg, windFactor 1.7), Steel Orb (3.4 kg, magnetic), and Helium Balloon (buoyant, poppable).

Surfaces & Levers (4 parts)

Wood Plank (rotatable ramp), Steel Beam (rigid barrier), Trampoline (spring pad), and Seesaw (cradled torque lever with end-lips).

Contraptions (7 parts)

Domino (zero-jitter cascade), Conveyor Belt, Wind Fan, Candle (ignites rockets, burns ropes, pops balloons), Rocket, Scissors, and Boxing Glove.

2027 Smart Tech (5 parts)

Electromagnet, Portal Gate (paired speed warp), Gravity Inverter (reverse-G field), AI Smart Eye (optical ray trigger), and autonomous Mini-Bot.

Goals & Triggers (3 parts)

Goal Basket (soft catch-net e = 0.12), Target Switch (pressure and signal trigger), and Spark Star collectibles.

03 · Game Design, Hybrid AI & Crafted Sound

Starts simple, rewards curiosity, sounds alive

Good physics sandboxes invite you in within three seconds and reveal deeper tools only once your hands already know the rhythm.

Game-First UX

Progressive discovery & tactile controls

  • Living title screen with a real contraption running behind the welcome card.
  • Start small: clean Puzzle 1 board; X-Ray at Puzzle 2; Slow-mo and Under the Hood at Puzzle 3; Free Play and AI Lab at Puzzle 4 (or unlock everything in Menu).
  • Direct drag-from-tray placement, live preview, motion trails, damped screen-shake, touch lift offset, and two-finger pinch zoom.
  • Account-free #share= URL encoding sends complete boards to friends with zero server storage.
2027 Hybrid AI

Physics-verified Puzzle Forge & instant Coach

  • 7 local deterministic contraption archetypes parse Dutch and English prompts instantaneously in-browser.
  • Optional OpenAI-compatible LLM proxy via /api/ai/generate for novel AI-crafted JSON puzzles.
  • Hard Physics Verifier Gate requires emptyWon === false and solvedWon === true before showing any generated puzzle.
  • AI Physics Coach runs a 7-second headless check in under 15 ms to highlight a helpful ghost placement zone.
Audio & Voice

Real chiptunes, procedural SFX & natural voice guide

  • 7 self-hosted 6-channel chiptunes and workshop loops served as 128 kbps MP3s with HTTP Range (206) support.
  • Local-only Suno or MP3/WAV drop-in via browser blob: URLs (zero uploads) plus Strudel live-coding groove companion.
  • Procedural WebAudio SFX with ascending pentatonic domino cascades, metallic knocks, and rocket bursts.
  • 48 pre-recorded Dutch and English mentor voice lines with automatic silence trimming and 25% background music ducking.

04 · Radical Privacy & Security

Zero tracking, verified by code and headers

VONK is a gift, not a funnel. The server counts how many anonymous visits and puzzle solves happen per day purely out of joy, and stores optional in-game feedback you choose to send. Nothing else.

0 External Requests

Both fonts (Schibsted Grotesk and Inter), all audio tracks, all 48 voice clips, and all scripts are self-hosted on vonk.itarr.nl. Automated browser tests fail if even a single third-party request fires.

Strict CSP, Zero Inline Code

Served with default-src 'self', script-src 'self', style-src 'self' (no unsafe-inline), media-src 'self' blob:, frame-ancestors 'none', Referrer-Policy: no-referrer, and Permissions-Policy locking camera, mic, and location.

Only Two SQLite Tables

SQLite WAL stores daily_stats and optional feedback. Zero IP, user-agent, cookie, or email columns exist anywhere in the database.

Ephemeral Rate Limiting

Abuse protection hashes the caller in RAM with a random 128-bit blake2b salt generated at server startup. Nginx access logs are disabled and the salt vanishes on restart.

Actual SQLite database schema (src/server/storage.py)

daily_stats (day TEXT PRIMARY KEY, visits INTEGER, puzzles_solved INTEGER, sandbox_shares INTEGER) feedback (id INTEGER PRIMARY KEY AUTOINCREMENT, created_at TEXT, category TEXT, lang TEXT, context TEXT, message TEXT, board_json TEXT)

05 · Automated Verification Gate

Every release proves itself before going live

Before a release archive is built, hashed with SHA-256, and synced to the server, a five-stage automated test gate verifies the physics, puzzles, AI, voices, backend privacy, and desktop/mobile layouts.

12

Physics unit tests

Determinism, domino stacks, seesaws, conveyors, fans, balloons, ropes, pulleys, rockets, AI sensor + portal, magnet, mini-bot, and #share= round-trip.

20 + 3

Puzzles & live demos

All 20 puzzles and 3 Free Play presets simulated headlessly at 240 Hz to verify every solution cleanly.

6

Hybrid AI & Coach checks

Ghost-zone hints, NL/EN prompt parsing, all 7 local archetypes, LLM fallback, and rejection of unsolvable outputs.

48

Voice & copy checks

All 24 NL + 24 EN voice files verified, zero speech tags in UI text, and public copy scanned cleanly.

E2E

Privacy & Silent Browser

SQLite zero-PII columns, strict CSP, HTTP 206 MP3 streaming, OG tags, and 1440×900 + 390×844 browser checks.

Anonymous tally updates live once served from the VONK backend. Play VONK