Spin is the open source developer tool for building and running serverless applications powered by WebAssembly.
This report summarizes scanner evidence for spinframework/spin, a Rust project with 6,563 GitHub stars. SynthScan examined 104,219 lines of code across 849 source files, recording 170 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 165 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 170 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 170 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/variables-azure/src/lib.rs | 61 | client_id: String, | COMMENT |
| LOW | crates/variables-azure/src/lib.rs | 81 | /// - `AZURE_CLIENT_CERTIFICATE_PASSWORD`: (optional) password for the | COMMENT |
| LOW | crates/factor-outbound-networking/src/lib.rs | 301 | } | COMMENT |
| LOW | crates/factor-outbound-networking/src/runtime_config.rs | 41 | /// If `true`, the "standard" CA certs in the | COMMENT |
| LOW | …/factor-outbound-networking/src/runtime_config/spin.rs | 21 | /// The given `runtime_config_dir` will be used as the root to resolve any | COMMENT |
| LOW | crates/componentize/src/abi_conformance/test_mysql.rs | 21 | /// host-implemented `mysql::execute` function with the arguments \["127.0.0.1", "INSERT INTO foo (x) VALUES | COMMENT |
| LOW | crates/componentize/src/abi_conformance/test_redis.rs | 21 | COMMENT | |
| LOW | crates/componentize/src/abi_conformance/test_redis.rs | 41 | /// "127.0.0.1", "foo"\] as arguments. The module should call the host-implemented `redis::incr` | COMMENT |
| LOW | crates/componentize/src/abi_conformance/test_redis.rs | 61 | pub sadd: Result<(), String>, | COMMENT |
| LOW | crates/componentize/src/abi_conformance/mod.rs | 1 | //! Spin ABI Conformance Test Suite | COMMENT |
| LOW | crates/componentize/src/abi_conformance/mod.rs | 81 | /// The invocation style to use when the host asks the guest to call a host-implemented function | COMMENT |
| LOW | crates/componentize/src/abi_conformance/mod.rs | 101 | pub inbound_http: Result<(), String>, | COMMENT |
| LOW | crates/componentize/src/abi_conformance/mod.rs | 121 | /// `http::send-request` function with a GET request for the URL "http://127.0.0.1/test" with no headers, | COMMENT |
| LOW | crates/componentize/src/abi_conformance/mod.rs | 141 | /// Results of the Spin key-value tests | COMMENT |
| LOW | crates/componentize/src/abi_conformance/test_wasi.rs | 21 | }; | COMMENT |
| LOW | crates/componentize/src/abi_conformance/test_wasi.rs | 41 | COMMENT | |
| LOW | crates/componentize/src/abi_conformance/test_wasi.rs | 61 | /// argument. The module should call the host-implemented `wasi_snapshot_preview1::fd_read` and | COMMENT |
| LOW | crates/trigger/src/loader.rs | 21 | /// Updates the TriggerLoader to load AOT precompiled components | COMMENT |
| LOW | crates/trigger/src/cli.rs | 121 | COMMENT | |
| LOW | crates/connection-semaphore/src/lib.rs | 41 | } | COMMENT |
| LOW | crates/connection-semaphore/src/lib.rs | 61 | wait_timeout: Option<Duration>, | COMMENT |
| LOW | crates/core/src/lib.rs | 101 | // ever, need to be modified. As a result there aren't fine-grained | COMMENT |
| LOW | crates/core/src/lib.rs | 121 | // | COMMENT |
| LOW | crates/core/src/lib.rs | 141 | // This number accounts for internal data structures that Wasmtime allocates for each instance. | COMMENT |
| LOW | crates/core/src/lib.rs | 201 | COMMENT | |
| LOW | crates/core/src/lib.rs | 301 | /// | COMMENT |
| LOW | crates/capabilities/src/lib.rs | 1 | pub use collect::required_capabilities; | COMMENT |
| LOW | crates/capabilities/src/deny.rs | 1 | use crate::{ | COMMENT |
| LOW | crates/factor-key-value/src/lib.rs | 141 | pub struct AppState { | COMMENT |
| LOW | crates/factor-key-value/src/lib.rs | 181 | COMMENT | |
| LOW | crates/factor-otel/src/lib.rs | 181 | metric_exporter: Option<Arc<MetricExporter>>, | COMMENT |
| LOW | crates/factor-otel/src/lib.rs | 241 | /// | GET /... _________________________________| | COMMENT |
| LOW | crates/locked-app/src/lib.rs | 21 | /// MetadataKey for extracting the application description. | COMMENT |
| LOW | crates/locked-app/src/lib.rs | 41 | /// An error indicating missing or unexpected metadata. | COMMENT |
| LOW | crates/locked-app/src/locked.rs | 21 | pub const SERVICE_CHAINING_KEY: &str = "local_service_chaining"; | COMMENT |
| LOW | crates/locked-app/src/locked.rs | 41 | /// in the app's `host_requirements` section. | COMMENT |
| LOW | crates/locked-app/src/locked.rs | 261 | COMMENT | |
| LOW | crates/locked-app/src/locked.rs | 321 | pub content: ContentRef, | COMMENT |
| LOW | crates/plugins/src/badger/mod.rs | 1 | mod store; | COMMENT |
| LOW | crates/plugins/src/badger/mod.rs | 21 | // an upgrade is possible. In this case it returns BadgerChecker::Deferred from the task. | COMMENT |
| LOW | crates/environments/src/environment.rs | 101 | pub fn configuration_constraints(&self) -> &ConfigurationConstraints { | COMMENT |
| LOW | crates/environments/src/environment/catalogue.rs | 101 | } | COMMENT |
| LOW | crates/environments/src/environment/definition.rs | 1 | //! Environment definition types and serialisation (TOML) formats | COMMENT |
| LOW | crates/manifest/src/error.rs | 1 | //! Spin manifest errors | COMMENT |
| LOW | crates/manifest/src/schema/v1.rs | 21 | pub name: String, | COMMENT |
| LOW | crates/manifest/src/schema/v1.rs | 41 | COMMENT | |
| LOW | crates/manifest/src/schema/v1.rs | 61 | /// `[component.trigger]` | COMMENT |
| LOW | crates/manifest/src/schema/v1.rs | 81 | /// `allowed_outbound_hosts` = ["redis://redis.com:6379"]` | COMMENT |
| LOW | crates/manifest/src/schema/v2.rs | 21 | }; | COMMENT |
| LOW | crates/manifest/src/schema/v2.rs | 41 | pub variables: Map<LowerSnakeId, Variable>, | COMMENT |
| LOW | crates/manifest/src/schema/json_schema.rs | 21 | #[derive(JsonSchema)] | COMMENT |
| LOW | crates/manifest/src/schema/json_schema.rs | 41 | #[schemars(default, schema_with = "toml_table")] | COMMENT |
| LOW | crates/manifest/src/schema/json_schema.rs | 61 | Route(String), | COMMENT |
| LOW | crates/manifest/src/schema/json_schema.rs | 81 | #[schemars(deny_unknown_fields)] | COMMENT |
| LOW | crates/manifest/src/schema/json_schema.rs | 101 | pub component: Option<ComponentSpec>, | COMMENT |
| LOW | crates/manifest/src/schema/json_schema.rs | 121 | #[serde(untagged)] | COMMENT |
| LOW | crates/manifest/src/schema/json_schema.rs | 141 | /// Each entry is in the form "(scheme)://(host)[:port]". Each element | COMMENT |
| LOW | crates/manifest/src/schema/json_schema.rs | 161 | /// | COMMENT |
| LOW | crates/manifest/src/schema/common.rs | 21 | /// Whether a value must be supplied at runtime. If not specified, required defaults | COMMENT |
| LOW | crates/manifest/src/schema/common.rs | 41 | /// Learn more: https://spinframework.dev/variables#adding-variables-to-your-applications | COMMENT |
| 92 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/manual/pg-ssl-root-certs/local-db.sh | 18 | # Check if PostgreSQL is installed | COMMENT |
| LOW | tests/manual/pg-ssl-root-certs/local-db.sh | 38 | # Check if PostgreSQL is already running | COMMENT |
| LOW⚡ | tests/manual/pg-ssl-root-certs/local-db.sh | 50 | # Check if server is ready | COMMENT |
| LOW⚡ | tests/manual/pg-ssl-root-certs/local-db.sh | 59 | # Check if database exists, create if not | COMMENT |
| LOW⚡ | tests/manual/pg-ssl-root-certs/local-db.sh | 68 | # Check if users table exists | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/manual/pg-ssl-root-certs/make-certs.sh | 1 | # Create a directory for certificates | COMMENT |
| MEDIUM | .github/workflows/rust-sdk-release.yml | 36 | # Create the pull request | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/content/sips/024-spin-deps-cli-dx.md | 66 | ### Step 1: Select the target component | COMMENT |
| LOW | docs/content/sips/024-spin-deps-cli-dx.md | 81 | ### Step 2: Select the interface to import | COMMENT |
| LOW | docs/content/sips/024-spin-deps-cli-dx.md | 103 | ### Step 3: Select capability inheritance | COMMENT |
| LOW | docs/content/sips/024-spin-deps-cli-dx.md | 119 | ### Step 4: Write to manifest and regenerate WIT | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/componentize/tests/go-case/main.go | 35 | fmt.Fprint(w, "dolor sit amet") | CODE |
| LOW | crates/componentize/tests/rust-case-0.2/src/lib.rs | 43 | body: Some("dolor sit amet".as_bytes().to_owned()), | CODE |
| LOW | crates/componentize/tests/rust-case-0.8/src/lib.rs | 51 | body: Some("dolor sit amet".as_bytes().to_owned()), | CODE |
| LOW | …/componentize/src/abi_conformance/test_inbound_http.rs | 58 | let expected_body = "dolor sit amet"; | CODE |
| LOW | crates/componentize/src/abi_conformance/mod.rs | 100 | /// includes a single header "lorem: ipsum" and a UTF-8 string body "dolor sit amet". | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/plugins/src/manifest.rs | 178 | /// `warn_unsupported_version`, which provides the full nuanced feedback. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/content/sips/003-trigger-executors.md | 50 | ### Multi-trigger orchestration | COMMENT |