Open Source · MIT Licensed · v0.0.1-alpha

The last JavaScript engine
you should ever use.

Rift is a ground-up JavaScript engine built with bold new ideas and an unwavering commitment to doing things differently. Not faster. Not better. Differently.

3 GitHub Stars
0.0.1 Latest Version
1 Contributors
~47 npm Downloads

Not yet trusted by

Google Meta Stripe Vercel Shopify Netflix
Performance

Benchmarks that speak for themselves.

We believe in radical transparency. Here's how Rift stacks up against the industry leaders in every major benchmark suite. The numbers don't lie.

SunSpider Execution Time

Lower is better · measured in milliseconds

Rift V8 SpiderMonkey JavaScriptCore
Rift
14,218 ms
V8
187 ms
SpiderMonkey
203 ms
JavaScriptCore
195 ms

Peak Memory Usage

Lower is better · measured in megabytes

Rift
2,841 MB
V8
48 MB
SpiderMonkey
52 MB
JavaScriptCore
41 MB

ECMAScript Spec Compliance (Test262)

Higher is better · percentage of Test262 tests passing

Rift
12.55%
V8
87%
SpiderMonkey
86%
JavaScriptCore
86%

Test262 Pass Rate Over Time

Higher is better · percentage of tests passing

0% 25% 50% 75% 100% 2018 2019 2020 2021 2022 2023 2024 12.55% Rift V8 SpiderMonkey JavaScriptCore

Data via test262.fyi. Test262 includes proposal-stage features, so 100% is a moving target.

Architecture

Simplicity is a feature.

Other engines have layers of complexity. We believe complexity is a skill issue.

V8 Architecture

JavaScript Source
ScannerLexer
Tokens
Parser
AST
IgnitionInterpreter
Bytecode
TurboFanOptimizing JIT
Optimized Machine Code
Deoptimize
Hot paths

100+ engineers working on this for 15+ years

Rift Architecture

JavaScript Source
RiftJust runs it
Output(eventually)

No optimizing compiler. If your code needed to be faster, you would have written it faster.

Comparison

How Rift compares.

A comprehensive feature comparison with other JavaScript engines on the market.

Feature V8 SpiderMonkey JSC Rift
JIT Compilation
ES2024 Support Partial*
Production Ready
Backed by Major Corp Google Mozilla Apple I don't even use it
Full-time Engineers 100+ 50+ 50+ 0.1 (evenings)
Battle Tested Billions of users Hundreds of millions Billions of users I emailed it to three friends

* Rift supports let, const, arrow functions, and most of Array.prototype. We consider this sufficient.

Get started in seconds.

Installation is straightforward. Performance may vary. Actually, performance will definitely vary.

terminal
# Install Rift
$ npm install -g rift-engine

# Run your first program
$ echo 'console.log("hello world")' > hello.js
$ rift hello.js

☀️ Good morning! Rift v0.0.1 is waking up...
🔍 Parsing hello.js... (3.2s)
🌳 Building AST... (1.8s)
🏃 Interpreting... (0.4s)
hello world
✨ Great job! Your code ran successfully.
📊 Total execution time: 5.4s
💾 Peak memory: 847MB
🌍 Carbon footprint: 0.003kg CO2
FAQ

Frequently asked questions.

Is Rift production ready?

We admire your courage for even asking. Technically, you can run it in production, in the same way you can use a spoon to dig a swimming pool.

Can I contribute?

Absolutely. We welcome all contributions, especially from compiler engineers who can explain what a JIT is. Please see our CONTRIBUTING.md, which currently just says "help".

Does Rift support TypeScript?

Yes! Rift offers native TypeScript support. Simply compile your TypeScript to JavaScript first, and Rift will run it flawlessly. We call this "zero-config type erasure" and consider it a feature.

What is Rift's long-term roadmap?
  1. Open source
  2. Community growth
  3. Figure out what a "bytecode" is
  4. Somehow become the default engine in at least one browser

We are currently between phases 1 and 2.

Ready to make your code
slower than ever?

Join the handful of developers who have chosen Rift. Not because it's better. But because it exists.