NSwag: OpenAPI Toolchain for .NET and TypeScript

JSON →
library 14.7.0 ·javascript
verified May 27, 2026

NSwag is a comprehensive toolchain designed for generating OpenAPI (Swagger) specifications from ASP.NET Web API controllers and subsequently generating client code in various languages, primarily TypeScript and C#. It supports a wide range of client frameworks including Angular, React, and jQuery, and handles both OpenAPI 2.0 (Swagger) and 3.0 specifications. The current stable version, 14.7.0, reflects active development with frequent minor releases. NSwag differentiates itself through its deep integration with the .NET ecosystem for robust spec generation and its versatile client generation capabilities. It operates predominantly as a command-line interface (CLI) tool, wrapping .NET executables, and crucially requires a compatible .NET runtime (Full .NET Framework 4.6.2+ or .NET 6.0+) to be installed on the system where the CLI commands are executed.

total hits 19
actors 9 distinct systems
last hit 1d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
2
ClaudeBot
1
ChatGPT-User
1
Search engines
3

top countries 🇺🇸 United States · 🇵🇱 Poland · 🇨🇦 Canada · 🇩🇪 Germany · 🇮🇳 India