Ant is a lightweight, high-performance JavaScript runtime built from the ground up. It’s designed to be small, fast, and feature-complete, bringing modern JavaScript capabilities to environments where size and efficiency matter.
Modern JavaScript
Full ES2024+ support with async/await, modules, classes, and more
Built-in HTTP server
Create web servers with the native Ant.serve() API
Crypto & security
Built-in cryptographic primitives powered by libsodium
Build HTTP servers with the built-in Ant.serve() API. No external dependencies required:
function handleRequest(c) { const { req, res } = c; res.body(`Hello from Ant ${Ant.version}!`);}console.log('Server running on http://localhost:8000');Ant.serve(8000, handleRequest);
Browser-compatible localStorage and sessionStorage:
localStorage.setItem('user', JSON.stringify({ name: 'Alice' }));const user = JSON.parse(localStorage.getItem('user'));sessionStorage.setItem('token', 'abc123');
Ant is built with C23 using modern tooling including Meson, Rust (for the OXC type-strip library), and Zig (for the package manager). It supports Linux, macOS, and Windows.
Join the Ant community on Discord to ask questions, share projects, and contribute to the runtime.Read the blog post about Ant to learn about the project’s origins and design philosophy.