Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
x-codegen-typescript - Skill - OpenSmartRoute
Skillv1.0.0
x-codegen-typescript
TypeScript backend - generates TypeScript source for browser/Node.js/Deno.
Imported from x-lang-org/x-lang (compiler/x-codegen-typescript/AGENTS.md). Install upstream with npx skills add x-lang-org/x-lang --skill x-codegen-typescript. Copyright stays with the author.
AGENTS.md — compiler/x-codegen-typescript/
Updated: 2026-04-22 | Backend: TypeScript
OVERVIEW
TypeScript backend - generates TypeScript source for browser/Node.js/Deno.
KEY TYPES
Type
Purpose
TypeScriptBackend
Main backend struct
TypeScriptBackendConfig
Backend configuration
PIPELINE
Input: x_parser::ast or x_lir::Program
Output: TypeScript source
IMPLEMENTATION
impl CodeGenerator for TypeScriptBackend
Supports target runtimes: browser, node, deno
DEPENDENCIES
Input: x_parser::ast or x_lir::Program
Output: .ts files
TESTS
cd compiler && cargo test -p x-codegen-typescript
NEXT STEPS
See x-codegen/ for base trait
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
Installed into a catalogue, chosen by a router
Install x-codegen-typescript and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.