SharpTS 1.0.11-rc.3

This is a prerelease version of SharpTS.
There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global SharpTS --version 1.0.11-rc.3
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local SharpTS --version 1.0.11-rc.3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SharpTS&version=1.0.11-rc.3&prerelease
                    
nuke :add-package SharpTS --version 1.0.11-rc.3
                    

SharpTS

SharpTS is a TypeScript interpreter and ahead-of-time compiler written in C# for .NET 10. It parses and type-checks TypeScript directly, then either executes the syntax tree or emits .NET IL; there is no JavaScript transpilation step.

NuGet License: MIT .NET

Install

Install the command-line tool from NuGet:

dotnet tool install --global SharpTS

Self-contained managed and Native AOT binaries are also published on GitHub Releases. See the Native AOT guide before choosing the native build because it deliberately has a smaller interop and tooling surface.

Interpret TypeScript

Create hello.ts:

interface Greeting {
  name: string;
}

const greeting: Greeting = { name: "SharpTS" };
console.log(`Hello, ${greeting.name}!`);

Run it directly:

sharpts hello.ts

Running sharpts without a file starts the interactive REPL.

Compile to .NET

Compile the same program to a runnable .NET assembly:

sharpts --compile hello.ts -o hello.dll
dotnet hello.dll

Use --target exe for an executable target, or the SharpTS.Sdk MSBuild SDK for repeatable .NET project builds. Compiled output embeds the runtime it needs and only copies SharpTS.dll when an emitted soft-dependent feature requires it.

Major feature areas

  • TypeScript syntax, type checking, modules, projects, declarations, JSX/TSX, async functions, decorators, and JavaScript built-ins
  • Interpreter and compiled-IL execution with a documented parity contract
  • Node-compatible built-in modules and real npm package loading
  • .NET imports, external assemblies and NuGet references, C# consumption, and embedding APIs
  • MSBuild SDK integration, TypeScript-source debugging, and a standalone language server
  • Retained Avalonia desktop applications written in TypeScript/TSX
  • Managed self-contained and Native AOT distribution options

The current capability matrix and known gaps are in STATUS.md.

Documentation

Start with the documentation hub for task-oriented guides. Runnable examples are collected in the Examples cookbook. Contributors should read CONTRIBUTING.md and ARCHITECTURE.md.

SharpTS is licensed under the MIT License.

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.

This package has no dependencies.

Version Downloads Last Updated
1.0.12 42 8/17/2026
1.0.11-rc.3 41 8/11/2026
1.0.11-rc.2 39 8/11/2026
1.0.11-rc.1 53 8/10/2026
1.0.9 96 8/10/2026
1.0.8 128 7/12/2026
1.0.7 815 2/5/2026
1.0.6 799 1/23/2026
1.0.5 800 1/17/2026
1.0.4 825 1/11/2026
1.0.3 819 1/7/2026
1.0.2 814 1/3/2026
1.0.1 806 1/3/2026
1.0.0 817 1/3/2026