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 without compromising performance.

$ ls -lh ant
-rwxr-xr-x⠀9.4M⠀ant*

# built with -Os
-rwxr-xr-x⠀5.8M⠀ant*

Table of contents

Why Ant?

AntNodeBunDeno
Binary size~9 MB~140 MB~61 MB~77 MB
Cold start~4 ms~30 ms~10 ms~18 ms
EngineAnt SilverV8JSCV8
JIT✓✓✓✓
WinterTC conformant✓partial✓✓

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.

Ant Silver is an independent engine, not a wrapper around V8, JSC, or SpiderMonkey. The JIT compiler uses a fork of MIR, a lightweight backend that enables near-native 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)
Temporal100%4603/4603 at revision 2026-08-10
test262~75%40243/53578 run on 2026-10-21

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
Ant3.9 ms2.1 ms5.3 ms1.00
Bun8.8 ms6.7 ms10.7 ms2.26× slower
Deno18.6 ms16.2 ms20.8ms4.74× slower
Node29.4 ms27.3 ms32.6 ms7.50× slower
Environment
DetailValue
HardwareApple M5 Pro, 64 GB RAM, 18 cores
OSmacOS 27.0 Golden Gate (26A5406e)
Ant14.1.aa53d9d1.0
Node26.5.1
Bun1.4.0
Deno2.9.5

Building Ant

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

Docker Images

Pull the published image for linux/amd64 or linux/arm64.

docker pull themackabu/ant:latest
docker run --rm themackabu/ant:latest --version
docker run --rm -v "$PWD:/app" themackabu/ant:latest index.js

latest is a static musl build and can't load native addons. Use latest-glibc if you need them.

Both images run as nonroot (uid 65532). To write into a mounted directory, pass --user "$(id -u):$(id -g)".

You can also build the container from source:

docker build -f Dockerfile.musl -t ant .
docker run --rm ant --version
docker run --rm -v "$PWD:/app" ant index.js

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
antantjsenginejavascriptnodejsnpmportableruntimetypescript

语言 Languages

C80.7%
JavaScript14.1%
Rust1.7%
TypeScript1.4%
C++0.9%
Shell0.3%
Meson0.3%
Python0.2%
Swift0.2%
Nix0.1%
CMake0.0%
CSS0.0%
HCL0.0%
Cap'n Proto0.0%

提交活跃度 Commit Activity

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

核心贡献者 Contributors