Emscripdtsgen
Generate TypeScript declarations for Emscripten Embind bindings
Install / Use
/learn @marczellm/EmscripdtsgenREADME
Emscripdtsgen
Emscripdtsgen is a tool to generate TypeScript typing declarations from Embind bindings.
How it works
Emscripdtsgen provides a drop-in replacement header file for emscripten/bind.h. You compile a separate executable using this in your binding files. Running this executable will output your type declarations.
Getting started
Please see comments in example/CMakeLists.txt for a step by step guide.
Building and running the examples
npm install
emcmake cmake -S examples -B build -G Ninja
cmake --build build --target all
cd examples/basic
npx tsc
cd ../modularize
npx tsc
cd ../es6
npx tsc
Start a simple http server in the root folder, like
python -m http.server
and then visit
http://localhost:8000/examples/basic/
http://localhost:8000/examples/modularize/
http://localhost:8000/examples/es6/
Incompleteness
As with so many things on GitHub, Emscripdtsgen is incomplete, and I'm not even promising to complete or maintain it. I offer it as a potentially useful starting point from which you can build out your tooling.
Related Skills
node-connect
354.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
