SharpTS
Run TypeScript Natively on .NET via AOT Compilation
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hey HN! I'm the author of SharpTS, a TypeScript interpreter and ahead-of-time compiler written in C#.*What makes it different:*- Dual execution modes - interpret TypeScript directly OR compile to native .NET executables - Full C# interop - compile TypeScript to DLLs that C# projects can reference with full type safety*What works today:*- Core TypeScript: classes, interfaces, generics, async/await, decorators - Advanced types: union/intersection types, literal types, type guards - Compiles to verifiable .NET IL with performance comparable to hand-written C# - 80+ unit tests, supports most of TypeScript's feature set*Why I built it:*I wanted to understand how TypeScript really works under the hood, and I thought .NET developers might appreciate being able to run TypeScript without Node.js. The AOT compilation to .NET IL was a fun challenge - mapping TypeScript's structural type system to .NET's nominal types required some creative solutions.*Current limitations:*- No npm module support (yet) - Some advanced type system features are still in progress - Standard library is partial (see STATUS.md)The repo has detailed architecture docs if you're curious about the implementation details. Would love feedback, especially from TypeScript or compiler folks!Example usage: ``` # Install dotnet tool install -g SharpTS# Interpret sharpts script.ts# Compile to .NET sharpts --compile script.ts dotnet script.dll ```Happy to answer questions!
HN · launched Jan 9, 2026 · 6 upvotes (top 75%) · 0 views
Niche: programming language compilers · 77 launches, 2 in the last 7 days ▼ -60% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 77 launches in programming language compilers →
Could you build this?
No Building an ahead-of-time compiler and native runtime interpreter for TypeScript in C# requires deep compiler engineering and language specification knowledge.
What it would actually take: Requires writing a full TypeScript AST parser, type checker, semantic analyzer, and IL code generator or native code emitter via .NET Roslyn or RyuJIT backend. TypeScript's complex structural typing system, dynamic JS semantics, and interop with the CLR type system represent immense compiler architecture challenges that vibe coding cannot handle.
Discussion
1 comment analyzed.
Feature requests: Support for older .NET versions
Competitors
Other products that read as similar to this one : 375 launches clear the similarity bar, closest 8 shown.
Attention rank: #312 of 376 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 69 days after the earliest competitor.
- Typical is TypeScript with type-safety at runtime · hn · 2026-01-11 · 8 upvotes · similarity 0.59
- TypeScript 6.0 · ph · 2026-03-24 · 156 upvotes · similarity 0.53
- Crust · hn · 2026-03-17 · 95 upvotes · similarity 0.53
- ts-rust · github · 2026-10-07 · 1036 upvotes · similarity 0.53
- SharpForge · github · 2026-10-03 · 19 upvotes · similarity 0.53
- lucent · github · 2026-09-21 · 17 upvotes · similarity 0.52
- Building an LLM from Scratch in TypeScript · hn · 2026-10-14 · 33 upvotes · similarity 0.52
- mcp-tada · github · 2026-09-10 · 23 upvotes · similarity 0.51
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.