Tsonic
Tsonic is a TypeScript to C# compiler that produces native executables via .NET NativeAOT. Write TypeScript, get fast native binaries. Opt into @tsonic/js (JavaScript runtime APIs) and @tsonic/nodejs (Node-style APIs) when you want them.
Why Tsonic?
Tsonic lets TypeScript/JavaScript developers build fast native binaries for x64 and ARM64:
Native binaries (no JS runtime).
(no JS runtime). .NET standard library : use the .NET runtime + BCL (files, networking, crypto, concurrency, etc.).
: use the .NET runtime + BCL (files, networking, crypto, concurrency, etc.). Optional JS/Node APIs when you want them : @tsonic/js (JavaScript runtime APIs) and @tsonic/nodejs (Node-style APIs).
: (JavaScript runtime APIs) and (Node-style APIs). Still TypeScript : your code still typechecks with tsc . Tsonic also adds CLR-style numeric types like int , uint , long , etc. via @tsonic/core/types.js .
: your code still typechecks with . Tsonic also adds CLR-style numeric types like , , , etc. via . Better security: you build on a widely used runtime and standard library with regular updates.
Tsonic targets the .NET BCL (not Node’s built-in modules). If you want JavaScript-style APIs, opt into @tsonic/js . If you want Node-like APIs, opt into @tsonic/nodejs .
... continue reading