big-picture
A whole life on one printable calendar: one row per year, one square per week, edited through an MCP server.
A whole life on one printable calendar: one row per year, one square per week, edited through an MCP server.
A whole life on one printable calendar, live at https://bigpicture.io27.com. One row per year, one square per day, fading out across the estimated life expectancy. The site only displays; everything is edited by an AI app through the MCP server.
public/index.html — shell and styles (sign-in, controls)public/poster.js — the calendar, laid out directly in whole device pixels and drawn on a canvaspublic/timeline.js — the shared-axis timeline above the calendar: one Gantt chart plus a thin band per number seriespublic/analysis.js — analysis mode: correlation matrix of the number series and a scatter plot for a clicked pair, following the timeline's rangepublic/icons.js — the Heroicons (v2, outline, MIT) the page uses, as inline SVG pathspublic/app.js — sign-in, the page title, track toggles and the Grid / Analysis tabs (choices stored only in the browser), the grid's Display menu and zoom, hover and tap details, image exportsrc/worker.js — Worker: sign-in, GET /api/manifest and GET /api/t/<uid>/<track>/<rev>, routing for /mcp and OAuthsrc/store.js — plain data access used by the page (read) and MCP (read/write); validates, nothing cleversrc/mcp.js — the MCP server (/mcp), src/oauth.js — OAuth 2.1 for it (same flow as Play With Food)src/life.js — the life-expectancy fade: two numbers (expected age, spread) → a survival curvemigrations/ — D1 schema, scripts/demo.mjs — fills a demo account through OAuth + MCP (an end-to-end test)scripts/derive-weight-delta.mjs — derives a daily weight-change series from the weigh-ins already on your account: straight-line interpolation across every gap, then day-over-day differences (--max-gap leaves long gaps empty, --upload saves it)scripts/import-apple-health.mjs — turns an Apple Health export.zip into daily series (sleep, steps, weight, resting heart rate, …); dry run by default, --upload saves through OAuth + MCPconfig.hidden keeps a track off. All of this is display only and stays in the browser.chart: "bars" or agg: "sum") are summed per week and shown in five levels with zero left empty (top level starts at the 95th percentile of non-zero weeks); other series (weight…) are averaged and shown as a continuous ramp. Config hints: agg (sum|avg|max), min/max (one day's scale), scale: "sqrt", hold, and grain: "week" for data stored as one number per week square (dated at Jan 1 + 7n days of each year, which is how GitHub history is stored here to keep it small); those tracks skip the per-day strips. When squares are big enough each shows its seven days as thin strips; hovering or tapping lists the week's days.device-pixel-content-box (falling back to devicePixelRatio), and it re-lays-out when zoom or screen changes. Below 3 device pixels per square the page scrolls sideways rather than squeeze.Everything that is switched on is drawn on one shared time axis, so you can see many things at once:
The Analysis tab (next to Grid, under the timeline) swaps the calendar for a correlation view; the timeline stays on top and its selected range (drag across it, or leave it on everything) is the range analysed, updating live. Display only, computed in the browser from the points already loaded.
· means too few overlapping periods (under 3) or one series doesn't vary. The diagonal shows how many periods each series has in range.chart: "bars" or agg: "sum") are summed per period and everything else averaged; two series pair on the periods where both have a value. A period must lie fully inside the range, a total over a period the series only partly covers (its first or last) is dropped, and the day in progress is never counted. Series stored weekly (grain: "week") can't be split into days, so they show n/a in Day mode.Everything hangs off tracks:
| kind | rows | examples |
|---|---|---|
span |
items with start and optional end (overlaps allowed) |
school, jobs, places lived |
event |
items with a single date | graduation, a move, a trip |
series |
one number per day (points) |
weight, height, daily counts, mood |
Items carry a label, optional color and free-form attrs ({employer, title, salary…}) shown on hover.
track.config is free-form; the page understands unit, min, max, chart (line|bars), hold (days a reading stays on the heatmap) and hidden.
On the calendar, the main grid is the starred track (bars for a span track, a heatmap for a numeric one); other span/event tracks that are switched on appear as start/end ticks and switched-on series as heat strips. Every switched-on track also appears in the timeline above the calendar. Toggles on the page switch whole tracks on or off.
Every track has a rev that changes only when its items or points change (touch() in src/store.js).
The page fetches a small manifest first (revalidated with an ETag, so usually a 304), then downloads only tracks whose
rev it doesn't already have. Track data lives at /api/t/<user id>/<track>/<rev> and is served
private, immutable, so the browser keeps it for good; the user id in the URL keeps accounts apart on a shared browser,
and sign-out clears the cache. The page re-checks when you return to the tab (and every 5 minutes), redrawing only if something changed.
Add https://bigpicture.io27.com/mcp as a remote MCP server, sign in when asked, and say what to add.
claude mcp add --transport http bigpicture https://bigpicture.io27.com/mcpThe server speaks OAuth 2.1 with dynamic client registration, so any remote-MCP client that supports that works.
npm install
cf d1 migrations apply <d1-id> --local # first time only
npm run dev # http://localhost:8787
npm run demo # sample data: demo / demo-password-1
cf d1 migrations apply a5a0ad0c-53e8-4ecf-b732-f15e3c737f42 # only when migrations/ changes
npm run deploy
Config is in cloudflare.config.ts (Worker, D1 binding, bigpicture.io27.com). Everything runs on the free tier:
one Worker, one D1 database, static assets. Signup is open and data is per account.