Fork me on GitHub

NTypewriter - C# to TypeScript converter

Generate strongly typed clients and models, the way you like it

An unhandled error has occurred. Reload 🗙

extension for Visual Studio

  • design and build time rendering
  • .nt template editor

Roslyn source generator

  • build time rendering
  • best for CI/CD/pipeline

Blazor client side

  • online rendering
  • heavy, slow and limited

Editor

.nt template editor provides: syntax highlighting, code completion, quick info, live preview. Available only for Visual Studio.

Extensible

You can extend .nt templates with custom functions written in C# that have full access to code model and can be debug.

100+ Built-in functions

NTypewriter comes with rich set of built-in functions to aid writing templates.

Scriban

.nt templates are based on Scriban, well-know template engine with easy to learn syntax.

Roslyn

Code model exposes data from Roslyn API. If you are familiar with Roslyn, you should feel at home.

Free and Open Source

NTypewriter is available for free. Most of its code is open source and based on MIT license.