CLI tool
spinframework/spin avatar
spinframework/spin

Spin, one CLI over Wasm components with an uneven SDK matrix

Spin is the open source developer tool for building and running serverless applications powered by WebAssembly.

6,583 stars322 forksRustApache-2.0

At a glance

What is it?
Spin is a Rust CLI that turns source in four languages into WebAssembly components, builds them through your language toolchain, and serves them locally on the loopback address. The framework is coherent; its per language coverage is not, because the support matrix leaves the C# SDK without key value or SQLite storage and Python without either relational database.
Who is it for?
Adopt Spin when your service is HTTP first and your component language is Rust, JavaScript, Go or Python, and when you are willing to read the support matrix before designing storage. Hold off if a custom trigger, a C# data layer or a Python connection to MySQL or PostgreSQL is on the critical path.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Rust, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • spinframework/spin6,583 ★ · +67
Star history
Repository2026-09-232026-11-22
spinframework/spin6.5k6.6k

67 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The install script stops at a manual sudo mv

The short version of installing Spin is two lines. The first fetches a script and executes it in one step, the second puts the binary where your shell will find it:

bash
curl -fsSL https://spinframework.dev/downloads/install.sh | bash
sudo mv ./spin /usr/local/bin/spin

The second line needs root because /usr/local/bin sits outside your home directory, so the "one command" install is really two, and one of them escalates. The project's stated alternative is building Spin from source, which moves the cost somewhere else: the workspace declares edition 2024 and rust-version 1.96, so your toolchain has to clear both before the CLI will compile. Use the script for a quick evaluation and the source build when you intend to read the code before you trust it with a service.

spin new copies a template, spin build hands the work to cargo

The documented example starts by installing a Rust target, because the Rust templates reach Wasm through cargo:

bash
rustup target add wasm32-wasip2

Then the template selection, where the template comes first and the application name follows it:

bash
spin new --accept-defaults -t http-rust hello-rust

That writes a hello-rust directory with the files it needs, and the flag means you answer no prompts. From there the interesting part is what spin build does not do: it does not compile anything itself. It runs the build command recorded for the component, which in the sample output is `cargo build --target wasm32-wasip2 --release`, and it relays cargo's result before printing a success line. Those build commands come from the templates that ship in the repository, so changing template changes which toolchain you need installed on your machine.

spin up binds loopback and files component stdio under .spin/logs/

The local run prints two lines that describe most of the development experience:

bash
spin up

Output shows component stdio being logged to ".spin/logs/" and the server serving http://127.0.0.1:3000, with a route table listing `hello-rust: http://127.0.0.1:3000 (wildcard)`. Two consequences follow. The bind address is loopback, so nothing off your machine reaches the app without a change on your side. And the wildcard route means the component answers every path on that port rather than one named endpoint, which is convenient for a first hello world and misleading the moment you try to model routes. Sending a request with `curl -i 127.0.0.1:3000` brings back HTTP/1.1 200 OK with a text/plain content type and a chunked transfer encoding, which is what the default component in src/lib.rs returns before you edit it.

The support matrix leaves the C# SDK with the thinnest surface

The feature table compares Rust, TypeScript, Python, Tiny Go and C# across triggers, APIs and extensibility. Four rows are Supported in every column: HTTP triggers, outbound HTTP, configuration variables and outbound Redis. The gaps start immediately after. The C# SDK is Not Supported for the Redis trigger, key value storage, SQLite storage, MySQL and the serverless AI API. Python is Not Supported for MySQL and PostgreSQL, which is the row that hurts most for anyone porting a relational data layer. Tiny Go keeps both relational databases while C# keeps PostgreSQL only. Read the table row by row rather than assuming parity, because parity holds exactly where the workloads are simplest.

Custom triggers are a Rust-only row in the matrix

The last section of the table is a single row with one Supported cell. Authoring custom triggers is Supported for Rust and Not Supported for TypeScript, Python, Tiny Go and C#. That is the sharpest boundary in the project, because a custom trigger is how you attach a service to an event source that Spin does not ship, such as a queue consumer or a scheduled job, and the matrix says that path exists in one language only. Everything above it, storage and outbound calls, at least exists in four or five columns. If your roadmap includes an event source outside HTTP and Redis, the language choice gets made for you before you write the component.

