wasmrt is a portable WebAssembly runtime written in C that lets you safely run sandboxed plugins, scripts, or portable modules inside your own C project. It includes support for the WASI standard so WebAssembly modules can read and write files on your computer. You can also connect your own custom functions that the WebAssembly code can use, like logging or custom calculations. The runtime handles memory safely and cleans up after itself when done.
How It Works
You have a C project and want to safely run plugins or scripts without risking your main program.
You include a single header file in one part of your code to activate the WebAssembly runtime.
You register your own custom functions that the WebAssembly code can call, like logging or file access.
The runtime finds and runs the default starting function in the WebAssembly module.
You look up a specific function by name and call it with your own arguments.
The WebAssembly code runs completely isolated from your main program, protecting you from bugs or malicious code.
The runtime returns the results from the WebAssembly code back to your program, and cleans up automatically.
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.