TypeSpec Compiler

The TypeSpec compiler processes `.tsp` TypeSpec files and emits output for configured emitters (OpenAPI, JSON Schema, Protobuf, etc.). It provides a programmatic Node.js/TypeScript API for building TypeSpec tooling, custom emitters, and compilers.

API entry from apis.yml

apis.yml Raw ↑
aid: typespec:typespec-compiler
name: TypeSpec Compiler
description: The TypeSpec compiler processes `.tsp` TypeSpec files and emits output for configured emitters
  (OpenAPI, JSON Schema, Protobuf, etc.). It provides a programmatic Node.js/TypeScript API for building
  TypeSpec tooling, custom emitters, and compilers.
humanURL: https://typespec.io/docs
tags:
- API Design
- Code Generation
- Compiler
- Specification Language
properties:
- type: Documentation
  url: https://typespec.io/docs
- type: GitHub Repository
  url: https://github.com/microsoft/typespec
- type: npm Package
  url: https://www.npmjs.com/package/@typespec/compiler
- type: Getting Started
  url: https://typespec.io/docs/getting-started/getting-started-rest
- type: Language Reference
  url: https://typespec.io/docs/language-basics/overview