{"id":51523756,"url":"https://github.com/h4x0r/inkblot","last_synced_at":"2026-07-08T18:30:45.184Z","repository":{"id":366967288,"uuid":"1278636360","full_name":"h4x0r/inkblot","owner":"h4x0r","description":"Your GitHub activity as a symmetric streamgraph. Sign in with GitHub, watch your commits bloom.","archived":false,"fork":false,"pushed_at":"2026-07-04T03:44:57.000Z","size":2495,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-04T05:25:46.817Z","etag":null,"topics":["developer-tools","github","matplotlib","nextjs","shadcn","streamgraph","vercel","visualization"],"latest_commit_sha":null,"homepage":"https://gh-activity-plotter.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h4x0r.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-24T01:30:46.000Z","updated_at":"2026-06-30T08:43:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/h4x0r/inkblot","commit_stats":null,"previous_names":["h4x0r/gh-activity-plotter","h4x0r/inkblot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/h4x0r/inkblot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4x0r%2Finkblot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4x0r%2Finkblot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4x0r%2Finkblot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4x0r%2Finkblot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h4x0r","download_url":"https://codeload.github.com/h4x0r/inkblot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4x0r%2Finkblot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35274756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","github","matplotlib","nextjs","shadcn","streamgraph","vercel","visualization"],"created_at":"2026-07-08T18:30:43.902Z","updated_at":"2026-07-08T18:30:45.173Z","avatar_url":"https://github.com/h4x0r.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inkblot\n\n**Sign in with GitHub and watch your commit history bloom into a symmetric streamgraph.** A Rorschach inkblot of every late night you shipped — a small, frictionless pat on the back for the grind.\n\n![Sample activity inkblot](public/sample-inkblot.png)\n\nThe band thickness at any moment is your commits-per-hour; each repo is a colored ribbon, busiest one straddling the centerline. Toggle repos on and off and drag the time window — the chart re-blooms as you fiddle.\n\n## Quickstart\n\n```bash\npnpm install\ncp .env.example .env.local     # then fill in the three values (see below)\npnpm dlx vercel dev            # runs Next.js + the Python renderer together\n```\n\nOpen http://localhost:3000, click **Sign in with GitHub**, and your chart renders itself.\n\n\u003e Use `vercel dev` (not `next dev`) for local development: the chart is rendered by a Python serverless function, which only `vercel dev` serves locally. `next dev` runs everything _except_ the chart endpoint.\n\n### The three env values\n\n| Variable                                | Where it comes from                                                                                                      |\n| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |\n| `AUTH_GITHUB_ID` / `AUTH_GITHUB_SECRET` | A [GitHub OAuth App](https://github.com/settings/developers) — callback `http://localhost:3000/api/auth/callback/github` |\n| `AUTH_SECRET`                           | `openssl rand -base64 32`                                                                                                |\n\n## How it works\n\n```mermaid\nflowchart LR\n  U[Sign in with GitHub] --\u003e A[\"/api/activity (Node)\"]\n  A --\u003e|Octokit Search Commits| G[(GitHub)]\n  A --\u003e|bin hourly + onset window| C[client cache]\n  C --\u003e|repos + time window| R[\"/api/render (Python · matplotlib)\"]\n  R --\u003e|PNG| C\n```\n\n- **Auth** — Auth.js (NextAuth v5) with a single GitHub provider. The OAuth token lets the app read your authored commits (public always; private with the `repo` scope).\n- **Data** (`/api/activity`, Node) — pulls your commits via the Search Commits API, bins them into per-repo hourly counts, and computes the default time window: it opens _just before your activity ramps up_. The heavy fetch happens **once**.\n- **Render** (`/api/render`, Python) — a matplotlib port of the symmetric stacked streamgraph. The client re-POSTs the cached series with your current repo selection and window; debounced, with the in-flight render aborted when you keep fiddling, so it stays snappy.\n\n## Defaults that just work\n\n- **All repos** selected.\n- **Time window** auto-starts just before activity got intense (smoothed-onset detection), so the chart opens on the interesting part of your history.\n\n## Privacy\n\nInkblot reads commit _metadata_ (repo name + timestamp) to draw the chart. It renders on the fly and **does not store your code or your commits** — there is no database. The GitHub token lives only in your encrypted session cookie.\n\n## Stack\n\nNext.js 16 (App Router) · shadcn/ui + Tailwind v4 · Auth.js v5 · Octokit · matplotlib (Vercel Python function). Deploy with `vercel --prod`.\n\n## Tests\n\n```bash\npnpm test                     # TypeScript: binning + onset detection + repo labels\npython3 api/test_inkblot.py   # Python: renderer contract invariants\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4x0r%2Finkblot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh4x0r%2Finkblot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4x0r%2Finkblot/lists"}