airi/apps/server
2026-05-07 19:36:33 +08:00
..
docs/ai-context feat(auth): delete account (#1756) 2026-04-28 20:53:00 +08:00
drizzle feat(auth): delete account (#1756) 2026-04-28 20:53:00 +08:00
otel feat(server): add TTS support with per-character billing 2026-04-17 02:59:14 +08:00
production/railway revert(server/docker): restore assets distribution image 2026-04-28 00:54:13 +08:00
sql fix(server): docker-compose fix 2026-01-05 16:26:44 +08:00
src test: migrate more test into browser mode, fix all existing tests 2026-05-07 18:48:39 +08:00
.env feat(server): add gateway and model configuration to environment variables 2026-04-17 02:59:14 +08:00
CLAUDE.md feat(server): use stripe product as flux pricing (#1640) 2026-04-12 04:32:42 +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 revert(server/docker): restore assets distribution image 2026-04-28 00:54:13 +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 release: v0.10.2 2026-05-07 19:36:33 +08:00
railway.toml revert(server/docker): restore assets distribution image 2026-04-28 00:54:13 +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 feat(ui-server-auth): init server auth page 2026-04-03 01:26:38 +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