Skip to content

Related Tools

  • TypeSpec — the language this emitter consumes. Install the compiler with npm install -g @typespec/compiler.
  • TypeSpec playground — experiment with the language in the browser
  • @typespec/openapi3 — model REST APIs in the same TypeSpec sources; many teams run both emitters over one spec
  • @typespec/versioning — versioned API libraries (integrated: latest enum value feeds info.version)
  • AsyncAPI Initiative — the specification this emitter targets
  • AsyncAPI Studio — visualize and edit the emitted documents
  • AsyncAPI parser — programmatic validation of emitted specs
  • Spectral — lint rules on top of schema validation. The spectral:asyncapi ruleset covers AsyncAPI 2.0–2.6 and 3.0/3.1 (3.1 rules shipped in @stoplight/spectral-rulesets 1.23.0, Oct 2026; older versions apply no AsyncAPI rules to 3.x documents)
  • @asyncapi/specs — the binding schemas this emitter’s validation is generated from
Tool Approach AsyncAPI version
typespec-asyncapi (this) TypeSpec emitter, output AJV-validated 3.1.0
tsp-asyncapi TypeSpec emitter, direct-AST 3.0.0
Hand-written YAML none any

The comparison table on the landing page covers capability differences in detail. The short version, checked October 2026:

Capability typespec-asyncapi tsp-asyncapi
AsyncAPI version 3.1.0 3.0.0
Output validation AJV against the official 3.1.0 schema 15 property tests
Protocols / bindings 22 protocols, 19 generated bindings 13, hand-written
Reusable components 11 decorators across 7 component slots not supported
Multi-file output split-schemas with $ref rewriting not supported
Compile-time checks 36 diagnostics deferred

Choose the other emitter if its 3.0 output or its docs site matters more than schema-validated 3.1 output; choose this one when validation, reusable components, and generated binding metadata are the priority.