Skip to content

Write scripts in JavaScript on CKB-VM

Notifications You must be signed in to change notification settings

libraries/ckb-js-vm

 
 

Repository files navigation

ckb-js-vm

A JavaScript/TypeScript runtime environment for CKB-VM, built by adapting QuickJS. This project consists of two main components:

  1. ckb-js-vm: An on-chain script runtime engine that executes JavaScript code or bytecode
  2. ckb-js-std: TypeScript packages providing helper utilities for writing on-chain script

Prerequisites

Ensure you have the following installed:

Installation

Building ckb-js-vm (On-chain Script)

git submodule update --init
make all

Building ckb-js-std (TypeScript Packages)

pnpm install
pnpm build

Getting Started

To run the example project:

cd packages/examples
pnpm run start

About

Write scripts in JavaScript on CKB-VM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 53.3%
  • JavaScript 25.3%
  • TypeScript 16.7%
  • Makefile 2.1%
  • Lua 1.1%
  • Rust 1.0%
  • Other 0.5%