Skip to content
Sponsor

KV

Storefiredcore.kv

Read and write a key-value store. The operation knob reshapes the inputs and outputs. Knobs are templates: {tag} pulls from a wired source, {{secret.X}} resolves a secret.

Fired. It runs when an event or a value lands on trigger, and pulls its other inputs at that moment.

Port Type Notes
trigger event Fires the node
kv kv
tag any Optional, grows: one socket per wire
Port Type Notes
value any Only when operation is get
ok bool Only when operation is has
keys json Only when operation is keys
trigger event

Right-click a knob and pick Convert to input to drive it from a wire.

Knob Kind Default Notes
operation choice get get, set, delete, has, keys
key text empty {tag} and {{secret.NAME}} work here; lists the keys of the wired store; only when operation is get, set, delete or has; placeholder key (pick or type a new one)
value text block empty {tag} and {{secret.NAME}} work here; only when operation is set
prefix text empty {tag} and {{secret.NAME}} work here; only when operation is keys

Reads and writes one KV Store: get, set, delete, has, and keys with an optional prefix. The key and value take tags, so a key of last_seen:{user} keeps one entry per user. set stores the value as text.

  • Database: An embedded SQLite database.
  • DB: Read and write a SQLite store.
  • KV Store: A key-value store that keeps its values between runs.
  • Vector Store: A vector store kept in a file on this machine.
  • Vectors: Index and search an embedded vector store.