Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Pick any model on OpenRouter and watch it code a web page live — with measured tokens/second, time-to-first-token, and exact cost per generation.
Sibling of kimi-coder, which is pinned to Kimi K3 on Modal.
index.ts— Hono server: streams/api/generateas server-sent events;/api/modelsproxies OpenRouter's model catalog (cached) to power the typeaheadopenrouter.ts— one streaming chat completion withprovider: {sort: "throughput"}(fastest host) andreasoning: {enabled: false}(raw codegen speed, no thinking)frontend/— React chat + model picker (native datalist typeahead over all ~340 models) + code stream + live preview
- Remix this val
- Get an API key at openrouter.ai/keys, then:
👉 Add OPENROUTER_API_KEY here: https://www.val.town/x/stevekrouse/openrouter-coder/environment-variables?key=OPENROUTER_API_KEY