8000 GitHub - libraries/ckb-js-vm: Write scripts in JavaScript on CKB-VM
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

libraries/ckb-js-vm

 
 

Repository files navigation

ckb-js-vm

A JavaScript 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:

Quick Start with create-ckb-js-vm-app (Recommended)

pnpm create ckb-js-vm-app

Documentation

  • The Little Book of ckb-js-vm - Step-by-step instructions for beginners
  • Run pnpm run docs to generate the latest API documentation locally (output will be available in the typedoc folder)
  • Examples - Sample projects demonstrating key features

Install Manually

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 47.2%
  • TypeScript 27.1%
  • JavaScript 23.8%
  • Makefile 1.4%
  • Other 0.5%
0