One-Command CLI Initialization
kernstack add function --name api --blueprint func-go-minimal Why start with a Go WebAssembly function on the Software Lifecycle Cloud
The func-go-minimal blueprint gives product teams and coding agents a clean, deterministic entry point for HTTP APIs, webhook receivers,scheduled cron triggers, and table change-stream handlers on KERNSTACK.
Unlike hyperscaler functions that spin up heavyweight microVMs and require separate API Gateway, IAM role, and CloudWatch log-group declarations, a KERNSTACK function is compiled to WebAssembly and scheduled directly on European bare metal.
- WebAssembly sandbox startup with strict memory isolation
- Direct access to KERNSTACK Tables, Buckets, Search, and Secrets via the Go SDK
- Supports HTTP routes, WebSockets, cron schedules, and table change streams in stack.json
How people and agents extend this blueprint
Once scaffolded with kernstack add function, the blueprint vendors the typed Go SDK into .kernstack/sdk-go-v1 so local IDE autocompletion and agent harnesses such as Cursor or Claude Code can immediately inspect every method.
Before any change reaches staging or production, kernstack plan diffs the function signature, routes, and schedules against the live project graph.
What the Go function scaffold actually contains
func-go-minimal compiles a Go HTTP handler to WebAssembly. The handler starts in a short-lived sandbox, reads the request the gateway already authenticated, and returns JSON without a companion API gateway, a per-function IAM role, or a separate log group. Teams use it for webhooks, cron ticks, and table change handlers that should cost nothing while idle.
The vendored Go SDK exposes tables, buckets, search, inference, and secrets as in-process calls. A coding agent can read those method names from the module cache. The sandbox isolates the handler, so a runaway allocation stops in that sandbox rather than on a shared VM. The first edit most squads make is replacing the status payload with the domain response their client already expects.
Frequently asked questions
Run kernstack add function --name api --blueprint func-go-minimal inside any initialized KERNSTACK project, then run kernstack plan and kernstack deploy.
Yes. The vendored Go SDK ships typed clients for tables, buckets, search, and inference, and credentials reach the handler through the platform-injected environment — nothing to configure in the repository.
Choose a Go Function for request-response APIs, webhooks, cron jobs, and change-stream triggers. Choose a Go Worker (work-go-minimal) for long-running background processes or mounted bucket volumes.
Related capabilities, architectures, and comparisons
Ship your stack on the Software Lifecycle Cloud.
Closed preview on dedicated European infrastructure. Bring a repository or start from a blueprint.