Two SDKs in the list are maintained by their authors, not the framework team

The SDK list and the support matrix are not the same set of names, which is worth catching early. The list names JavaScript, Rust, Go and Python as first party SDKs, and the project states that the framework team supports those four. Zig and Moonbit appear in the same list as third party integrations maintained by their authors, at github.com/dasimmet/zig-spin and github.com/gmlewis/spin-moonbit-sdk. Neither language appears as a column in the feature table, so their coverage is not stated anywhere in the matrix. The mismatch runs the other way too: C# has a column in the table without an entry in the SDK list. Check the language you intend to write, not the language the headline advertises.

The Makefile turns clippy warnings into build failures and splits three test suites

Contributor tooling is wired through the Makefile, and the shape of it shows how much surface there is. Lint is a single line with warnings promoted to errors:

bash
cargo clippy --all --all-targets --features "all-tests unsafe-aot-compilation" -- -D warnings

`make test` then fans out to lint, unit and integration groups. Unit tests run with RUST_LOG=spin=trace and skip both the integration and runtime groups, and the test-runtime target runs runtime tests in release mode with default features disabled, without the tests that assume external dependencies such as Docker or a language toolchain. A second loop walks every Cargo.toml under examples and lints and format checks each one, which is what keeps the example projects in the tree honest. The cost of contributing here is that lint surface, not the runtime.

The tree splits crates, templates, examples and wit, and the version runs ahead of the tags

The manifest names its local crates with path dependencies: spin-app at crates/app, spin-build at crates/build, spin-capabilities under crates/, everything else inherited from the workspace. Around them sit templates/ for the projects spin new copies, a wit/ directory next to src/ and tests/, docs/ for the documentation site, and deploy/, hack/, scripts/ and supply-chain/. The examples directory is the most telling part, because it holds six separate projects: http-rust, http-cpp, http-middleware, open-ai-rust, spin-timer and vault-variable-test. A timer and a middleware example sit next to the plain HTTP ones, which tells you what the framework expects a component to become.

Versioning is the other clue. The workspace version reads 4.3.0-pre0 while the newest numbered tag is v4.2.6, and a canary tag published after that release shows a rolling channel that moves on its own schedule. Cross.toml, flake.nix and taplo.toml in the root cover cross compilation, Nix and TOML formatting.

Editorial conclusion

Adopt Spin when your service is HTTP first and your component language is Rust, JavaScript, Go or Python, and when you are willing to read the support matrix before designing storage. Hold off if a custom trigger, a C# data layer or a Python connection to MySQL or PostgreSQL is on the critical path. Verify three things before committing: that your Rust toolchain satisfies the declared rust-version of 1.96, which template your language maps to, and which of the matrix rows your chosen SDK leaves unsupported.

Frequently asked questions

What is the Spin framework?

Spin is an open source framework for building, deploying and running fast and composable cloud microservices with WebAssembly, built on the WebAssembly component model and the Wasmtime runtime. It ships a CLI that creates, distributes and executes applications, and the repository is written in Rust under an Apache-2.0 license with an LLVM exception.

How do I install the Spin CLI?

Run the install script from spinframework.dev/downloads/install.sh with bash, then move the resulting binary into /usr/local/bin with sudo mv, which needs root. The project also documents building Spin from source, which requires a Rust toolchain that satisfies the declared rust-version of 1.96 and edition 2024.

Which languages can I write Spin components in?

There are first party SDKs for JavaScript, Rust, Go and Python, and the framework team states it supports those four. Zig and Moonbit SDKs exist as third party integrations maintained by their authors. Neither of those two appears as a column in the feature support table.

Does the C# SDK support Spin's storage APIs?

No. The support table marks key value storage, SQLite storage and MySQL as Not Supported for the C# SDK, along with the Redis trigger and the serverless AI API. PostgreSQL is the one relational database marked Supported for C#.

Official sources

  1. License: Apache-2.0
  2. Project website
  3. README
  4. Releases
  5. spinframework/spin on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/spinframework-spin.svg)](https://hysenlabs.com/projects/spinframework-spin)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/spinframework-spin.svg)](https://hysenlabs.com/projects/spinframework-spin)

Was this useful?