Show HN: Ant – A JavaScript Runtime and Ecosystem (antjs.org)

3 points by theMackabu ↗ HN
Hello HN!

I'm the author of Ant, a JavaScript ecosystem built around a runtime with its own JavaScript engine. Ant also includes a package manager, the ants.land package registry, a platform for deploying and hosting applications, and Ant Desktop for building native desktop apps with web technologies, similar to Electron.

The goal is for these pieces to work as one coherent platform while remaining compatible with the wider JavaScript ecosystem. It's still early, and I'd appreciate any feedback on the overall direction or what you'd like to see from an e2e alternative to the existing JavaScript stacks.

P.S. I’ve shared Ant here before as a runtime; since then, it has grown into the broader ecosystem you see today.

122 comments

[ 4.5 ms ] story [ 69.6 ms ] thread
I have actually known* about Ant for some time from your previous submissions and its really interesting and I wish the project luck!

Do you think that Ant could be used to create a small index.html/css/js project into an desktop app minimally.

I currently found deno desktop which is pretty recent to be the easiest way of doing this for one of my projects (https://epub.mirror.forum) but I found there to be some issues within deno-desktop in terms of some features not working on the desktop app but I overall really like the idea of converting these files into desktop apps and I am wondering if ant could be suitable for that, so I am curious to hear what you think :-D

I hope you get some collaborators, to increase the bus factor. You might want to write a roadmap to focus efforts.
What's the benefits over v8?
(comment deleted)
I can't get Bun to work under WSL1, which is super annoying. Does Ant support WSL1?
Why are you Not using WSL2?
Not OP, but WSL1 is still much more performant in some areas, like lower memory use, startup times, quicker windows file access. I haven't used WSL1 in quite some time but I believe it's also still fully supported so use what's better for your use case
Likely not. A lot of debuggers don't work under WSL1 either due to missing syscalls.

I know some folks love the "purity" of WSL 1 but it's really hard to recommend if you care at all about Linux compatibility.

i was just joking about Anthropic's `ant` CLI not caring about Apache `ant` (maybe one person got it), and now we're talking about Javascript `ant`!
I thought I was the only person who remembered Apache Ant... I know we're running out of names but that was a really influential piece of infrastructure.
I was working on our ant build last night
Could you use the JSR package registry instead of setting up a new one?
I agree! It seems the author is already making thoughtful decisions on what to implement and what to drop. You kinda have to when it's a project of this scope.

Implementing, running, maintaining, scaling a module registry is probably not worth the time. Unless there's a clear technical requirement from the runtime. I would think there isn't since npm protocol compatibility is a stated goal/feature.

You're stating: "delivers near-V8 speeds"

But according to zoo.js benchmarks that is far from the case:

https://zoo.js.org/

Unless there were major perf gains since 2026-02-10?

Cool project. I am working on a JavaScript dialect for my kids and non technical team members. I’ll target and as a run time.
I code with AI all day, every day. But I do think that it's worth pointing to this issue (from March).

The author has said that they've redone it since, but the "from-scratch hand-built" framing specifically – for me – somewhat grates given the original heavy lifting from an existing AGPL codebase.

https://github.com/cesanta/elk/issues/75

I want to acknowledge that the original authors don't seem to have minded too much – per that thread – after older versions were dropped.

For context, the current code doesn't look like it is the same shape, the same structure, etc., etc. – it _has_ been rewritten since (the 'since Feb' rewrite mentioned adjacent is related to this, AFAICT).

To the author: I absolutely love what you're doing overall. Keep going! Just be careful, folks.

Ok, but this post: https://themackabu.dev/blog/js-in-one-month

isn't the post of someone who just implemented a js engine (it reads like someone who asked an LLM to write a blog post about the git log of a different LLM which was apparently lifting code from a different js engine...)

It's a bit hard to understand what's going on here, but definitely hard to trust the project.

Apparently prompting LLMs is now "survival mode".
wow! i’ve been using deno for a long time, and one of my fav features is compiling a binary. i didn’t see anything about that, but might have missed something… do you all plan to support this?
Why call it "Ant" and not "Antjs" or "Ant.js" when there is already Ant from Apache? https://ant.apache.org
Yes. You would only name it ant if you wanted to taint the first impression of anyone that’s been coding for a couple decades or more.
Or if you have only started in the last few years and never heard of those older projects.
And could not be bothered to make the tiniest cursory check to see if the name was already in use by a well known project.
It's pretty difficult to tell whether something is, or was at some point, a well known project. Things that were major 20 years ago but are no longer used tend to become invisible since search engines prioritize recent knowledge.

For example, I think young developers would not know that SOAP was a major, like really major, technology in the 2000's. If you google for SOAP now, you get "cleaning products" mostly, and if you're lucky a single mention of the protocol - but unless you dig deeper, it's hard to find out it was actually THE industry standard for web services at some point.

IMO it's exactly the same with Ant (I used Apache Ant a lot in my early days as a dev!! But I've seen how very few Java devs know it these days, it's one of those things only the older guys know, plus a few younger one who have an interest in build systems in general and their history).

Ant in JS land is already claimed and huge too lol

https://ant.design/

There’s also Adam Ant. Who was also a household name.

Some people have also heard of ants of the formicidaen variety.

Yes because those are in the same web development/javascript adjacent vertical, of course!
Neither is Apache Ant not Anthropic CLI yet they’re cited a lot in this discussion too.
Tangent but what a horrible website at least on my android. Starts as light mode, suddenly shows three streched columns, turns to dark mode and the title is hidden behind the header. After years of being around how can they end up with something like this
Completely broken on iOS as well. Feels like AI slop.
It's existed for a lot longer than LLM generated code has
It is funny that people now instinctively think of AI when encountering slop, as if the slop that the AI produces was not deeply informed by the slop it trained on. Plus, the quality bar on the web has always been low, masking the true capability of LLMs.
I bounced when I saw the three broken columns but never even saw the dark mode switch. It’s that slow.
Whenever I'm bored, I go to the ant-design site to see how long it takes to find the first gross accessibility violation. This time it was the dropdown just above the fold, which wasn't keyboard controllable.
ant design is a design system that the marquee title is underneath the top nav. it has at least three major fousc on mobile dark mode ios page load. both are clasic blunders documented and well solved since early bootstrap era. hardly a project worth owning “ant” in the js ecosystem.

apache ant (another neat tool) is from the java ecosystem (and can be used outside of it) that has largely been replaced by maven, which is gradually being replaced gradle.

this project seems to only overlap with either in that it uses javascript (or the word java).

I thought the same thing as I [half] read the title.
I assumed it was a framework from Alibaba, coming out of their Ant Group, where Ant Design also came from.
I'm the first user and contributor to Apache Ant outside of Sun Microsystems when James gave it to me, and I could care less that someone else used the same name.
The thing that caught my eye immediately was the sandboxing. I have no idea why Node and npm don’t have sandboxing by default. It would greatly help with some of these worms and supply chain attacks.
The "VM-isolated sandbox" is apparently not referring to the JavaScript VM but to a hypervisor, according to the text a bit further down on the page. I wouldn't expect that to be particularly fast or efficient, especially not if you're already running in a VM and have to use nested virtualization (if it's even available).
Deno has that! Come join us :P no affiliation, just a happy user.
Can this engine be embedded into other programs?
Cannot access the web site: whatwg cartel web engine only.

Is antjs coded in plain and simple C?

Seems like so: https://github.com/theMackabu/ant

Odd choice for a vibecoded project.

> Odd choice for a vibecoded project.

Not really, there's some advantages if the viber is experienced in C.

1. When the LLM needs to figure out what functions exist, it reads only headers, not the actual implementation. IME the agent uses a fraction of tokens compared to vibing out a Java or C# project.

2. There's only a handful of common footguns in C (signed overflow, use-after-free, dereferencing NULL, etc) all of which are localised, compared to C++ which has all those C footguns plus non-localised footguns that can't be easily detected without knowing the entire program at once.

Thx for the github.com link, I can have a look at it.
> Odd choice for a vibecoded project.

I'm using coding agents to accelerate implementation, not to replace understanding or review. The architecture, technical decisions, testing, and final responsibility are still mine, so I don't think "vibecoded" is an accurate description here.

This looks excellent. The sandboxing really stands out to me, and I think ant.land might have potential, since it has a lot of great features other registries lack.
The author shared their experience building the first version in a month: https://themackabu.dev/blog/js-in-one-month

And then the follow up few months later: https://themackabu.dev/blog/ant-part-two

I'm not sure what the economics of building a new runtime and ecosystem from scratch are but it seems we're already in a phase where individual developers are creating software which previously took a whole team. And its only getting started...

> The engine, Ant Silver, is hand-built.
It’s not hand-built. It’s hand prompted.
I don't like it.

There is no shame in saying it's generated, bun is now completely vibe code also.

Saying it's hand built when it's not is false advertising

Writing code by your own hands is an esoteric hobby. We are past the slop era. This is coding now. If you're 1x, you're not a dev.

I would assume by now most of the code published on Github is hand-built with LLM prompts and armies of AI agents.

Okay, so would you say LuaJIT is slop, just because it is hand coded?
What is the definition of being an 1x dev?
This is very much still the slop era.
Not specified what the hack hand prompted means anyways?
Is that impressive? If an LLM is just spewing out code which it has been trained on extensively then to me it's not that impressive at all. I want to see individual developers creating new software which previously took a whole team. Things not done previously. I am very pro AI btw, but the constant barrage of false hype is really tiresome.
Would not touch thios with someone else's (code/business).
What is the serif typeface used on the website? It’s been renamed (I assume) to ant_serif and scrubbed of any other identifiers. It’s very pleasant.
This seems to be tbe authors modus operandi. Steal.
i might try porting this to rust ;)