← All projects
Developer building blocks

TypeChat

A Microsoft library that helps programs turn plain-language requests into reliable, structured data using AI.

New this week

What it does

TypeChat helps developers build apps where people type requests in everyday language. The developer describes, in code, the shape of the information the app needs, such as items in a shopping cart.

TypeChat then asks the AI model to answer in that exact shape, checks the answer, and asks the model to fix it if it does not fit. Its makers call this replacing prompt engineering with schema engineering.

It is available for TypeScript and Python, with a separate version for C#.

Who it's for

Developers adding natural-language features to their apps.

Can I use it without coding?

Developers only. It's a code library for programmers. New to this? Start here.

Can I run it?

Computer
An ordinary computer is fine
API key
Not needed

Try it

Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?

Before you install

  • Only download from the official GitHub page. Copies with similar names exist for many popular projects.
  • License (MIT): Very permissive: free to use, change and share, including for business.
  • More on staying safe