01 · Featured Projects

Production Systems & Architecture Dossiers

Two deployed Node.js, Express, and SQLite applications exploring deterministic state transitions, bounded AI execution, and distraction-resistant interfaces.

SYS—01 Productivity Architecture · Full-Stack Web OS
Live on Render Cloud

DOSHE

Intent-Based Focus OS & FocusTube Study Workspace

01 · GATEFocus GateIntent + Top-302 · CONTROLExpress Engine+ Active Urge ShieldSTATE: LOCKEDWORKSPACEFocusTube PlayerPERSISTENCESQLite LedgerBROWSER AUDIOWeb Audio Synth

System Overview

An intent-based productivity operating system built with Node.js, Express, and SQLite that replaces open-ended feed browsing with explicit session contracts, Top-3 priority locking, and a distraction-free FocusTube study environment.

Architectural Thesis

Attention leaks happen at transition boundaries. DOSHE enforces an explicit Focus Gate before unlocking study media, pairs persistent SQLite state with an Active Urge Shield, and synthesizes native Web Audio soundscapes locally with zero external media streaming overhead.

Tech Stack

  • Node.js
  • Express.js
  • SQLite
  • HTML5 / CSS3
  • JavaScript (ES6+)
  • Web Audio API
  • Render Cloud

Runtime Modules

  • Express Control Plane RESTful session lifecycle, task state mutations, and Focus Gate validation.
  • SQLite Persistence Layer Single-file relational ledger tracking streaks, urge logs, and Top-3 commitments.
  • Web Audio Synthesizer Procedural noise & harmonic drones running off lightweight native audio nodes.

Behavioral Guarantees

  • Focus Gate Requires deliberate intent declaration and duration lock before entering a study session.
  • FocusTube Strips algorithmic recommendations, comments, and autoplay traps into a single-purpose study player.
  • Active Urge Shield Friction-layered interruption protocol that intercepts context switches mid-session.
  • Top-3 Prioritization Hard cap of three active tasks per cycle to prevent backlog sprawl.
  • Web Audio Soundscapes Synthesized brown/pink/ambient audio generated natively in-browser via AudioContext.
SYS—02 Real-Time 3D Engine · Bounded AI Systems
Live on Render Cloud

Snake-3d-app

Deterministic Three.js 3D Engine & 120ms Timeout AI Coach

01 · CLIENT 3DThree.js EngineDeterministic Tick02 · CONTRACT120ms BreakerJSON v1.2 + SQLite0 FRAME DROPSPATH A ≤ 120msAI Round CoachPrompt TelemetryPATH B > 120msLocal Fallback0.4ms Deterministic

System Overview

A deterministic Three.js 3D arcade engine coupled to an Express and SQLite backend, featuring versioned JSON API contracts and an AI round coach bounded by a strict 120ms timeout with an instant local fallback.

Architectural Thesis

LLM and external inference latency cannot dictate a real-time loop. Snake-3d-app isolates AI coaching behind a versioned JSON contract with a hard 120ms AbortController deadline: if inference stalls or fails, a deterministic local heuristic resolves the round feedback at zero frame cost.

Tech Stack

  • Three.js
  • Node.js
  • Express.js
  • SQLite
  • Versioned JSON Contracts
  • Prompt Engineering
  • Render Cloud

Runtime Modules

  • Three.js Tick Engine Deterministic grid-step simulation decoupled from variable display refresh rates.
  • 120ms AI Coach Gateway Express endpoint racing external prompt inference against a strict 120ms deadline.
  • Local Heuristic Fallback Rule-based spatial evaluator delivering guaranteed structured coaching under any network state.

Behavioral Guarantees

  • 120ms AI Budget Hard circuit-breaker timeout prevents slow model responses from blocking round transitions.
  • Deterministic Fallback Zero-latency local tactical analyzer computes pathing & hazard feedback if AI times out.
  • Versioned Contracts Strict JSON schema boundaries validate round telemetry and coaching payloads.
  • SQLite Telemetry Persists run histories, scores, and coaching diagnostics across sessions.

Interactive Contract Simulator

Test both state machines live.

Switch between Snake-3d-app (120ms AI circuit-breaker vs. local heuristic fallback) and DOSHE (Focus Gate lock vs. Active Urge Shield interception) to inspect the exact contract transitions.

LIVE CONTRACT BENCH · v1.2

POST /api/v1/coach/round

48.4 ms AI_COACH_200

Upstream LLM Coach resolved inside 120ms budget

{
  "schemaVersion": "1.2.0",
  "budgetMs": 120,
  "elapsedMs": 48.4,
  "source": "ai-coach-gateway",
  "fallbackEngaged": false,
  "frameDrop": 0,
  "coaching": "Avoid corner trap on axis Z+1; maintain 3-tile perimeter clearance."
}