From 5b59a7a01078ad1f296feb80a8feddd149e8e6a1 Mon Sep 17 00:00:00 2001 From: Hoid Date: Wed, 25 Feb 2026 14:06:07 +0000 Subject: [PATCH] feat: add usage dashboard (GET /v1/usage endpoint + usage.html page) --- public/index.html | 3 + public/usage.html | 146 +++++++++++++++++++++++++ src/docs/openapi.ts | 1 + src/index.ts | 5 +- src/routes/__tests__/usage.test.ts | 168 +++++++++++++++++++++++++++++ src/routes/usage.ts | 64 +++++++++++ 6 files changed, 386 insertions(+), 1 deletion(-) create mode 100644 public/usage.html create mode 100644 src/routes/__tests__/usage.test.ts create mode 100644 src/routes/usage.ts diff --git a/public/index.html b/public/index.html index 1f2f71e..05e8c11 100644 --- a/public/index.html +++ b/public/index.html @@ -243,6 +243,7 @@ footer{border-top:1px solid var(--border);padding:48px 24px 32px;background:var( Pricing API Docs Swagger + Usage Get API Key @@ -702,12 +703,14 @@ screenshot = snap.capture( Pricing Playground API Docs + Check Usage