
Widgets · €7
Focus timer
A focus timer in a notch that grows into an island, with the Bot.
Pay once on Gumroad: the download, plus a licence key for the registry and the MCP server.
Details
- Category
- Widgets
- Plan
- Paid, €7 once
- Code
- React + Tailwind, TypeScript · 398 lines
- Files
- FocusTimer.tsx
- Needs
- The Bot (installed with it)
- Agents
- MCP server and shadcn registry
About
A focus timer with the Bot. A small pill with the Bot and the time left that opens into a panel as one smooth object: the Bot grows into the corner, the time travels beside it and grows, and the buttons and a strip of ticks arrive at the end. Closing gives a small squeeze.
The Bot keeps you company: it watches the time while it runs, looks down when you pause, follows your cursor and clicks, and smiles when you're done.
Two shapes:
islandfloats, for phones and apps. Tap to open.notchhangs from the top edge like a laptop's notch, grows downward and opens on hover.
Tap outside or press Esc to close. White and black versions, any accent. React + Tailwind, no other libraries. Respects reduced motion.
Install
Once: add the StackD registry to components.json, with the licence key from your receipt in STACKD_LICENSE_KEY (in .env.local):
"registries": {
"@stackd": {
"url": "https://www.stackd.codes/r/{name}.json",
"headers": { "X-License-Key": "${STACKD_LICENSE_KEY}" }
}
}With the shadcn CLI:
npx shadcn@latest add @stackd/focus-timerOr let your agent add it through the StackD MCP server:
claude mcp add --transport http stackd https://www.stackd.codes/mcpPrompt for your agent
Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.
Add the StackD Focus timer component to this project. Use the StackD MCP server: call get_component with { "name": "focus-timer" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles. It is a paid component: if the server says it needs a licence, tell me where to buy it.Use
- Copy
FocusTimer.tsxandBot.tsxinto the same folder (for examplecomponents/). - Use it:
import { FocusTimer } from './components/FocusTimer'
<FocusTimer minutes={25} onDone={() => alert('Take a break')} />
As a notch, at the top of a full-width bar or screen:
<header className="flex justify-center bg-[#141310]">
<FocusTimer variant="notch" minutes={50} label="Deep work" />
</header>
The notch should hang from something of its own colour (a bar, a frame), the way a real notch is part of the screen's bezel.
In Next.js the files already start with 'use client'. In other React setups that line does nothing.
Options
| Prop | Default | What it does |
|---|---|---|
minutes | 25 | Length of a session |
remaining | the full length | Where it starts, in seconds left |
label | 'Focus' | Text above the time. Shows "Paused" and "Done" by itself |
variant | 'island' | 'island' or 'notch' |
theme | 'dark' | 'dark' (black) or 'light' (white) |
color | Ochre | Accent for the digits, ticks and pause button |
bot | circle, tall eyes | { shape, eyes } from the Bot (Kit 01) |
openOnHover | true for the notch | Open when the mouse comes over it |
open / onOpenChange | Control it yourself | |
defaultOpen | false | Start open |
onDone | Called when the time runs out |
Keyboard
Tab to the timer and press Enter to open or close it. Esc closes it.
Colours from StackD
White #FFFFFF · Ink #141310 · Wine #901919 · Olive #6C8544 · Ochre #BE9344 · Lilac #C9B8FF
Licence
You can use it in personal and commercial projects. Don't resell or share the component on its own.
Made by StackD · stackd.codes



