HNHacker News
TopNewBestAskShowJobs

qwertycodepl

19 karma · joined May 20, 2025

submissionscomments
qwertycodepl··on Show HN: Astra – a new js2exe compiler
https://astra-js.netlify.app/cli/faq/#thats-not-a-compiler-t...
qwertycodepl··on Show HN: Astra – a new js2exe compiler
https://astra-js.netlify.app/cli/faq/#thats-not-a-compiler-t...
qwertycodepl··on Show HN: Astra – a new js2exe compiler
Yes, astra it's aiming to compile CLIs and servers (express, fastify etc.). It's not replacing electron.
qwertycodepl··on Show HN: Astra – a new js2exe compiler
I totally understand your point - Astra doesn’t do register allocation or full parsing, so strictly speaking, it’s not a compiler in the traditional sense.

I used the term "compiler" because for many developers, it’s strongly associated with "turning source code into a single binary." That’s what Astra does at a practical level - even if it's technically just bundling and embedding into a node executable using SEA and postject.

qwertycodepl··on Show HN: Astra – a new js2exe compiler
Yes it's just esbuild and SEA BUT that's actually the point. SEA is officialy supported by node.js and it constantly improves. Remember pkg and nexe supports only the older versions of node.js (~14) and astra supports the latest ones.

So in a way, the "magic sauce" it that it doesn't try to do anything fancy. I made astra beacuse i needed to compile js to exe for latest versions.

I wanted astra to be simple, built on official tools, and be future-proof.

qwertycodepl··on Show HN: Astra – a new js2exe compiler
yeah it's not but i don't know how to call it. if i say it's bundler it will be more confusing in my opinion. waiting for your suggestions!
qwertycodepl··on Show HN: Astra – a new js2exe compiler
Thanks for the feedback! I'm constantly working on the project. It's hard to do bc node sea is still an experimental feaurte and there's no much documentation about it, and i want to make it highest quality possible. And it's my first open-source project what's actually getting attention. I would really appreciate any help with this project!
qwertycodepl··on Show HN: Astra – a new js2exe compiler
Thanks for the feedback! You're right - Astra is technically a bundler-to-executable tool, not a source-level compiler like Babel or TypeScript.

I called it a “compiler” in the sense that it transforms a JS project into a standalone .exe, similar to how tools like pkg or nexe are often described. That said, I’ll consider clarifying that in the description to avoid confusion. Appreciate the comment!

qwertycodepl··on Show HN: Astra – a new js2exe compiler
thanks :)
qwertycodepl··on Show HN: Astra – a new js2exe compiler
yes but it uses node SEA you can read about it here: https://nodejs.org/api/single-executable-applications.html