microsoft/TypeChat

TypeChat is a library that makes it easy to build natural language interfaces using types.

79
/ 100
Verified

Uses TypeScript/Python/C# type definitions as schemas to prompt LLMs and automatically validate responses, repairing non-conforming output through further model interaction rather than relying on prompt engineering. Supports hierarchical schemas via meta-schemas for selecting sub-schemas, and includes built-in summary validation to confirm alignment with user intent without additional LLM calls.

8,631 stars and 10,921 monthly downloads. Used by 2 other packages. Actively maintained with 2 commits in the last 30 days. Available on npm.

Maintenance 16 / 25
Adoption 21 / 25
Maturity 25 / 25
Community 17 / 25

How are scores calculated?

Stars

8,631

Forks

409

Language

TypeScript

License

MIT

Last pushed

Mar 10, 2026

Monthly downloads

10,921

Commits (30d)

2

Reverse dependents

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/microsoft/TypeChat"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.