Yuku

Introduction

Yuku is a high-performance JavaScript/TypeScript compiler toolchain written in Zig. It is designed for correctness, performance, and clarity.

Try it in the playground →

Why Yuku

Correct. Yuku is 100% ECMAScript spec compliant. Zero failures and zero AST mismatches. Read how Yuku is tested.

Fast. Built using data-oriented design principles and generous performance engineering, see Performance.

Anywhere. Node.js, Bun, Deno, browsers, edge runtimes, and native Zig.

Zero dependencies. Pure Zig, with no third-party dependencies in the build or on npm.

Modern. New and proposed syntax, including decorators, source phase and deferred imports, and using declarations.

JavaScript

The JavaScript guide documents it.

Zig

These pages document it: the parser, the AST, semantic analysis, traversal, and codegen.

Performance

Measured on an Apple M3, with every tool doing the same work.

Parser

Natively, Yuku parses faster than Oxc and SWC.

Native benchmark comparing Yuku, Oxc, and SWC parsing typescript.js
Parsing typescript.js (7.8 MB) natively · benchmark

On npm, it parses faster than the alternatives, on small and large files.

npm benchmark comparing Yuku, Oxc, SWC, Babel, and Acorn parsing react.js
Parsing react.js (70 KB) on npm · benchmark

npm benchmark comparing Yuku, Oxc, SWC, Babel, and Acorn parsing typescript.js
Parsing typescript.js (7.8 MB) on npm · benchmark

Analyzer

Analyzing a whole codebase, resolving every reference and linking every import across files, Yuku is faster than typescript-eslint and the TypeScript API, and on a single large file too.

npm benchmark comparing Yuku, TypeScript, and typescript-eslint analyzing three.js
Analyzing three.js (755 files) on npm · benchmark

npm benchmark comparing Yuku, TypeScript, and typescript-eslint analyzing typescript.js
Analyzing typescript.js (7.8 MB) on npm · benchmark