Skip to content
caliper ui pro docs

Usage forecast

Daily usage with a projected month-end total and cost.

Pro
API requests this monthBased on the last
limit 2,400,000

At about 74,143 requests a day you will use 1,980,429 by Oct 31, around $2,564.13, within your limit of 2,400,000.

API requests this month
Dayrequests that dayRunning total
Oct 13800038000
Oct 24100079000
Oct 336000115000
Oct 452000167000
Oct 561000228000
Oct 644000272000
Oct 739000311000
Oct 847000358000
Oct 955000413000
Oct 1063000476000
Oct 1171000547000
Oct 1258000605000
Oct 1349000654000
Oct 1466000720000
Oct 1574000794000
Oct 1669000863000
Oct 1781000944000
Oct 18770001021000
Oct 19620001083000
Oct 20700001153000
Oct 21860001239000

When to use

  • Warning customers that they are heading over a limit.
  • Showing the cost of staying on course.

When not to use

  • There is too little history to project.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/usage-forecast

Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

UsageForecast

8 props
PropTypeDefaultDescription
label *string—
daily *readonly number[]—Usage on each day so far, oldest first.
days *number—Days in the billing period.
limitnumber—
unitNamestring"units"
startDatestring—First day of the period, "YYYY-MM-DD", for the labels.
cost((total: number) => string)—Converts a total to money for the summary.
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes img and status semantics, with aria-label and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/usage-forecast.md

The index of every part is at /llms.txt.

More in Billing