# gitwall > Embeddable GitHub activity widgets. A widget is a URL; embedding it is an iframe. Public URL widgets need no account; hosted widgets belong to an account. Base URL: https://gitwall.io — all paths below are relative to it. Human setup, appearance, design-token and embedding guide: https://gitwall.io/docs. ## Make a contribution-graph widget for one GitHub user Build a URL on `/w` with query parameters (all optional except `user`): - `user` GitHub login (required) - `months` 3 | 6 | 12 (default 12) - `theme` github-dark | github-light | tethered | tethered-light | mono-dark (default github-dark) - `brand` hex without `#` (e.g. `5627ff`). Derives a full palette from one brand color; use with `bg` to pick dark/light. - `bg`, `text`, `textDim`, `line`, `bgElev`, `accent` hex overrides without `#` - `ramp` five comma-separated hexes, least to most active, e.g. `0f1550,3e1cc5,5627ff,76aaff,41f8e1` - `title` custom heading (default "commits, @user") - `stats`, `labels`, `legend`, `tooltips` 1|0 (default 1) - `streakMode` daily | weekly (default daily): daily counts consecutive contribution days, over the user's whole history, so a 3-month window can still show a 300-day streak. weekly counts consecutive Monday–Sunday weeks with contributions on at least five distinct days, using contribution calendar dates within the selected time window. The current week qualifies on its fifth active day; until it ends, it preserves the previous streak without increasing the count. A completed missed week breaks the streak on Monday. Returned summaries include `streakUnit` (day|week), `currentStreakStart`, `currentStreakEnd`, and longest streak dates. Supported by /w, /t, /team, snippet requests, hosted widget create/update, GET /api/v1/contributions/{user}, and MCP get_contributions/get_snippet/create_widget/update_widget. Appearance recipes preserve this content setting. - `fx` 1|0 (default 1): UltraCode-style glimmer for live streaks of 3+ daily days or at least one qualifying week; 0 keeps the original heatmap. Days without contributions are never highlighted as active. Viewers can pause the animation using the streak label; reduced-motion preferences keep it still. - `fxPalette` ultracode | theme | ocean | ember | custom (default ultracode). Theme follows the widget's colors; custom uses your optional streak color overrides. - `fxMix` 0..1 (default 0.2): palette tint; 0 keeps the original heatmap colors, 1 uses the full streak palette. - `fxDirection` rtl | ltr (default rtl): glints travel toward the past or toward today. - `fxSpeed` 2..20 calendar columns per second (default 10). - `fxSpread` 0..1 (default 1): 0 aligns the weekday rows, 1 fully scatters the glints. - `fxColor`, `fxGlint`, `fxSpark` optional six-digit RGB hex (with or without #) for the streak body, highlight and spark. Omit for palette defaults. - `tv` 1 to fill the screen for a wall display (default 0) Example: `https://gitwall.io/w?user=octocat&months=6&theme=github-light` Appearance example: `https://gitwall.io/w?user=christopherneilson&theme=tethered&fxPalette=ocean&fxMix=0.3&fxDirection=ltr&fxSpeed=6&fxSpread=0.8`. ## Discover streak appearance before configuring it `GET /api/v1/appearance` (no key) and MCP `get_appearance` return the same document: `{ version, defaults, fields, presets, palettes, examples, usage }`. `fields` includes enums, numeric minimum/maximum and defaults. Each palette has `{ id, label, description, config, patch }`. Use `config` for creation and `patch` to switch an existing widget to that palette: named-palette patches explicitly clear old `fxColor`, `fxGlint` and `fxSpark` overrides. For example, use `{"fxPalette":"ocean","fxColor":null,"fxGlint":null,"fxSpark":null}` with PATCH or MCP `update_widget`; sending only `fxPalette` intentionally keeps saved overrides. The custom palette's patch supplies its explicit colors. Use discovery instead of guessing palette names or supported ranges. The document also includes `presets` for full appearance recipes, while `palettes` changes only streak colors. `tethered-twinkles` (TetherEd twinkles) is the original approved look with explicit `{ "theme":"tethered", "fx":true, "fxPalette":"ultracode", "fxMix":0.2, "fxDirection":"rtl", "fxSpeed":10, "fxSpread":1 }`. Use `presets[].config` for creation and `presets[].patch` with PATCH or MCP `update_widget` to restore it on an existing widget: the patch also sends `colors:null`, `fxColor:null`, `fxGlint:null`, `fxSpark:null`, clearing old heatmap and streak overrides while preserving user, months, title and display toggles. Do not send the recipe ID as a URL parameter; use its materialized settings. [Preview TetherEd twinkles](https://gitwall.io/w?user=christopherneilson&theme=tethered&fx=1&fxPalette=ultracode&fxMix=0.2&fxDirection=rtl&fxSpeed=10&fxSpread=1). `ocean-twinkles` (Ocean twinkles) is a second full recipe with `{ "theme":"tethered", "fx":true, "fxPalette":"ocean", "fxMix":0.2, "fxDirection":"rtl", "fxSpeed":10, "fxSpread":1 }`. Its update patch also clears `colors` and all three custom streak color overrides. [Preview Ocean twinkles](https://gitwall.io/w?user=christopherneilson&theme=tethered&fx=1&fxPalette=ocean&fxMix=0.2&fxDirection=rtl&fxSpeed=10&fxSpread=1). For MCP `update_widget`, pass `{ "id":"w_…", ...preset.patch }` unchanged. `colors:null` clears all saved heatmap overrides. A partial `colors` object is also accepted and merges key by key; omit `colors` to keep existing heatmap overrides. MCP `get_snippet` and `create_widget` accept the same nested color object. The same flat appearance fields work in `/w`, `/t`, packed `c=` configurations, widget JSON and MCP `get_snippet`, `create_widget` and `update_widget`. URL/packed numeric values clamp to the published ranges; invalid enums/non-finite values use defaults and malformed colors are dropped. MCP rejects out-of-range input. Motion preferences and the pause control still apply. ## Bring a team's Gitwall design tokens The configurator imports/exports JSON colors, either flat or `{ "colors": { ... }, ...appearanceFields }`. Recognized color keys: `brand`, `bg`, `bgElev`, `line`, `text`, `textDim`, `accent` (six-digit RGB hex, # optional), and `ramp` (exactly five hex colors from no activity to highest activity). At least one known color is required; unknown metadata is ignored. Do not mix flat color keys with the colors wrapper. Invalid present known colors, ramp entries or appearance values reject the whole import. Appearance values use their documented JSON types and ranges; importing colors alone preserves current motion/palette settings. Example: `{ "colors": { "brand":"#5627ff", "bg":"#040833", "text":"#f7f7fc" }, "fxPalette":"theme", "fxMix":0.2 }`. A brand without an explicit ramp derives a fresh palette in the configurator; other partial tokens merge with its current color snapshot. Export returns resolved colors plus appearance settings, excluding user/content fields. For MCP, pass the nested colors object as `colors` in `get_snippet`, `create_widget` or `update_widget`. REST hosted-widget JSON bodies accept the same nested object; the GET snippet endpoint uses flat URL color parameters. All eight token keys are supported. A partial hosted update preserves other saved colors, and `colors:null` clears them. Send a complete exported snapshot to replace a team's whole palette. Example MCP update: `{ "id":"w_…", "colors": { "bg":"#040833", "textDim":"#6b7094" }, "fxPalette":"theme" }`. ## Get the exact iframe to paste `GET /api/v1/widget/snippet?&width=800` returns JSON: `{ url, width, height, iframe, iframeAutoResize, config }`. Use `iframe` for a fixed height sized for `width`, or `iframeAutoResize` (iframe + 3-line script) so it grows to fit. The widget posts `{ type: "gitwall:height", height }` to its parent whenever its size changes. Paste the snippets as they are and don't add `loading="lazy"`: in WebKit (Safari, and every browser on iPhone) a natively lazy iframe loses `history.state`, which the widget's client needs (the widget now copes, but older builds did not). To defer loading below the fold, leave `src` off the iframe and set it from an IntersectionObserver when the frame nears the viewport. Narrow frames: a 12-month grid keeps a 6px minimum cell size and scrolls horizontally, opening on the most recent weeks. Use `months=3` or `months=6` to show a shorter window on phones. ## Team leaderboard `/team?users=a,b,c&months=12&theme=…&repos=owner/repo,owner/repo` Ranks members by contributions with streaks and 12-week sparklines. With `repos`, adds lines added/removed per member from GitHub's contributor stats (public repositories only). Same color parameters as `/w`. ## Organization walls (teams) An org wall needs the gitwall GitHub App installed on the organization; a human does that once via `/setup` → `/install`. The result is a signed link `/t?k=` (and `&tv=1` for a screen). The wall shows the org's aggregate activity, a leaderboard (`&mode=celebrate` for no ranking) and top projects, computed from commits and merged PRs in the org's own repositories, private ones included. Accepts the same `months`, `theme`, `brand`, color, `fx` and appearance parameters as `/w`. Treat the token as a secret: anyone with the link can view the wall. ## Hosted widgets, accounts and API keys A hosted widget lives at `/w/{id}` and keeps its configuration on the server, so it can be restyled later without editing the website it is embedded in. Hosted widgets belong to an account. - Humans: sign in at `/login` (email link), then `/dashboard` to create API keys and manage widgets. The configurator's "Save as hosted widget" also works when signed in. - Agents: send `Authorization: Bearer gw_live_…` (an API key the user created in their dashboard). Endpoints (JSON; same field names as the `/w` query params, `colors` may be nested): - `POST /api/v1/widgets` `{ "user": "octocat", "months": 6, "theme": "github-light", "colors": { "brand": "#5627ff" }, "title": "…", "badge": true }` → `201 { id, url, iframe, config, badge }` - `GET /api/v1/widgets` → your widgets · `GET|PATCH|DELETE /api/v1/widgets/{id}` - `GET /api/v1/widget/snippet?id=w_…` → iframe HTML for a hosted widget - `GET /api/v1/plans` → pricing and what each plan unlocks (no auth) Appearance-only PATCHes are supported: `PATCH /api/v1/widgets/{id}` with `{"fxPalette":"ember","fxMix":0.4}` changes the saved appearance while keeping the user, theme, nested color overrides and other settings. Either flat fields or a `config` object may be sent. Omit fields to preserve them; JSON `null` resets an appearance value to its default or clears an optional color (e.g. `{"fxColor":null}`). Nested theme colors merge key by key. MCP `update_widget` supports appearance-only updates without repeating `user`, and accepts `null` for `fxColor`, `fxGlint`, `fxSpark` to clear those overrides. Errors are `{ "message", "hint" }` and the hint says what to do next. A paid-only request (for example `badge: false` on the free plan) returns **402** with a hint; create the widget with the badge now and upgrade later. ## MCP server `https://gitwall.io/mcp` — streamable HTTP, stateless. Tools: `get_appearance`, `get_contributions`, `get_snippet` (no key needed), `create_widget`, `list_widgets`, `update_widget` (API key), `verify_install` (checks a public page for the embed), `connect_org` (returns the human-approval link for a team wall), `list_plans`. Pass the API key as `Authorization: Bearer gw_live_…`. ## Raw data `GET /api/v1/contributions/{user}?months=12` → `{ user, from, to, days: [{date, count}], total, repos: [...], summary: {...}, streak: {days, start}, source }`. `days`, `total`, the peak and the longest streak describe the window. `streak` is the current daily streak over the user's whole history; in daily mode `summary.currentStreak` uses it, so a 3-month widget still shows a 300-day streak. Weekly streaks count within the window. `repos` (commits per public repository) is populated only for the account the server's GitHub token belongs to. Private repository names are never returned. ## Notes for agents - Public data, snippets and appearance discovery use GET and need no authentication. Hosted writes and MCP use the methods and account authorization documented above. - Contribution data and public appearance discovery are cached for an hour. - Private contribution counts appear only if the GitHub user shares them on their profile ("Include private contributions"), or is the account the server's token belongs to. Connecting your own account is planned. - Payments: a metered API key tier for agents is planned; until then the free tier shows a small "gitwall" badge. - Machine-readable spec: /openapi.json