moonbit-js-binding

Community

Bind MoonBit to JavaScript with safe FFI.

Authormizchi
Version1.0.0
Installs0

System Documentation

What problem does it solve?

MoonBit bindings to JavaScript enable safe, typed interop at the JS boundary, reducing boilerplate for cross-language projects.

Core Features & Use Cases

  • Inline extern "js" bindings using #| blocks for small, deterministic JS snippets.
  • Module-based access with #module to bind named exports from node/npm packages.
  • JsValue interop with get/set/call_method helpers to interact with arbitrary JS objects.
  • Promise bridging patterns for async MoonBit functions via the provided suspend / wait APIs.
  • Example project in assets showcasing a TS-friendly build and TypeScript declarations.

Quick Start

Create a MoonBit skill that binds a small JS API and run moon test to verify the FFI boundary.

Dependency Matrix

Required Modules

None required

Components

assetsreferences

💻 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: moonbit-js-binding
Download link: https://github.com/mizchi/skills/archive/main.zip#moonbit-js-binding

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.