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@packageDocumentationJSDoc banner to every emitted file.@ttsc/paths: rewritescompilerOptions.pathsaliases into relative imports in the emit.@ttsc/strip: removesconsole.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.