Capsule Host SDK
What's new?
- v0.0.7: update with Wazero 1.4.0 + Redis π fix
- v0.0.6: update with Wazero 1.3.0
- v0.0.5: β¨ Helpers updated:- CallOnStartand- CallOnStop(they are executed from the same wasm module instance)
- v0.0.4: β¨ Helpers added:- CallOnStartand- CallOnStop
- v0.0.3: β¨ Wazero update 1.2.0
- v0.0.2: β¨ Redis support
- v0.0.1: π first release
What is the Capsule Host SDK alias Capsule HDK?
Capsule HDK is a SDK to develop Golang Host applications able to run WASM modules developped with the Capsule MDK (WASM Module SDK). A Capsule application is a WebAssembly Module(or Function) Runner.
The Capsule applications capsule-cli and capsule-http are both with this Capsule HDK: - capsule-cli, CLI. With capsule-cli, you can simply execute a WebAssembly Capsule module in a terminal - capsule-http, an HTTP server that serves WebAssembly Capsule modules
The Capsule Host SDK is developed in GoLang and uses the π Wazero project.
Good to know
- π€ a capsule application is "small" (capsule-http weighs 12M)
- π³ a Capsule application is statically compiled: you can easily run it in a Distroless Docker container.
What are the added values of a Capsule application?
A Capsule application brings superpowers to the WASM Capsule modules with host functions. Thanks to these host functions, a WASM Capsule module can, for example, prints a message, reads files, writes to files, makes HTTP requests, ... See the host functions section.
Useful information for this project
- π Issues: https://github.com/bots-garden/capsule-host-sdk/issues
- π§ Milestones: https://github.com/bots-garden/capsule-host-sdk/milestones
- π¦ Releases: https://github.com/bots-garden/capsule-host-sdk/releases