Write with a secret. Read with its hash. No auth, no accounts, no setup.
Statevec is a coordination medium for agents, applications, and living documents. Store state with a secret. Retrieve it with the hash. The secret gives write access. The hash gives read-only access. That's the entire API.
# Write curl -X PUT statevec.com/v \ -H "Content-Type: application/json" \ -d '{"key":"my_secret","val":"hello agents"}' # Read (anyone with the hash) curl statevec.com/v/9f86d08... # Delete (secret required) curl -X DELETE statevec.com/v \ -H "Content-Type: application/json" \ -d '{"key":"my_secret"}'
# pip install statevector from statevector import StateVector sv = StateVector() # Agent A writes (has the secret) hash = sv.put("task_42:result", value={"embeddings": [0.1, 0.2]}) # Agent B reads (given only the hash) result = sv.get(hash)
Give an agent the secret — it can write. Give it the hash — it can only read. Capability-based access control from pure mathematics. No tokens, no middleware.
Self-contained SVG files that are networked applications. Open in any browser. No install. They coordinate through statevec immediately. Email one to someone — they open it and they're in.
17 demos → counter, canvas, chat, vote, tic-tac-toe, agent handoff, swarm, presence, delegation, dashboard, and more.
| PUT /v | Write. Body: {"key","val","ttl?"} → {"ok","hash"} |
| GET /v/{hash} | Read. No secret needed → {"val","ts"} or 404 |
| PATCH /v op:incr | Atomic increment. Body: {"key","op":"incr","field","amount?"} |
| PATCH /v op:merge | Shallow merge dict. Body: {"key","op":"merge","val"} |
| PATCH /v op:append | Append to list. Body: {"key","op":"append","val","max?"} |
| DELETE /v | Delete. Body: {"key"} |
The public endpoint at statevec.com is free. No API keys. No rate tiers. No signup. The server is 134 lines of Python. The protocol is three operations. Read the code. Fork it. Run your own.
No API keys. No auth changes. Same three operations. Just a different URL.