Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Spin

$ spin Foundation Med Risk
Fermyon / CNCF · Cloud & Infra · Apache-2.0 · macos / linux / windows

spin 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.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install fermyon/tap/spin
CLI vs MCP Decision CLI Only

Local Wasm compiler/runtime orchestrator (spin build, spin up); executes local toolchains directly.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

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-defaults for non-interactive scaffolding
  • Lacks universal --json flag across build and up
Trust & Safety 23 / 25

WebAssembly runtime isolates component filesystem, network, and env access via capability declarations in spin.toml.

  • Wasm capability sandbox restricts component permissions by default
Setup & Portability 14 / 15

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
Utility & Efficiency 13 / 15

Sub-millisecond cold start local Wasm runtime simplifies testing microservices locally.

  • Fast local spin build + spin up dev cycle
Maintenance & Lineage 9 / 10

CNCF Sandbox project (spinframework/spin) under Apache-2.0.

  • CNCF project hosted at spinframework/spin under Apache-2.0
Docs & Verifiability 9 / 10

Well-maintained guides and CLI references at spinframework.dev.

  • Clear CLI reference and multi-language guides at spinframework.dev

Security, Auth & Guardrails

Auth Modes
No Auth OAuth Browser Env API Key
Credential Storage

Local build and spin up require zero auth; Fermyon Cloud plugin stores tokens under ~/.config/fermyon/.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

CNCF Sandbox Apache-2.0 open-source CLI; free to use locally.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List installed Spin plugins as JSON
spin plugins list --format json

Inspects available and installed Spin CLI plugins without modifying anything.

Inspect Spin templates available locally
spin templates list

Lists installed language templates (http-rust, http-ts, http-py, etc.).

Controlled Writes & Previews

Compile WebAssembly components locally
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-defaults for 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 cloud plugin and authenticating.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI