airi/apps/server
2026-04-02 18:21:30 +08:00
..
docs/ai-context feat(auth): jwt sign 2026-04-02 17:48:12 +08:00
drizzle feat(auth): OIDC (#1531) 2026-04-02 04:24:04 +08:00
otel refactor(server): prune otel dashboard and active http request 2026-03-30 20:10:50 +08:00
production/railway refactor(server): revert a8f445a17985a90d7eb5d981b4231114c3066e94 2026-03-28 02:25:44 +08:00
sql fix(server): docker-compose fix 2026-01-05 16:26:44 +08:00
src feat(otel): server instrumentation script 2026-04-02 18:21:30 +08:00
.env feat(server): official provider router (#1117) 2026-03-28 02:25:44 +08:00
docker-compose.otel.yml feat(server): add OpenTelemetry observability stack 2026-03-06 02:58:44 +08:00
docker-compose.yml feat(server): reimplement message queue, drop outbox 2026-03-28 02:25:44 +08:00
Dockerfile refactor(server): revert a8f445a17985a90d7eb5d981b4231114c3066e94 2026-03-28 02:25:44 +08:00
drizzle.config.ts fix(server): database with duplicated index 2026-01-05 16:27:10 +08:00
instrumentation.mjs feat(otel): server instrumentation script 2026-04-02 18:21:30 +08:00
package.json feat(otel): server instrumentation script 2026-04-02 18:21:30 +08:00
railway.toml fix(docker): server dockerfile 2026-01-14 14:22:26 +08:00
README.md docs(server): ai context 2026-03-28 02:25:44 +08:00
tsconfig.json docs(server): ai context 2026-03-28 02:25:44 +08:00
vitest.config.ts chore: cleanup 2026-03-28 02:25:44 +08:00

@proj-airi/server

HTTP and WebSocket backend for AIRI. This app owns auth, billing, chat synchronization, gateway forwarding, and server-side observability export.

What It Does

  • Serves the Hono-based API and WebSocket endpoints.
  • Uses Postgres as the source of truth for users, billing, and durable state.
  • Uses Redis for cache, KV, Pub/Sub, and Streams.
  • Forwards GenAI requests to the configured upstream gateway and records billing from usage.
  • Exports traces, metrics, and logs through OpenTelemetry.

How To Use It

Install dependencies from the repo root and run scoped commands:

pnpm -F @proj-airi/server typecheck
pnpm -F @proj-airi/server exec vitest run
pnpm -F @proj-airi/server build

For local observability infrastructure, use:

docker compose -f apps/server/docker-compose.otel.yml up -d