Files
raucao 73b34a3ead Add OpenRouter usage stats widget
Add a per-user OpenRouter usage integration that reads the management key
and displays a single spend total next to the Bitcoin ticker.

The total is configurable to Today, This week or This month, defaulting to
Today. Analytics queries are widened to the previous UTC hour boundary and
then filtered locally so buckets in non-whole-hour timezones are not
clipped.
2026-11-13 14:51:38 +04:00

5 lines
248 B
JavaScript

// The integration types that render as usage stats. New usage integrations
// get added here as their integrations are built, the same way market ticker
// types are grouped in `config/market-ticker.js`.
export const USAGE_TYPES = ['openrouter'];