Skip to main content

QuickJS-ng - A Mighty JavaScript Engine

QuickJS is a small and embeddable JavaScript engine that aims to support the latest ECMAScript specification. This project is a fork of the original QuickJS project by Fabrice Bellard and Charlie Gordon, revitalized with the intent of reigniting its development.

Key Features

Small & Embeddable

Compact footprint designed for embedding in applications with minimal overhead

ES2023+ Support

Aims to support the latest ECMAScript specification features

Cross-Platform

Works on Linux, macOS, Windows, and embedded systems

Community Driven

Active community development with regular updates and improvements

What Makes QuickJS-ng Special?

This fork is focused on:
  • Community Development - Active maintenance and feature development
  • Comprehensive Testing - Includes test262 suite for ECMAScript compliance
  • Cross-Platform Support - First-class support for multiple operating systems
  • Modern ES Features - Continuous implementation of new ECMAScript features

Quick Example

Here’s a simple example of embedding QuickJS in a C application:
#include "quickjs.h"

int main() {
    JSRuntime *rt = JS_NewRuntime();
    JSContext *ctx = JS_NewContext(rt);
    
    const char *code = "console.log('Hello from QuickJS!')";
    JSValue result = JS_Eval(ctx, code, strlen(code), "<input>", JS_EVAL_TYPE_GLOBAL);
    
    JS_FreeValue(ctx, result);
    JS_FreeContext(ctx);
    JS_FreeRuntime(rt);
    
    return 0;
}

Get Started

Quick Start

Get up and running with QuickJS in minutes

Installation

Install QuickJS using prebuilt binaries or package managers

Build from Source

Compile QuickJS from source for your platform

API Reference

Explore the complete QuickJS API documentation

Open Source & Community

QuickJS-ng is open source and licensed under the MIT license. The project is maintained by @bnoordhuis, @saghul, and many contributors.
QuickJS-ng is a fork of the original QuickJS project that went dormant. This fork aims to continue its legacy with active development.

Build docs developers (and LLMs) love