implementing-jsc-classes-rust

Installation
SKILL.md
Contains Shell Commands

This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.

Bun's JavaScriptCore Class Bindings Generator

Bridge JavaScript and Rust through .classes.ts definitions and Rust implementations.

Architecture

  1. JavaScript Interface Definition (.classes.ts files)
  2. Rust Implementation (.rs files)
  3. Generated Codesrc/codegen/generate-classes.ts emits C++ + Rust into ${BUN_CODEGEN_DIR}/generated_classes.rs, include!d as crate::generated_classes in bun_runtime. Run bun bd to regenerate.

Class Definition (.classes.ts)

Installs
13
Repository
oven-sh/bun
GitHub Stars
95.9K
First Seen
Jul 8, 2026
implementing-jsc-classes-rust — oven-sh/bun