typespec-tools icon indicating copy to clipboard operation
typespec-tools copied to clipboard

TypeSpec-Tools


TypeSpec-Tools is a collection of tools designed to simplify your development process and enhance your experience with Type-safe code using the TypeSpec DSL.

The motivation behind creating this project was to provide developers with a set of tools that would simplify and enhance their experience when working with TypeSpec. I come from a heavy GraphQL background and loved the concept of spec-first API designs, and have the Types be enforced by the code. I also loved using the CodeGen tools available. My hope is that TypeSpec-Tools helps provide the tools necessary to get up and running with TypeSpec quickly.

Packages

  • emitter-typescript: A TypeSpec emitter for Typescript types.
  • emitter-express: A TypeSpec emitter for building type-safe Express routes.
  • emitter-fetch-client: A TypeSpec emitter for building a type-safe Fetch Client.
  • emitter-zod: A TypeSpec emitter for Zod schemas.

Please refer to the individual package README files for more information on each tool.

Alternatives