Open-source demo: TypeSafe Jev as a typed router inside a Flue agent on Cloudflare
irvinebroque · x · 2026-09-19
Matthew Phillips open-sourced a demo (flue-jev-demo) showing how to embed TypeSafe Jev as a router inside a Flue agent, with app-side AI requests routed through the Cloudflare AI Gateway.
Key points:
- All application AI requests go through the Worker's AI binding and its default AI Gateway — no application API keys or account-ID env vars needed
- Flue chat turns use cloudflare/openai/gpt-4o-mini, while typed routing is delegated to typesafe/jev
- The core API useJevRouter() turns a typed question map into a validated routewithjev tool: the agent calls Jev and gets structured choices, probabilities, and confidence, without treating Jev as its chat model
- Built on published npm packages @flue/[email protected] and @flue/[email protected], standalone from the Flue monorepo
More from coding & agent
- Thorsten Ball demos agent picking its next command from shell history — IanArawjo · 2026-09-19
- LTX 2.5 native inpainting workflows with IC-Lora control released for free — No-Property3068 · 2026-09-19
- DSPy crew ships lm15, a zero-dependency litellm alternative for multi-provider LLM calls — lateinteraction · 2026-09-19
- LangChain to host livestream on Jev, a model claiming 200x faster, 400x cheaper inference — LangChain · 2026-09-19
- Clairvoyance integrates Jev to help persistent-memory AI agents recall the right context — draginol · 2026-09-19
- Claude Code desktop app doesn't mute its browser agent, scare ensues — scaling01 · 2026-09-19