Skip to Content
πŸ“– Guide DocumentsPlugin EcosystemOverview

Plugin Ecosystem

ttsc plugins are npm packages that hook into the compiler. Once installed, every ttsc build, ttsx run, and @ttsc/unplugin bundler pass sees them. Diagnostics flow through the same stream as type errors; the VS Code extension also surfaces diagnostics/actions from plugins that opt into the LSP protocol.

First-party utility plugins

Small plugins shipped from this repo:

  • @ttsc/banner: adds a fixed @packageDocumentation JSDoc banner to every emitted file.
  • @ttsc/paths: rewrites compilerOptions.paths aliases into relative imports in the emit.
  • @ttsc/strip: removes console.log, debugger, and other configured patterns from the emit.

For lint and format, see the dedicated Lint & Prettier chapter.

Third-party plugins

External transforms that ship through the same plugin protocol:

  • typia: runtime validators, JSON tools, LLM function calling, Protocol Buffer codecs, all generated from your TypeScript types.
  • nestia: NestJS controllers, OpenAPI documents, SDK generation, and E2E test scaffolding, backed by typia.

Each ships on its own release schedule with its own docs. The pages above cover β€œhow does it slot into ttsc?”; for the full API surface follow the upstream docs (typia.io, nestia.io).

PRs adding plugins to this list are welcome. The bar is β€œinstalls and works on a current ttsc release.”

Writing your own

β†’ Plugin Development, the audience-walled section for plugin authors.

Last updated on