![]() |
VOOZH | about |
dotnet add package Microsoft.JavaScript.NodeApi.Generator --version 0.9.21
NuGet\Install-Package Microsoft.JavaScript.NodeApi.Generator -Version 0.9.21
<PackageReference Include="Microsoft.JavaScript.NodeApi.Generator" Version="0.9.21" />
<PackageVersion Include="Microsoft.JavaScript.NodeApi.Generator" Version="0.9.21" />Directory.Packages.props
<PackageReference Include="Microsoft.JavaScript.NodeApi.Generator" />Project file
paket add Microsoft.JavaScript.NodeApi.Generator --version 0.9.21
#r "nuget: Microsoft.JavaScript.NodeApi.Generator, 0.9.21"
#:package Microsoft.JavaScript.NodeApi.Generator@0.9.21
#addin nuget:?package=Microsoft.JavaScript.NodeApi.Generator&version=0.9.21Install as a Cake Addin
#tool nuget:?package=Microsoft.JavaScript.NodeApi.Generator&version=0.9.21Install as a Cake Tool
This project enables advanced interoperability between .NET and JavaScript in the same process.
Interop is high-performance and supports TypeScript type-definitions generation, async (tasks/promises), streams, and more. It uses Node API so it is compatible with any Node.js version (without recompiling) or other JavaScript runtime that supports Node API.
⚠️ Status: Public Preview - Most functionality works well, though there are some known limitations around the edges, and there may still be minor breaking API changes.
Getting-started guidance, feature details, and API reference documentation are published at https://microsoft.github.io/node-api-dotnet
// JavaScript
const Console = require('node-api-dotnet').System.Console;
Console.WriteLine('Hello from .NET!'); // JS writes to the .NET console API
// C#
interface IConsole { void Log(string message); }
var nodejs = new NodejsPlatform(libnodePath).CreateEnvironment();
nodejs.Run(() =>
{
var console = nodejs.Import<IConsole>("global", "console");
console.Log("Hello from JS!"); // C# writes to the JS console API
});
Depending on the scenario, either NPM or NuGet packages may be used:
node-api-dotnetMicrosoft.JavaScript.NodeApiSee Packages & Releases for details.
For information about building, testing, and debugging this project, see .
Contributions require agreement to the Contributor License Agreement.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
<br/> <br/>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 is compatible. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on Microsoft.JavaScript.NodeApi.Generator:
| Package | Downloads |
|---|---|
|
CriusNyx.DevCon
Package Description |
|
|
SsrCore
SsrCore bridges the gap between ASP.NET Core and Node.js, allowing you to run your SSR JavaScript frontend (React, Vue, Svelte, etc.) within your .NET application while leveraging full streaming capabilities. It is designed to work with any Vite SSR bundle. |
Showing the top 2 popular GitHub repositories that depend on Microsoft.JavaScript.NodeApi.Generator:
| Repository | Stars |
|---|---|
|
microsoft/winappCli
winapp, the Windows App Development CLI, is a single command-line interface for managing Windows SDKs, packaging, generating app identity, manifests, certificates, and using build tools with any app framework.
|
|
|
microsoft/semantic-kernel-starters
Starter Projects for Semantic Kernel
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.29-gef9453cdcf | 138 | 5/27/2026 |
| 0.9.24-g9c8dd0444e | 103 | 5/24/2026 |
| 0.9.21 | 1,050 | 5/27/2026 |
| 0.9.19 | 6,466 | 1/16/2026 |
| 0.9.18 | 1,430 | 12/9/2025 |
| 0.9.17 | 9,940 | 10/17/2025 |
| 0.9.15 | 267,212 | 8/3/2025 |
| 0.9.13 | 37,198 | 8/2/2025 |
| 0.9.12 | 2,745 | 6/26/2025 |
| 0.9.11 | 137,898 | 3/15/2025 |
| 0.9.10 | 279 | 3/14/2025 |
| 0.9.9 | 1,127 | 3/6/2025 |
| 0.9.8 | 424 | 3/5/2025 |
| 0.9.7 | 388 | 3/5/2025 |
| 0.9.5 | 666 | 2/18/2025 |
| 0.9.4 | 304 | 2/11/2025 |
| 0.9.3 | 362 | 2/4/2025 |
| 0.9.2 | 336 | 2/4/2025 |
| 0.9.1 | 2,195 | 2/2/2025 |