microsoft/TypeChat

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

Owned by Microsoft

View on GitHub ↗Jump to charts ↓Open shareable report →

microsoft/TypeChat has 8.5k+ stars and 400+ forks on GitHub, is written in TypeScript, and was last pushed on Oct 15, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on September 7th, 2026
Created on June 20th, 2023
Open Issues & Pull Requests: 45 (+0)
GitHub issues: Enabled
Number of forks: 424
Total Stargazers: 8,693 (+0)
Total Subscribers: 57 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 6.3 days
Mean response time: 342.5 days
90th percentile: 1136.6 days
Tracked items: 54

Maintainer activity

1 person did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 11, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits. How this is counted.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 12
New in 7 days: 8
Closed in 7 days: 41
Avg open age: 253 days
Stale 30+ days: 4
Stale 90+ days: 3

Recent activity

Opened in 7 days: 8
Closed in 7 days: 41
Comments in 7 days: 0
Events in 7 days: 6

Top labels

  • Suggestion (13)
  • In Discussion (6)
  • Question (5)
  • help wanted (5)
  • Language: TypeScript (4)
  • Design Notes (3)
  • Language: Python (3)
  • Discussion (2)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

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

Building natural language interfaces traditionally required complex decision trees and prompt engineering to constrain model outputs and ensure valid responses. TypeChat replaces prompt engineering with schema engineering by letting developers define types representing the intents their application supports. These types can be simple interfaces for sentiment categorization or complex structures for shopping carts and music applications. Developers extend functionality by adding types to discriminated unions, and can create hierarchical schemas using meta-schemas to select sub-schemas based on user input. The library then handles constructing prompts to the LLM, validating responses against the schema, repairing non-conforming output through further model interaction, and summarizing results to confirm alignment with user intent.

TypeChat suits developers building conversational applications who want to move away from fragile prompt engineering toward declarative type definitions. The approach works across TypeScript, Python, and C#/.NET, with example projects available to explore. The library is particularly valuable when you need structured, validated outputs from language models without the maintenance burden of hand-crafted prompts.

The project maintains active engagement with contributions and pull requests, indicating ongoing development and community involvement. Documentation is actively maintained with examples and getting started guides readily available. The codebase spans multiple language implementations, suggesting sustained effort to support developers across different technology stacks.