Description
Bootsharp is a tool for using C# in web apps: it compiles a C# solution into an ES module with generated JavaScript bindings and TypeScript type definitions. The idea is to write the domain logic in C# while building the user interface with the usual TypeScript frontend tools. Running dotnet publish produces a complete ES package, including package.json, that can be imported directly into a web project. The output runs in Node, Deno, Bun, web browsers and constrained hosts such as VS Code extensions. You can bind individual C# members or whole API surfaces, and types are handled automatically: immutable values are copied with a fast binary serializer while others are passed by reference. Namespaces, names and C# to TypeScript type mappings are configurable, and WASM is compiled with NativeAOT-LLVM and optimized with Binaryen to keep bundles small.…
Highlights
- Generates JS bindings and TypeScript declarations for C# APIs
- dotnet publish outputs a ready ES package
- Runs in Node, Deno, Bun, browsers and VS Code extensions
- Automatic type marshalling by copy or reference
- Configurable names and type mappings
- NativeAOT-LLVM and Binaryen for small WASM output
Ratings & Reviews
No ratings yet
Be the first to rate Bootsharp.
People also visit
Bootsharp FAQ
What is Bootsharp?
A tool that compiles a C# solution into an ES module with auto-generated JavaScript bindings and TypeScript definitions, so C# code can be used from web apps.
How do I build a package?
Run dotnet publish; the output is a full ES package with package.json that you can import into a web project.
Where does the output run?
Node, Deno, Bun, web browsers and constrained environments such as VS Code extensions.
How are types passed between C# and JavaScript?
Immutable types are copied with a fast binary serializer; other types are passed by reference, automatically.
Is it open source?
Yes, the source is on GitHub at elringus/bootsharp.
What are the best Bootsharp alternatives?
Popular alternatives to Bootsharp include Core, ASP.NET and DotNetify. See all Bootsharp alternatives






