UNPKG

usagepilot

Version:

Open-core usage tracking for AI applications. Record, aggregate, and bill for token consumption across tenants with 95% storage reduction

38 lines (34 loc) 1.75 kB
export class UsagePilot { constructor(config = {}) { console.log(` ╔════════════════════════════════════════════════════════════════╗ ║ ║ ║ 🚀 UsagePilot - Coming Soon! ║ ║ ║ ║ This package is currently in development and will be ║ ║ published soon with powerful AI token usage metering ║ ║ capabilities for multi-tenant SaaS applications. ║ ║ ║ ║ Follow our progress and get updates: ║ ║ 👉 https://github.com/usagepilot/usagepilot ║ ║ ║ ║ Star the repo to be notified when we launch! ⭐ ║ ║ ║ ╚════════════════════════════════════════════════════════════════╝ `); this.config = config; } createFetch(dimensionExtractor) { console.log("UsagePilot: createFetch() - Token tracking will be implemented here"); return globalThis.fetch; } async query(params) { console.log("UsagePilot: query() - Usage querying will be implemented here"); return { aggregates: [], totalCount: 0, hasMore: false, }; } } export default UsagePilot;