58 Commits

Author SHA1 Message Date
LovroG05
6227a49992 feat: add React admin dashboard
Tailwind v4 dark design (DM Sans/Mono, violet accent). Pages: Overview,
Logs, API Keys, Providers, Models, Analytics, Routing, Settings.
Auth gate uses localStorage token validated against /api/admin/providers.
Vite builds to internal/web/dist which is embedded into the binary.
2026-06-28 23:15:28 +02:00
LovroG05
4d78d5773d feat: wire server entrypoint; add go-oidc/v3 and uuid dependencies
main.go connects all packages: config → pool → migrate → cipher → store
→ providermgr → catalog → optional OIDC → rate limiter → API server.
WriteTimeout is zero to support SSE streaming; no middleware.Timeout.
Config validation now allows OIDC to be optional (static-token fallback).
2026-06-28 23:15:15 +02:00
LovroG05
457d354d36 feat: add HTTP API layer
chi v5 router with virtual-key auth middleware, admin-auth middleware
(OIDC-first with static-token fallback), chat and embeddings proxy
handlers with RPM/TPM rate limiting, admin CRUD endpoints for
providers/keys/models/settings, request log handler, and embedded
SPA handler.
2026-06-28 23:15:06 +02:00
LovroG05
da47afce5b feat: add core backend packages
store: pgx query layer for all entities
config: viper-based config with OIDC/rate-limit fields
crypto: AES-256-GCM credential encryption
billing: async cost recording post-response
catalog: in-memory model catalog with DB-backed sync
ratelimit: fixed 1-min RPM/TPM window limiter
oidcauth: OIDC JWT admin verification via go-oidc/v3
providermgr: provider lifecycle and credential decryption
providers: OpenAI-compat transport, Anthropic translation, embeddings
2026-06-28 23:14:54 +02:00
LovroG05
1d3a419777 feat: revise core DB schema for provider catalog, settings, and rate limits 2026-06-28 23:14:44 +02:00
LovroG05
2fa715d108 setup 2026-06-27 22:47:37 +02:00
LovroG05
7d72606bb9 frontend 2026-06-27 17:13:07 +02:00
LovroG05
7e7ab5a7e2 init 2026-06-27 16:46:12 +02:00