brewen couaran

# project

Kvasir

Self-hosted STORM and Co-STORM research API

Active Personal Aug 2026 - Present
topic storm perspectives article [1] [2] [3] searxng gateway self-hosted deep research

A self-hosted service around Stanford's STORM and Co-STORM: give it a topic and it streams back a cited, Wikipedia-style article, or opens a research round table you take part in. Ships with an Open WebUI client.

Highlights

  • Vendored and forked knowledge_storm, porting it to dspy 3.3.0 with typed signatures in place of regex-parsed prose
  • Built a FastAPI service streaming research progress over SSE, with a run registry tracking stage timings and token cost per role and model
  • Stored Co-STORM sessions as atomically written JSON files, with no database, cache or queue
  • Shipped a hardened image (read-only root, non-root user, digest pinning, no moving latest tag) released with release-please
  • Wrote an Open WebUI pipe that streams runs into chat and routes title and tag generation off the research slot

STORM turns a topic into a Wikipedia-style article with citations by simulating multi-perspective research conversations . Co-STORM is its interactive sibling: a turn-based round table between you and several agents that builds a shared mind map .

Upstream ships a Python library and a Streamlit demo, but no server and no container image. Kvasir supplies the missing middle:

  1. API service

    • POST /v1/research streams a run through its research, outline, article and polish stages

    • Co-STORM sessions keyed by the client's own conversation id

    • Returns 429 on saturation rather than queueing runs that would outlast any client timeout

  2. Observability

    • A self-contained runs page showing what is running, stage timings and spend

    • Structured JSON logs carrying run_id and stage, even from inside thread pools

  3. Open WebUI pipe

    • Exposes STORM and Co-STORM as two models, with sources turned into citations

All model traffic goes through an OpenAI-compatible gateway and search through a self-hosted SearXNG instance, so no paid search credential is needed. It runs on my Talos cluster.

The vendored knowledge_storm is modified rather than depended on; the repository's fork notes record every divergence and why.

References

  • Jiang, Y., Shao, Y., Ma, D., Semnani, S. J., & Lam, M. S. (2024). Into the unknown unknowns: Engaged human learning through participation in language model agent conversations (arXiv:2408.15232). arXiv. https://doi.org/10.48550/arXiv.2408.15232
  • Shao, Y., Jiang, Y., Kanell, T. A., Xu, P., Khattab, O., & Lam, M. S. (2024). Assisting in writing Wikipedia-like articles from scratch with large language models (arXiv:2402.14207). arXiv. https://doi.org/10.48550/arXiv.2402.14207