Skip to content

Repo Map

Version: 0.6.x

Ecosystem

RepoPurposeVersionLicense
statewaveCore server — API, domain model, DB, services, deployment0.6.xAGPL-3.0
statewave-pyOfficial Python SDK (sync + async, typed exceptions, auth, batch)0.4.xApache-2.0
statewave-tsOfficial TypeScript SDK (typed errors, auth, batch, ESM)0.4.xApache-2.0
statewave-examplesRunnable demos, evals, benchmarksApache-2.0
statewave-docsArchitecture, specs, ADRs, coordination (no runtime code)Apache-2.0
statewave-demoInteractive public demo (side-by-side stateless vs memory)Apache-2.0
statewave-webMarketing website (statewave.ai)Apache-2.0
statewave-adminOperator console — system health, jobs, usage (early, read-only)Apache-2.0

Dependency direction

statewave-examples → statewave-py / statewave-ts → statewave (API)
statewave-demo → statewave-ts → statewave (API)
statewave-admin → statewave (API)
statewave-web (static, no server dependency)

SDKs depend on the API contract. Examples and demo depend on SDKs. Admin calls the API directly. Docs depend on nothing. Web is a static marketing site.

Frontend repos explained

RepoPurposeAudience
statewave-webPublic marketing site — what is Statewave, why it matters, how to startEveryone
statewave-demoInteractive demo — see AI with vs without memory, no setup requiredEvaluators, developers
statewave-adminOperator console — system health, job status, usage metering, internalOperators running Statewave

Server structure

statewave/
  server/
    api/          # Route handlers (thin — delegate to services)
      episodes.py, memories.py, context.py, timeline.py, subjects.py
    core/         # Cross-cutting: config, errors, middleware, auth, rate limit, tenant
    db/           # ORM tables, repositories, engine
    domain/       # Pure domain models (Pydantic, no ORM coupling)
    schemas/      # API request/response schemas
    services/     # Business logic
      compilers/  # BaseCompiler protocol, HeuristicCompiler, LLMCompiler
      embeddings/ # BaseEmbeddingProvider, StubProvider, LiteLLMProvider
      context.py  # Ranked, token-bounded, temporal context assembly
      conflicts.py # Memory conflict resolution
      webhooks.py # Event hook delivery
  alembic/        # DB migrations (3 versions)
  tests/          # Unit + integration tests

Test counts (as of v0.6.1)

RepoTestsFramework
statewave232+pytest + pytest-asyncio
statewave-py14pytest
statewave-ts~10vitest
statewave-examples3 eval suites (54 assertions), 2 benchmarkspytest

Available examples

ExampleLanguageDescription
minimal-quickstartPythonBasic record → compile → context loop
support-agent-pythonPython2-session support agent with ranked context and provenance
support-agent-llmPythonFull LLM loop — Statewave context → LLM → side-by-side response
coding-agent-pythonPythonCoding assistant with project context recall across sessions
eval-support-agentPythonContext quality eval (7 tests, 14 assertions)
benchmark-support-agentPythonStatewave vs history stuffing vs RAG comparison

All examples support STATEWAVE_API_KEY and STATEWAVE_URL environment variables.