Storage meterPro
Disk use as a capacity bar of dots, one colour block per category, over a category grid; point or click for details, Rescan, and clear caches or the Trash from the hint.
oxyn add storage-meter223.8 GB available
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Show what fills a disk and offer the one quick win, in a card small enough for a menu-bar panel.
When not to use
- Skills and commands that ride along with each new chat, filtered by how long they sat unused: use Storage cleanup instead.
- An Oxyn original: use Storage waffle instead.
- An Oxyn original: use Storage forecast instead.
Installation
Storage meter is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add storage-meterUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
A bar of dots, one colour block per category, over a grid; the hint offers the biggest thing you can clear.
223.8 GB available
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Caches picked
Caches picked: the other dots dim and the hint offers to clear them.
223.8 GB available
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Small disk
A 256 GB disk in a finer bar: the same files fill it past half.
0 MB available
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Read only
No Rescan or Clear: a meter to read.
223.8 GB available
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
StorageMeter
| Prop | Type | Default | Description |
|---|---|---|---|
cats | Option<Vec<StoreCat>> | Default::default() | Categories (the demo disk when `None`). |
cap | f64 | 512.0 | Capacity in GB. |
cols | usize | 48 | Dot columns in the bar. |
rows | usize | 4 | Dot rows in the bar. |
default_pick | Option<usize> | Default::default() | Starts with this category picked. |
actions | bool | true | Rescan and clear actions. |
on_clear | EventHandler<(String, f64)> | — | A category was cleared: (key, GB freed). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Rescan, each category, the hint's action |
| EnterorSpace on a category | Keeps its detail in the hint |
Accessibility
- The dot bar is an image labelled with used and total; each category is a button whose label and size are text.
- The hint is a polite live region: scanning, clearing and what was freed are all said.
Responsive behaviour
- 420 px card; the grid drops to two columns under 480 px.
Edge cases (spec)
420 px card; two grid columns under 480 px.
Notes for AI
- Import
StorageMeterfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
StorageMeterElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.