WebAssembly Component Model based REPL /w sandboxed multi-language plugin system

2 topheman 1 7/18/2025, 9:15:55 PM github.com โ†—

Comments (1)

topheman ยท 9h ago
WebAssembly Component Model is super promising, but the examples out there are either too simple or way too complex.

I made a project to demonstrate its power, with more than a simple hello world. It's a basic REPL with a plugin system where you can run plugins written in any language that compiles to WASM:

- same plugins work in both CLI and web implementations

- plugins are sandboxed by default (implemented a Deno like security model)

- the REPL logic itself is compiled to WASM, like the plugins, you could swap its implementation

- a few built-in plugins available, some of them to demonstrate the access to the filesystem and the network