Spin
$ spin Foundation Med Riskspin scaffolds, builds, and runs WebAssembly component microservices defined in spin.toml across Rust, TypeScript/JS, Python, and Go. Local builds (spin build) and runs (spin up) are fast and sandboxed, though most CLI output is plain text rather than JSON.
brew install fermyon/tap/spin Local Wasm compiler/runtime orchestrator (spin build, spin up); executes local toolchains directly.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean spin new/build/up workflow with non-interactive flags (--accept-defaults), though JSON output is limited to select subcommands like spin plugins list.
- Supports
--accept-defaultsfor non-interactive scaffolding - Lacks universal
--jsonflag acrossbuildandup
WebAssembly runtime isolates component filesystem, network, and env access via capability declarations in spin.toml.
- Wasm capability sandbox restricts component permissions by default
Single Rust binary distributed via Homebrew tap and GitHub Releases across macOS, Linux, and Windows.
- Native cross-platform binary; component builds require target language SDKs
Sub-millisecond cold start local Wasm runtime simplifies testing microservices locally.
- Fast local
spin build+spin updev cycle
CNCF Sandbox project (spinframework/spin) under Apache-2.0.
- CNCF project hosted at
spinframework/spinunder Apache-2.0
Well-maintained guides and CLI references at spinframework.dev.
- Clear CLI reference and multi-language guides at spinframework.dev
Security, Auth & Guardrails
Local build and spin up require zero auth; Fermyon Cloud plugin stores tokens under ~/.config/fermyon/.
CNCF Sandbox Apache-2.0 open-source CLI; free to use locally.
# Spin Agent Rules - Run `spin build` to verify Wasm compilation before starting `spin up`. - Bind `spin up --listen 127.0.0.1:3000` locally and stop background servers after smoke tests. - Require explicit confirmation before `spin cloud deploy` (if cloud plugin is installed).
Agent-Ready Command Recipes
Safe Read-Only Queries
spin plugins list --format json
Inspects available and installed Spin CLI plugins without modifying anything.
spin templates list
Lists installed language templates (http-rust, http-ts, http-py, etc.).
Controlled Writes & Previews
spin build
Builds all components defined in spin.toml into local .wasm artifacts.
Strengths for Agents
- + Capability-based Wasm sandbox enforces explicit host/file/network permissions in
spin.toml. - + Fast single binary with
--accept-defaultsfor headless scaffolding. - + CNCF Sandbox lineage under Apache-2.0.
Caveats & Pitfalls
- ! Most commands emit plain-text progress rather than structured JSON.
- ! Cloud deployment requires installing the separate
cloudplugin and authenticating.