NSmithy.Http 0.15.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NSmithy.Http --version 0.15.0
                    
NuGet\Install-Package NSmithy.Http -Version 0.15.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NSmithy.Http" Version="0.15.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NSmithy.Http" Version="0.15.0" />
                    
Directory.Packages.props
<PackageReference Include="NSmithy.Http" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NSmithy.Http --version 0.15.0
                    
#r "nuget: NSmithy.Http, 0.15.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NSmithy.Http@0.15.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NSmithy.Http&version=0.15.0
                    
Install as a Cake Addin
#tool nuget:?package=NSmithy.Http&version=0.15.0
                    
Install as a Cake Tool

NSmithy

CI Docs NuGet .NET 10 License Smithy CLI

Preview: NSmithy is in preview; expect some API changes before 1.0.


Docs · Examples · Design Docs · smithy.io

NSmithy is a community-maintained Smithy code generator for C# and .NET. Smithy is a protocol-agnostic interface definition language: a model describes a service's operations, data types, and errors once, independent of programming language. AWS defines its entire API surface in Smithy and generates its SDKs from it. Larger organizations also use it for API governance, since models can be linted, validated, and checked for breaking changes before any code exists.

Smithy has code generators for Java, TypeScript, Go, Rust, Python, Kotlin, and Scala, so a .NET service and clients in those languages can share one model. NSmithy generates typed clients, ASP.NET Core server stubs, and model types from a Smithy model during dotnet build, with no separate codegen step. A client and a server generated from the same model agree on routes, serialization, and errors. It supports restJson1, rpcv2Cbor, gRPC, and the AWS protocols; see protocol status.

Quick start

With the .NET 10 SDK and the Smithy CLI installed:

dotnet new install NSmithy.Templates
dotnet new nsmithy-contracts -n HelloWorld.Contracts
dotnet new nsmithy-server -n HelloWorld.Server --contracts-project HelloWorld.Contracts
dotnet run --project HelloWorld.Server

Pass --smithy-cli-package to the templates to get the Smithy CLI from NuGet instead. The quick start adds a client and walks through the generated code.

Contributing

See CONTRIBUTING.md for the development environment and build recipes.

  • Smithy, the IDL NSmithy is built on.
  • smithy4s, the main inspiration for NSmithy.
  • alloy, used for simpleRestJson and gRPC.
  • smithy-go and smithy-typescript, the official generators for Go and TypeScript.
  • TypeSpec, Microsoft's alternative with first-party .NET emitters.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on NSmithy.Http:

Package Downloads
NSmithy.Protocols.RestJson

Smithy restJson1 and alloy simpleRestJson protocols for NSmithy clients and ASP.NET Core servers.

NSmithy.Client

Runtime for NSmithy-generated C# clients: authentication schemes, retries, interceptors, pagination, and endpoint resolution.

NSmithy.Protocols.Rest

Smithy HTTP binding support (routes, headers, query strings, status codes) shared by NSmithy REST protocols.

NSmithy.Server

Protocol-independent server runtime for NSmithy-generated service handlers.

NSmithy.Protocols.RpcV2Cbor

Smithy rpcv2Cbor protocol for NSmithy clients and ASP.NET Core servers.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.23.0 261 11/22/2026
0.22.0 236 11/21/2026
0.21.0 235 11/20/2026
0.20.1 242 11/15/2026
0.20.0 244 11/15/2026
0.19.0 236 11/8/2026
0.18.2 232 11/8/2026
0.18.1 239 11/7/2026
0.18.0 273 11/4/2026
0.17.0 251 11/2/2026
0.16.0 257 11/1/2026
0.15.1 255 10/29/2026
0.15.0 235 10/28/2026
0.14.0 242 10/25/2026
0.13.0 236 10/16/2026
0.12.0 200 10/11/2026
0.11.0 204 10/8/2026
0.10.1 210 10/2/2026
0.10.0 243 9/7/2026
0.9.0 235 8/25/2026
Loading failed