writing-taubyte-functions
Installation
SKILL.md
Writing Taubyte Functions (Go SDK)
When to use
- Authoring a new Go handler (HTTP / PubSub / P2P)
- Reading or fixing existing function source
- Wiring a function to a database, storage, messaging channel, or library
- Calling another library's exported function from inside a function
- Calling external HTTP services from inside a function
- Producing PubSub messages from an HTTP function
- Surfacing a WebSocket URL to a browser
- Using IPFS-backed files
Mental model
A Taubyte serverless function is a TinyGo-compiled WebAssembly module. The SDK (github.com/taubyte/go-sdk) is a Go wrapper over host functions the Taubyte VM exports. You write Go, compile to WASM (via the taubyte/go-wasi Docker recipe — see verifying-taubyte-functions), and the cloud invokes your exported function for each event.
Key constraints: