Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Ai Meter Laravel Package

nsd7/laravel-ai-meter

Laravel package for metering AI usage across providers. It records requests, tokens, and estimated costs through a simple facade and database logging, helping you monitor spend by user, model, or feature and keep your AI budget under control.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for AI cost observability. Instrumenting token usage, normalizing per-model/per-provider pricing, and building a spend dashboard is undifferentiated plumbing. v0.6.0 shows the vendor is investing in the expensive-to-build "last mile" (dashboard shell, design system, docs site) rather than only the data layer — which strengthens the buy/adopt case over an internal build.
  • Roadmap sequencing for AI features. Spend-over-time, per-model and per-provider cost breakdowns are the prerequisite instrumentation for anything that follows: budget alerts, per-tenant chargeback, quota enforcement, and usage-based pricing. Adopting now shortens the path to those features later.
  • Whether AI spend visibility is a "this quarter" problem. If you ship LLM-backed features to paying customers and cannot answer "what did we spend on Anthropic vs. OpenAI last month," this closes that gap with a package rather than a project.
  • Stakeholder reporting without a reporting project. Stat tiles, cost-over-time chart, and a light/dark polished shell are directly presentable to finance/leadership — it lowers the internal cost of recurring "who is spending what on AI" conversations.
  • Platform standardization. A single metering layer avoids each squad inventing its own logging schema and cost table, which is the usual failure mode once more than one team ships LLM features.
  • Signal on vendor maturity. The release is UI and docs only — no routes, data, or behaviour change — which is a positive indicator for upgrade safety, but also means the "Govern" half of the new navigation is currently branding rather than demonstrated governance capability.

When to Consider This Package

Adopt / evaluate when:

  • You are on Laravel, calling one or more AI providers, and have no per-request cost data today.
  • You need visibility first and enforcement later — a dashboard is the acceptable v1 scope.
  • You want an in-app surface for cost rather than standing up a separate observability vendor.
  • The team is small enough that "buy/adopt over build" is the default, and a package dashboard plus its docs site is a credible answer to "how do we track this."
  • You want a low-risk trial: v0.6.0 changes no behaviour, so a spike/staging evaluation carries little upgrade risk.

Look elsewhere when:

  • An LLM observability platform (proxy-based tracing, prompt/response logging, evals, latency) is already a committed decision — a cost dashboard is a subset of that scope, not a substitute.
  • You need hard governance now: enforced budget caps, per-key quotas, RBAC, audit trails. The redesigned navigation implies a Govern surface, but this release demonstrates none of the underlying capability.
  • You require maturity guarantees. At v0.x, public APIs and the usage/cost schema can still change; production adoption should come with a pinned version and a documented upgrade path.
  • Your stack isn't Laravel, or you need streaming/latency/failure tracing as well as cost.

Due diligence before committing: confirm provider coverage against your actual model mix, whether pricing tables are configurable (models change faster than packages release), where usage records are stored and their retention/volume implications, and whether the "Monitor / Govern" split reflects shipped functionality or intended roadmap.

How to Pitch It (Stakeholders)

To executives: This is a Laravel package that gives us an in-app dashboard of what we're spending on AI — by model, by provider, over time. The latest release is a polished redesign with a proper design system and a restyled documentation site, which tells us the project is actively maintained and that the reporting layer is now presentable to finance without us building a reporting project first. This release changes no routes, data, or behaviour, so evaluating it costs us almost nothing. Recommended action: time-boxed evaluation, not a migration.

To engineering: It is an additive observability layer, not an architectural dependency. v0.6.0 touched only views, assets, and theming — no routes, data model, or behaviour changes — so upgrading or spiking it is safe. Two caveats to own before production: it is pre-1.0, so pin the version and review the usage/cost schema for stability; and verify the pricing tables are configurable for our provider mix, since hardcoded model pricing goes stale quickly. Treat it as visibility tooling now; budget enforcement and quota control are a separate decision to be made on evidence from the data it produces.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums