Activity homePro
A home under the composer: activity, recent chats, usage, files and this month, or a background agent's status with a quote and a year of activity.
oxyn add activity-homeThe 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
- A home under the composer slot. overview: Activity (the compact heat map with totals), Recent chats, Usage against the plan (rolling number, a bar that turns to the warning tone at 90 %, reset date), Files made for you and This month with rolling values and signed deltas. librarian: a background agent's card (Idle, Paused or Looking at everything, with Pause / Resume and Look at everything, which runs for 2.4 s and then adds to the looks count), a quote that refreshes in place, and the year heat map with navigation.
- Cards stagger in once (60 ms apart).
When not to use
- Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
- The app frame: use App shell instead.
- An assistant docked beside a page: use AI side panel instead.
Installation
Activity home 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 activity-homeUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Overview
Composer over Activity, Recent chats, Usage, Files and This month.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Near limit
Usage past 90 %: the bar turns to the warning tone.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Librarian
A background agent's home: status, quote and the year heat map.
Good night, Wayne
Sunday, November 15 at 10:40 PM
Keeps your projects tidy as your threads go.
137 looks today · 174 skipped · 695k tokens
“Well begun is half done.”
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ActivityHome
| Prop | Type | Default | Description |
|---|---|---|---|
variant | String | "overview" | `overview` or `librarian`. |
greeting | String | Default::default() | Greeting line ("Good night, Wayne"); empty hides it. |
date | String | Default::default() | Date line under the greeting. |
credits | (u32, u32) | (1284, 2000) | Credits used and the allowance. |
counts | Vec<u32> | Default::default() | Activity counts per day (oldest first; the last day is today). |
year | i32 | 2026 | Year for the Librarian heat map. |
now | ClockMs | Default::default() | Clock (Librarian look timing). |
children | Element | Default::default() | Composer or other content above the cards. |
on_open | EventHandler<String> | — | A recent chat or file was opened. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Through the cards' buttons and lists |
Accessibility
- Cards are sections with headings; usage is role=meter with the percent in its label.
- The Librarian status is role=status.
- Reduced motion shows the cards at once.
From the spec
- Cards are sections; usage is role=meter with the percent in its label; the Librarian status is role=status.
Motion & interaction
Timing
- Cards rise 320 ms, 60 ms apart; numbers roll 260 ms; the usage bar grows over 900 ms.
- Reduced motion: everything lands at once.
Responsive behaviour
- Six columns; four under 860 px and two under 620 px of its own width (container query on a full-width root).
Edge cases (spec)
- Container query on a full-width root: six columns, four under 860 px, two under 620 px.
Notes for AI
- Import
ActivityHomefromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ActivityHomeElinoxyn_gpui. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.