Open Source

Projects I share so other people can learn from them, adapt them, and build on top of them.

Projects to build with

Token Optimizer

Adaptive LLM orchestration and prompt optimization platform

MIT License
  • Routes requests across providers with automatic failover and streamed progress.
  • Turns rough ideas into structured prompts while tracking usage, cost, and execution traces.
  • Ships with a Chrome MV3 extension and inspectable agent workflows.
  • Node.js
  • Vercel
  • SSE
  • Zod
  • Chrome MV3

How Token Optimizer works

Explore the code map ↗

One request moves through guardrails and adaptive routing, then returns a streamed result with inspectable usage and audit history.

Token Optimizer request flowA request moves from the workspace through validation and routing, then runs directly, through a compact contract, or with verification before returning streamed results and usage.Workspacerough prompt + preflightRequest guardvalidate + redact secretsAdaptive routerchoose leanest routeDirect runsimple requestCompact contractmulti-part workVerified flowhigh-risk workProvider layerfallback + normalized usageResult + auditSSE events · history · insights