design-infraGitHub
Report a problem or share feedback← Catalog

Ai Context Meter

curatedtheme-awarefree

smoothui/ai-context-meter

Context window meter whose ring fills and shifts hue at the warning threshold, never changing size.

state — subtledrop-inRefinedTechnical
$npx shadcn@latest add @smoothui/ai-context-meter

npm deps: lucide-react, motion

Our notes

Context-window meter: a ring that fills and shifts to amber at warningAt / red at dangerAt without ever changing size, with a token breakdown on open. Warning/danger colours are fixed oklch; the rest is tokens. Good for chat headers and agent consoles that should show budget pressure quietly.
Source
SmoothUI
Kind
component
Categories
agent-ui, text-effect
Use as
drop-in — replaces your component
Applies to
agent-uistats
Motion
on state · subtle · motion + svg · medium cost · respects reduced motion
Tags
ai, context, tokens, meter, usage, ring, spring, complexity-medium, reduced-motion
Licence
MIT ("MIT License — Copyright (c) 2024 Eduardo Calvo", github.com/educlopez/smoothui).
Live demo
smoothui.dev
Docs
smoothui.dev