Skip to content

Codebase

How the open-source repository is organized.

Applies to EngineCloud
View as Markdown
Text
sypnia-ai/
├─ gateway/             Rust workspace
│  ├─ api/              the HTTP API (axum): OpenAI-compatible endpoints and Sypnia's
│  ├─ router/           routes, versions, fallbacks
│  ├─ limits/           counters and leases
│  ├─ meter/            prices, reservations, charges
│  ├─ safety/           redaction and moderation
│  ├─ providers/        openrouter, bedrock, openai_compat, behind one trait
│  ├─ otel/             spans and their attributes
│  ├─ mcp/              the MCP server
│  └─ store/            Postgres and object storage
├─ migrations/          sypnia_ai schema
├─ packages/ai/         @sypnia/ai (server, browser, cli)
├─ prices/              the price table format, for self-hosting
├─ deploy/              docker compose with a fake provider, AWS template
├─ spec/openapi.yaml
├─ spec/routes.schema.json
└─ docs/ARCHITECTURE.md

Tests run against a recorded fake provider, so they need no keys. Contract tests for each real provider run in CI with Sypnia’s keys. The repository lives in Sypnia Git, with a mirror on GitHub.

    Search pages, sections and terms