Context Meter, animated React component
A context-window token meter drawn as a 40 by 5 dot grid. Hover a category to light only its dots; the conversation keeps growing, and Compact chat drops its dots out of the grid while everything after them reflows to close the gap.
- Pro
- AI Components
- Hover
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Context window53%
105.4Kof 200K tokens
94.6K left
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| categories | ContextCategory[] | System prompt, Tools, Files, Conversation, Memory | Starting categories as { id, label, color, tokens } with tokens in thousands; read once on mount. |
| limit | number | 200 | Window size in thousands of tokens; the grid always has 200 dots. |
| growId | string | "conv" | Category that grows by 2.2K every 380ms and is cut back to 6.2K by Compact chat. |
| autoplay | boolean | false | Cycles the highlight and compacts when the window passes 90%, until someone touches the card. |