Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary
by maxloh on 7/26/2026, 10:46:10 PM
https://github.com/vercel-labs/scriptc
Comments
by: acmnrs
Porforr<<a href="https://porffor.dev" rel="nofollow">https://porffor.dev</a>> has been working towards the same goal for a while. The creator, CanadaHonk<<a href="https://honk.foo" rel="nofollow">https://honk.foo</a>>, is extremely talented and the project still only passes ~68% of Test262. I'm more than a little suspicious of how Vercel has made so much progress so fast, unless I'm misunderstanding the scope of this project.
7/27/2026, 2:34:14 AM
by: sheept
One of the strengths of TypeScript besides its expressiveness is that it's compatible with the massive npm ecosystem. Most packages only ship untyped JavaScript with type declarations defining the interface,[0] so realistically you'd still need a JavaScript engine if you use any packages.<p>But if you're starting from scratch and know you won't be using any npm packages, you might as well use AssemblyScript.[2]<p>[0]: Publishing packages in TypeScript is explicitly discouraged by Node[1]. TypeScript isn't backwards compatible even in minor releases, and its compiler settings aren't portable for packages.<p>[1]: <a href="https://github.com/nodejs/node/blob/main/doc/api/typescript.md#type-stripping-in-dependencies" rel="nofollow">https://github.com/nodejs/node/blob/main/doc/api/typescript....</a><p>[2]: <a href="https://www.assemblyscript.org/" rel="nofollow">https://www.assemblyscript.org/</a>
7/27/2026, 2:50:14 AM
by: hakcermani
> macOS arm64 is the primary platform; Linux and Windows binaries build by cross-compilation<p>wish it was the other way around
7/27/2026, 4:14:15 AM
by: satvikpendem
A lot of people are trying this now with AI, a native TypeScript compiler, for example <a href="https://github.com/PerryTS/pry" rel="nofollow">https://github.com/PerryTS/pry</a>. It's a compelling value proposition, TypeScript is already well typed and barring a few cases it can be turned into machine code without a JS runtime.
7/27/2026, 2:28:13 AM
by: chilipepperhott
It's difficult to ignore how the README is filled with Claudisms.
7/27/2026, 2:56:17 AM
by: aabhay
178kb?! What are you putting in there, a JVM?
7/27/2026, 2:22:00 AM
by: xiaodai
how can you compile it if javascript is a valid subset of typescript? confused.
7/27/2026, 3:11:35 AM
by:
7/27/2026, 3:16:45 AM
by: casper14
I like the idea.
7/27/2026, 2:40:01 AM