implementing-jsc-classes-cpp
CommunityBridge native C++ with JavaScript classes.
Authorbrendadeeznuts1111
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a comprehensive guide to implementing JavaScript classes in C++ using JavaScriptCore, enabling seamless native bindings, prototypes, and constructors for embedding native objects in a JS runtime.
Core Features & Use Cases
- Define C++ classes that map to JavaScript objects using JSC::DestructibleObject when needed and create prototype and constructor bindings.
- Provide sample patterns for Foo, FooPrototype, and FooConstructor, including iso subspaces when C++ fields exist.
- Use cases include exposing high-performance native APIs to JS code, enabling seamless interop between C++ and the JS runtime in Bun-like environments.
Quick Start
Steps to implement:
- Create C++ classes following the Foo pattern (Foo, FooPrototype, FooConstructor).
- Implement prototype/constructor bindings and any necessary iso subspaces.
- Wire the classes into the JS engine (VM, Structure, and global bindings) and build.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: implementing-jsc-classes-cpp Download link: https://github.com/brendadeeznuts1111/mybundocs11/archive/main.zip#implementing-jsc-classes-cpp Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.