spinframework / spinframework/spin

Spin dev components

Open
#1,229 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
Rust
Stars
6.5k
Forks
310
Avg merge
1d 20h
Merged PRs (30d)
24

Description

In Spin, all components in spin.toml will make their way into a deployed application.

There are scenarios where it might be desirable to be able to execute a component locally, while in development, but definitely not in production.

An example of this is https://github.com/radu-matei/spin-kv-explorer, which can introspect the entire contents of the KV store.

I would like to investigate what a [dev_component] section could look like, that can be executed locally, but would not make its way to a production scenario by default.

For example:

[[dev_component]]
source = { url = "https://github.com/radu-matei/spin-kv-explorer/releases/download/<latest-release>/spin-kv-explorer.wasm", digest = "sha256:aaa" }
id = "kv-explorer"
# add or remove stores you want to explore here
key_value_stores = ["default"]
[component.trigger]
route = "/internal/kv-explorer/..."

Whether or not the default behavior would include or exclude dev components, first I'd like to understand if this is a feature others would find useful.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The proposal centers on spin.toml and a new [dev_component] section. Start by locating how Spin currently loads components from spin.toml, then assess whether development components should be included or excluded by default; the issue names no implementation files or tests, so the completion criteria still need to be defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.