benoitc / erlang-quickjs
PublicQuickJS JavaScript engine for Erlang (powered by quickjs-ng). API-compatible replacement for erlang-duktape.
This project embeds a lightweight JavaScript engine into Erlang programs, enabling seamless execution of JS code with data exchange, modules, events, and performance monitoring.
How It Works
You need to run JavaScript code inside your Erlang program and find this handy library that makes it simple and safe.
You tell your project to include this library by adding a short line to your setup file, then build your program.
You make a fresh, isolated area where JavaScript can run without affecting the rest of your program.
You give it some JavaScript like '21 * 2' and instantly get back the answer 42, feeling the speed and magic.
You pass values from your program into JavaScript, run calculations, and bring results back seamlessly.
You set up ways for JavaScript to send messages or logs to your program and respond to events in real-time.
Your program now blends JavaScript's flexibility with Erlang's reliability, handling code safely with timeouts and cleanups.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.