Feature request: Select date and time range when exporting bucket data
Maintainers usually reply within 3 days
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start in src/views/Buckets.vue and trace how the bucket JSON and CSV exports are requested. Check the existing event API handling of start and end parameters, then follow the export endpoints in the backend repository if available. Done means both export formats accept an optional date/time range while leaving exports unchanged when no range is supplied, with the UI converting local selections to RFC3339.
Written by the indexing model from the issue text.
Description
Problem
Currently, the Raw Data / Buckets view allows users to export an entire bucket as JSON or export its events as CSV.
For buckets containing months or years of ActivityWatch data, this can result in very large exports when only a specific period is needed.
It would be useful to allow users to select a start and end date/time before exporting.
Proposed UX
From Raw Data → bucket → Export, selecting either:
- Export bucket as JSON
- Export events as CSV
could open an export dialog containing:
From: [date + time]
To: [date + time]
with an option to leave the range empty to preserve the current "export everything" behavior.
Example:
Export events
From: 2026-10-20 09:00
To: 2026-10-20 17:00
[Cancel] [Export CSV]
Possible implementation
The frontend export logic currently lives in:
src/views/Buckets.vue
The existing event API already supports start and end query parameters:
GET /api/0/buckets/<bucket_id>/events?start=<RFC3339>&end=<RFC3339>
It therefore seems natural for the export endpoints to support the same optional parameters:
GET /api/0/buckets/<bucket_id>/export?start=<RFC3339>&end=<RFC3339>
GET /api/0/buckets/<bucket_id>/export/csv?start=<RFC3339>&end=<RFC3339>
If start and end are omitted, behavior would remain unchanged.
The frontend could use datetime-local inputs and convert the selected local timestamps to ISO/RFC3339 before sending them to the server.
Benefits
This would:
- make exports significantly smaller for users with long ActivityWatch histories;
- make it easier to export a day, week, working session, or arbitrary period;
- avoid having to export all history and filter it afterward;
- potentially reduce memory/processing requirements for large exports.
I'd be interested in working on this if the approach is acceptable.
- Dominant language
- TypeScript
- Stars
- 157
- Forks
- 199
- Avg merge
- 3d 18m
- Merged PRs (30d)
- 81
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ActivityWatch/aw-webui
-
Support Browser tab in multi-device Activity view (@all / device subset)Possibly taken @nedulau claimed this 1 day ago. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 18/100
ActivityWatch/aw-webui#1302 ·
Maintainers usually reply within 3 days
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
ActivityWatch/aw-webui#1284 · 6 comments ·
Maintainers usually reply within 3 days
-
Complete i18n suiteMay be free again @TimeToBuildBob claimed this 36 days ago, and no pull request is open. Open
ActivityWatch/aw-webui#1137 · 23 comments · 1 assignee ·
Maintainers usually reply within 3 days
-
Different interpretation of regex in the Activity and Timeline sectionsMay be free again @Yarish652 claimed this 38 days ago, and no pull request is open. Open
Difficulty 3/5 1-2 days Newbie friendliness 65/100
ActivityWatch/aw-webui#939 · 6 comments ·
Maintainers usually reply within 3 days
-
Feature proposal: focus/distraction analytics dashboard built on the category systemMay be free again A pull request for this issue was closed without being merged. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
ActivityWatch/aw-webui#897 · 2 comments · 1 reaction ·
Maintainers usually reply within 3 days
All issues in ActivityWatch/aw-webui
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 66/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
prometheus/docs#3198 ·
Maintainers usually reply within 3 days
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
Chat: Copying a selection that includes the end of a message also copies the actions menu labelsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
suitenumerique/hub#176 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day