Esta página se muestra en inglés. Una traducción al español está en curso.
ScriptsMay 11, 2026·2 min de lectura
TypeChat — Schema-First Natural Language UIs
Build typed natural language interfaces by turning intent into validated JSON via TypeScript types. Replace prompt engineering with schema engineering.
Este activo puede ser leído e instalado directamente por agents
TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.
Build typed natural language interfaces by turning intent into validated JSON via TypeScript types. Replace prompt engineering with schema engineering.
Best for: Product teams who need typed actions (APIs, workflows) from an LLM with validation and repair loops
Works with: TypeScript/JavaScript, any LLM backend, JSON schema-style validation flows
Setup time: 12 minutes
Quantitative Notes
Setup time ~12 minutes (npm install + run one example in the repo)
GitHub stars + forks (verified): see Source & Thanks
If you’re building an agent that triggers actions, define a narrow union type for allowed intents and keep each intent payload minimal. Add deterministic validation (schema + business rules) and log all repairs—repairs are where many hidden bugs appear. Over time, grow the schema set rather than growing prompts.
Safety note: Always validate typed JSON with business rules (not just schema) before executing real actions.
FAQ
Q: Do I still need prompt engineering?
A: Much less. You focus on defining types/schemas; prompts become smaller and more stable.
Q: How does it handle invalid JSON?
A: It validates and can re-prompt the model to repair non-conforming output.
Q: Is it only for TypeScript apps?
A: TypeChat provides TypeScript/JS support, and the repo also references other language variants.