Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

🐜 Ant

An ant carries 50× its weight. So does this one.

Ant is a lightweight, high-performance JavaScript runtime built from scratch.
Built to carry more than it weighs while delivering near-V8 speeds.

$ ls -lh ant -rwxr-xr-x⠀9.1M⠀ant* # built with -Os -rwxr-xr-x⠀5.9M⠀ant*

Table of contents

Why Ant?

AntNodeBunDeno
Binary size~9 MB~120 MB~60 MB~90 MB
Cold start~5 ms~31 ms~13 ms~25 ms
EngineAnt SilverV8JSCV8
JIT
WinterTC conformantpartial

Ant is designed for environments where size and startup time matter: serverless functions, edge computing, embedded systems, CLI tools, and anywhere you'd want JavaScript but can't afford a 50MB+ runtime.

The engine, Ant Silver is hand-built, not a wrapper around V8, JSC, or SpiderMonkey. The JIT compiler uses a fork of MIR, a lightweight backend that enables near compiled performance.

Installation

curl -fsSL https://antjs.org/install | bash

Spec conformance

Ant targets the WinterTC Minimum Common API specification, the standard for server-side JavaScript interoperability developed by Ecma TC55.

SuitePass rateNotes
compat-table100%1511/1511 (ES1–ES5, ES6, ES2016+, ESNext)
test262~64%Improving; focus is on real-world coverage

Benchmarks

Cold start

Measures the time to import Hono, register routes, and exit. Each runtime loads the same bench-coldstart.js script from examples/npm/hono/ that creates a Hono app with two routes, prints "ready", and calls process.exit(0). No HTTP server is actually started, this isolates module resolution and initialization overhead.

Measured with hyperfine (10 warmup runs, 100 timed runs):

hyperfine --warmup 10 --runs 100 \ 'ant examples/npm/hono/bench-coldstart.js' \ 'node examples/npm/hono/bench-coldstart.js' \ 'bun examples/npm/hono/bench-coldstart.js' \ 'deno run --allow-read --allow-env examples/npm/hono/bench-coldstart.js'
RuntimeMeanMinMaxRelative
Ant5.4 ms5.0 ms7.1 ms1.00
Bun12.8 ms11.6 ms16.4 ms2.37× slower
Deno24.8 ms22.2 ms29.4 ms4.59× slower
Node31.1 ms27.1 ms151.7 ms5.76× slower
Environment
DetailValue
HardwareApple M4 Pro, 24 GB RAM, 14 cores
OSmacOS 15.7.5 (arm64)
Ant0.11.0
Node25.9.0
Bun1.3.13
Deno2.7.12

Building Ant

See BUILDING.md for instructions on how to build Ant from source and a list of supported platforms.

Security

For information on reporting security vulnerabilities in Ant, see SECURITY.md.

Community

Contributing to Ant

We welcome contributions through pull request. See CONTRIBUTING.md for more details.
For information about the governance of Ant, see GOVERNANCE.md.

关于 About

javascript for 🐜's, a tiny runtime with big ambitions
antjavascriptnodejsnpmtypescript

语言 Languages

C82.6%
JavaScript10.7%
Zig4.9%
TypeScript0.7%
Shell0.4%
Meson0.3%
C++0.1%
Python0.1%
Dockerfile0.1%
Nix0.1%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
1534
Total Commits
峰值: 118次/周
Less
More

核心贡献者 Contributors