gleam-javascript-interop

Community

Bridge Gleam and JavaScript via safe FFI.

Authorrenatillas
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill guides Claude through integrating Gleam with JavaScript code using FFI, externals, and NPM packages, enabling calling JavaScript from Gleam and leveraging existing libraries with type safety.

Core Features & Use Cases

  • External function bindings: declare @external to call JavaScript functions from Gleam, with precise type mappings.
  • NPM and ESModule interop: wrap and consume existing JavaScript libraries inside Gleam projects.
  • Browser API access: build Gleam applications that interact with DOM or fetch APIs via JavaScript glue code.

Quick Start

Install Gleam and Node.js, create a new Gleam project, write a minimal JS bridge in an .mjs file, declare an external function in Gleam with @external, then build for the JavaScript target and run the output with Node.js.

Dependency Matrix

Required Modules

None required

Components

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: gleam-javascript-interop
Download link: https://github.com/renatillas/gleam/archive/main.zip#gleam-javascript-interop

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 223,000+ vetted skills library on demand.