# TypeSpec Compiler

**Canonical:** https://apis.io/apis/typespec/typespec-compiler/  
**Provider:** TypeSpec — https://apis.io/providers/typespec/  
**Documentation:** https://typespec.io/docs

TypeSpec Compiler is one of 6 APIs that [TypeSpec](https://apis.io/providers/typespec/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include API Design, Code Generation, Compiler, and Specification Language. The published artifact set on APIs.io includes API documentation, a GitHub repository, and a getting-started guide.

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.

## Machine-readable artifacts (6)

- **Documentation** — https://typespec.io/docs
- **GitHubRepository** — https://github.com/microsoft/typespec
- **npm Package** — https://www.npmjs.com/package/@typespec/compiler
- **GettingStarted** — https://typespec.io/docs/getting-started/getting-started-rest
- **Language Reference** — https://typespec.io/docs/language-basics/overview
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/typespec/refs/heads/main/apis.yml

## Other TypeSpec APIs (5)

- [TypeSpec OpenAPI Emitter](https://apis.io/apis/typespec/typespec-openapi-emitter/)
- [TypeSpec JSON Schema Emitter](https://apis.io/apis/typespec/typespec-json-schema-emitter/)
- [TypeSpec Protobuf Emitter](https://apis.io/apis/typespec/typespec-protobuf-emitter/)
- [TypeSpec HTTP Library](https://apis.io/apis/typespec/typespec-http-library/)
- [TypeSpec REST Library](https://apis.io/apis/typespec/typespec-rest-library/)

## Tags

API Design, Code Generation, Compiler, Specification Language

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/typespec/typespec-compiler/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/typespec/.
