diyar947493 downloadsTrack study and work sessions inside your notes: start and end times, total duration and an optional pomodoro cycle.
Track how long you work on something, right inside your Obsidian notes.
Start a session and a small code block is inserted into your note. It renders as a session bar: the topic, the start time and a live timer. When you finish, the end time and total duration are written into the note too. Pause it for a coffee break and the break isn't counted. You can also run a session in pomodoro mode, with focus and break phases and an alert whenever the phase changes.
Everything is stored as plain text in the note itself, so your sessions stay readable even without the plugin.

18:29 → in progress with a timer that updates every second (42:13, 1:05:09)1h 18m) into the block🍅 Pomodoro 2 · Focus · 12:47 left, green during breaksmain.js, manifest.json and styles.css from the latest release..obsidian/plugins/timebox/ inside your vault and put the three files in it.Ctrl/Cmd + P) and run Timebox: Start session, or select the ⏱ icon in the left ribbon.Math Methods) and press Enter.If the cursor line is empty, the block replaces it; otherwise the block goes on the line below. The cursor then moves below the block so you can keep typing.
Starting a new session automatically finishes any session that's still open, at the current time. You can turn this off in the settings to run several sessions at once; clicking the status bar then lists all of them, and Choose a session to finish asks which one to finish.
Paused for 04:13 · Breaks: 16m 5s. Select Resume to carry on.
A session is stored in a timebox code block:
```timebox
topic: Math Methods
start: 2026-09-28 18:29:05
mode: pomodoro
```
When the session finishes, two lines are added:
```timebox
topic: Math Methods
start: 2026-09-28 18:29:05
mode: pomodoro
end: 2026-09-28 19:47:05
duration: 1h 18m
```
Breaks are kept as one total, so the block stays short however often you pause. While paused, one more line holds when the break began:
```timebox
topic: Math Methods
start: 2026-09-28 18:29:05
paused: 12m
pause: 2026-09-28 19:40:00
```
When you resume, the pause: line is removed and its length is added to paused:. A finished session: duration is the time you actually worked, paused the total of the breaks:
```timebox
topic: Math Methods
start: 2026-09-28 18:29:05
end: 2026-09-28 19:47:05
duration: 1h 6m
paused: 12m
```
| Key | Description |
|---|---|
topic |
What the session is about. Optional. |
start |
Start time. Required. |
mode |
pomodoro or simple. Defaults to simple. |
paused |
Total break time, e.g. 12m 30s. Not counted as work. |
pause |
The session is paused right now, since this time. |
resume |
Optional, for hand-written breaks: pause:/resume: pairs are added to the total. |
end |
End time. Without it, the session is still running. |
duration |
Time worked (breaks excluded). Ignored when reading and recalculated. |
Start, START and start all work.note: p. 42) are never touched and stay where they are when the block is updated.start is missing), a warning box explaining the problem is shown instead of the bar.```, ~~~ or four or more backticks. Blocks inside blockquotes (>) and callouts work too.
| Format | Example |
|---|---|
YYYY-MM-DD HH:mm or YYYY-MM-DD HH:mm:ss |
2026-09-28 18:29, 2026-09-28 18:29:05 |
DD.MM.YYYY HH:mm or DD.MM.YYYY HH:mm:ss |
28.09.2026 18:29 |
HH:mm or HH:mm:ss (time only) |
18:29 |
start is only a time, the note's creation date is used as the day.pause, resume and end that are only a time follow the line above them: they move to the next day if they'd otherwise be earlier.end is only a time, the start day is used. If that time is earlier than the start, the session crossed midnight and the end moves to the next day. For example, start: 23:40 and end: 00:20 is a 40-minute session. The bar shows (+1) next to the end time.When the plugin finishes a session it rewrites the times in full (2026-09-28 18:29:05), so the date isn't lost if the note is copied to another device.
The cycle is: focus, short break, focus, short break… After every 4th focus period, a long break replaces the short one. The durations and the long-break interval can be changed in the settings (defaults: 25 / 5 / 15 minutes, a long break every 4 pomodoros).
🍅 Pomodoro 2 · Focus · 12:47 left☕ Short break · 02:20 left (the bar turns green)🍅🍅🍅 3 pomodorosBreaks pause the cycle too: the phase is calculated from the time you've worked, so a paused pomodoro picks up exactly where it stopped.
The phase is always calculated from the start time and the breaks, so you see the right phase even after restarting Obsidian or opening the note on another device. As a consequence, if you change the pomodoro durations, the phases of running and finished sessions are recalculated with the new durations.
When the phase changes:
Alerts only work while Obsidian is open.
| Command | What it does |
|---|---|
| Start session | Starts a session in the default mode from the settings. |
| Start pomodoro session | Starts a session in pomodoro mode. |
| Start simple session (no pomodoro) | Starts a session that only tracks time. |
| Finish active session | Finishes the active session in the current note, or else the newest one. |
| Pause or resume active session | Pauses the active session, or resumes it if it's paused. |
| Finish active session at an earlier time | Asks when you stopped working and finishes the session at that time. |
| Add a break to active session | Asks how many minutes you were away and counts them as a break. |
| Choose a session to finish | When several sessions are running, pick the one to finish. |
You can assign hotkeys to these in Settings → Hotkeys (search for "Timebox").
| Setting | Default | Description |
|---|---|---|
| Default mode | Simple | Mode used by "Start session" and the ribbon icon. |
| Finish previous session on start | On | Starting a new session finishes open sessions at the current time. |
| Focus duration | 25 min | |
| Short break | 5 min | |
| Long break | 15 min | |
| Long break interval | 4 | A long break after this many pomodoros. |
| Sound | On | Beep on phase change. |
| System notification | Off | Operating system notification on phase change. |
| Long session limit | 180 min | After this much work in one session, do the action below. 0 = off. |
| At the limit | Remind | Remind me, pause the session, or finish the session. |
| Ask after being away | 5 min | Ask about time away (sleep, Obsidian closed) at least this long. 0 = off. |
| Status bar | On | Show the active session in the status bar. |
Where is my data stored?
Your sessions live only in your notes, inside the code blocks. The plugin's own data.json stores the settings and a list of currently open sessions (note path, start time, topic, mode, pause state). That list powers the status bar and the alerts. It's updated when a note is moved or renamed and cleaned up when a note is deleted. Sessions that are no longer in their note, or that were finished by hand, are also removed from it every 30 seconds.
Can I edit a block by hand? Yes. You can change the start, end or topic, and add your own lines inside the block. An open session you write by hand is picked up as an active session when the note is displayed.
I updated from 1.0. What changes in my notes?
Nothing until a session is paused or finished. From 1.1, duration is the time worked with breaks taken out; sessions without breaks get the same duration as before, and no paused: line is added to them.
Does it work on mobile? Yes. Mobile has no status bar and no system notifications; the bar, the buttons, the commands and the pomodoro phases all work.
Requires Node.js 18 or later.
npm install
npm run dev # build in watch mode (main.js)
npm test # unit tests for src/core.ts and integration tests for src/main.ts
npm run build # type check + production build
Instead of copying files after every change, symlink the project folder into a vault:
ln -s "$(pwd)" "/path/to/vault/.obsidian/plugins/timebox"
While npm run dev is running, changes are written to main.js. Reload the plugin by disabling and enabling it, or use the Hot Reload plugin.
Project layout:
| File | Contents |
|---|---|
src/core.ts |
Pure logic: block parsing/writing, time formats, pomodoro phases. No Obsidian imports. |
src/main.ts |
The plugin: commands, starting/finishing sessions, status bar, active session list. |
src/settings.ts |
Settings and the settings tab. |
src/ui/session-bar.ts |
The session bar rendered inside notes. |
src/ui/topic-modal.ts |
The dialog that asks for the topic. |
src/ui/modals.ts |
The "finish at", "add a break", "were you away?" dialogs and the session picker. |
src/ui/alerts.ts |
Notices, the beep and system notifications. |
test/core.test.ts |
Unit tests. |
npm version patch (or minor / major). This also updates manifest.json and versions.json.git push --follow-tagsMIT © 2026 Samed Yolcu