API
Explore data and image endpoints for this site.
Endpoints
Filtered commit history, summary counts, and activity buckets. Supports period (day, week, month, year, all), date, type, q, and limit (50–5000). Reads public commit history from Turso and defaults to the latest recorded day. Database reads and successful responses use 24-hour caches; a storage failure returns 503 without caching the error.
Current owner account email and optional Google photo, or null when signed out. Reads the session cookie and is never cached; used by the top bar. No sign-in is required to check session status. Signing in only unlocks personal Timer access.
- GET/api/timer
Current Timer activities, or a historical day and 30-day totals with ?date=YYYY-MM-DD. Visitors receive generated samples; the signed-in owner reads personal Turso records. Responses are private and never cached.
Change personal Timer tasks. Add accepts an optional UUID taskId to prevent duplicate creation. Requires the owner session, a same-origin request, and application/json.
Save personal preferences, including ordered durationPresets (1–5 entries) and taskPresets (1–10 entries). Requires the owner session, a same-origin request, and application/json.
Export personal history with GET or import a JSON backup with POST. Requires the owner session; imports also require a same-origin request and application/json, with a 10 MB limit.
- GET/api/hello
Sample people for data-fetching demos.
- GET/api/og
Social preview images customized by title, description, and path.
URL path segments from the requested route, such as one and two.
Page and content index for site search.
Search sample users by name with the q query parameter.