[READ-ONLY] Mirror of https://github.com/jmrplens/ghchronicle. Collects every metric GitHub exposes about an account and keeps it with the d docs.jmrp.io/ghchronicle
ghchronicle docs getting-started.md
44 kB · 713 lines
Markdown
at main

Getting started #

Generated by site/scripts/gen-docs.mjs from the pages of the documentation site named under each heading below: do not edit this file. Change the page, and its Spanish twin beside it, then run make docs.

What it is #

What ghchronicle collects from GitHub, and the problem it exists to solve: traffic kept for fourteen days, an event feed of three hundred events and thirty days.

Source: https://docs.jmrp.io/ghchronicle/start/

GitHub answers most questions about the present and almost none about the past.

The traffic API serves fourteen days and forgets. The activity feed keeps the last three hundred events, and none older than thirty days. The notification inbox drops every notification after three months, read or not, unless it was saved. Job logs are deleted after ninety days by default. The star list will tell you when each star was given, but since July 2026 only to a repository's admins and collaborators, and only if you ask before the list gets long enough to be expensive to walk. None of it is archived anywhere unless you archive it.

ghchronicle sweeps those surfaces on a schedule and writes every observation as a point stamped with the date the thing actually happened, so a year from now the question "how fast were we merging in July" still has an answer.

ghchronicle -config config.yaml

It is one static Go binary with no runtime dependencies, and it pushes to every store it supports, so it runs wherever it can reach them: a server, a container, a scheduled workflow.

The card is not the point

It can also draw an SVG summary card for a profile README. That is a side feature. The reason the project exists is the ingestion.

The six words the rest of this uses #

Word What it means here
family One collector, named in the configuration: actions, stars, issues. There are 34
group A named set of families, for switching a whole area on or off: ci, security, audience. There are 8
measurement One kind of row in the store, named gh_*: gh_star, gh_workflow_run. There are 95
point One row: a measurement, its tags, its fields and the date the thing happened
sweep One pass over the families that are due, which is what the process does on a loop
backfill A run with -backfill, which walks the history instead of the increment

ghchronicle -groups prints the groups with their families, and ghchronicle -config config.yaml -list prints the repositories a sweep would cover.

Where to go next #

Quickstart #

Install ghchronicle, point it at a database and run a first sweep of a GitHub account, and what that first sweep does that later ones do not.

Source: https://docs.jmrp.io/ghchronicle/start/quickstart/

Six steps and a configuration file. The only decision worth thinking about before you start is which store keeps the history, and you can defer that by printing the points to the terminal first.

The short way #

If you have a terminal, let it ask:

ghchronicle -setup

It asks for a token, checks with GitHub who the token is, asks which account to collect and where to put the numbers, checks that the place answers, offers the dashboard and offers to set it up to run by itself. What it writes is a config.yaml that loads and, when you asked for a service, a unit, an agent or a scheduled task for whichever system this is.

Credentials never go in the configuration. They go in a file beside it that only you can read, and the configuration refers to them by name.

The installer above offers to run it as its last step, so on a new machine the two together are the whole of getting started.

The rest of this page is what it writes, for a reader who would rather write it themselves or wants to know what they just agreed to.

Zero to a first sweep #

  1. Install the binary.

    • Script

      curl -fsSL https://raw.githubusercontent.com/jmrplens/ghchronicle/main/install.sh | bash
      

      On Windows, in PowerShell:

      irm https://raw.githubusercontent.com/jmrplens/ghchronicle/main/install.ps1 | iex
      
    • Release

      Take the archive for your platform from the releases page and put ghchronicle on your PATH.

    • Container

      docker pull ghcr.io/jmrplens/ghchronicle
      
    • Go

      go install github.com/jmrplens/ghchronicle/v2/cmd/ghchronicle@latest
      
  2. Create a token at https://github.com/settings/tokens and export it.

    export GITHUB_TOKEN=github_pat_...
    

    A classic token with repo, read:packages, read:user, read:org, security_events, read:public_key and read:gpg_key sees everything this collects. The token page explains which scope buys which family, and why the automatic GITHUB_TOKEN of an Action is not enough.

  3. Write the configuration. Two decisions, and this is the whole file:

    # config.yaml
    github:
      token: ${GITHUB_TOKEN}
    targets:
      user: your-login
    sinks:
      stdout: true # swap for influxdb once you have somewhere to put it
    

    A ${VAR} in a credential, an address or a file path is read from the environment at start-up, so the file itself holds no secrets and can be committed. Everything else has a default.

    The documented version, which comments every option there is, lives in the repository rather than in the install, so take it from there when you want to read the rest:

    curl -O https://raw.githubusercontent.com/jmrplens/ghchronicle/main/config.example.yaml
    
  4. See what would be collected, before spending any quota on it.

    ghchronicle -config config.yaml -list
    

    That prints the repositories in scope. Forks and archived repositories are excluded by default. If something you expected is missing, this is the command that tells you.

  5. Run one sweep.

    ghchronicle -config config.yaml -once
    

    With sinks.stdout: true the points go to the terminal as line protocol instead of to a database, which is the cheapest way to see the shape of what you are about to store.

  6. Leave it running.

    ghchronicle -config config.yaml
    

    Each family then runs on its own cadence: workflow runs every fifteen minutes, the contribution calendar every hour, the account's SSH and GPG keys once a day.

What the first sweep does that later ones do not #

Four things happen once, and they are why the first run is the expensive one.

  • The daily star history of every repository, whatever the token may see, is read back to the repository's first week, and the whole stargazer list of every repository whose list the token may read (since July 2026, only a repository's admins and collaborators) is walked, page by page, so each of those stars carries the moment it was given and who gave it. After that, the history is one request per repository for its newest thirty weeks, usually a free 304, and the newest hundred stars of each readable list ride in one GraphQL query per ten repositories.
  • A month of workflow runs, so a fresh install does not chart a CI history that begins fifteen minutes ago. After that, twice the cadence, and never less than two hours.
  • The co-authored pull requests of the account's whole life, which achievements walks for the Pair Extraordinaire count: 35 queries and 23.7 MB over 2,315 merged pull requests, measured on 2026-09-27. After that a pass walks the days since, one page, and the whole history again once a week.
  • Every year's contribution calendar, if every.families.history is set, back to the day the account was created. After that, only the year in progress, rewritten at its cadence.

Nothing is cached yet either, so every answer of the first sweep is paid in full, where a later one asks with the ETag the last answer came with and is mostly answered a free 304; see the cache beside the state file.

Expect a few thousand points from a first sweep of twenty repositories, and a few hundred from each one after.

None of that is the history. The first sweep is a wider increment, and a dashboard at ninety days or two years then begins on the day you installed the collector: measured after a day of sweeps, about a fifth of the pull requests the repositories report, commits from the last thirty days only, and jobs for a tenth of the workflow runs. Run ghchronicle -config config.yaml -backfill once, before the service or right after it; the backfill page says what it reaches and what it costs.

Keep the state file

state_file is what remembers where each family got to, and nine things live in it. Delete it and the next sweep re-collects everything, which costs quota and nothing else for seven of the nine. The other two are the commit each dependency diff starts from, whose changes in the gap are not collected again, and what the file records of each store, a refill a migration still owes among it, which nothing then reads back.

Where to go next #

  • Ways to install is what turns the command above into something that keeps running: systemd, Docker or a scheduled Action.
  • Dating a point is the design idea everything else follows from.
  • Choosing a store decides which questions you will be able to ask later.
  • Cost of a sweep is the measured price in API calls.

The token #

Which GitHub token scopes buy which ghchronicle families, and why the automatic GITHUB_TOKEN of a workflow is not enough.

Source: https://docs.jmrp.io/ghchronicle/start/token/

Everything here is read access. The collector never writes to GitHub. What varies is how much of the account a given token is allowed to see, and a handful of scopes are worth understanding rather than just granting.

Creating one #

  1. Go to https://github.com/settings/tokens.

  2. Choose the kind of token and give it the scopes below.

    • Classic

      repo, read:packages, read:user, read:org, security_events, read:public_key and read:gpg_key covers everything this collects.

    • Fine-grained

      Read access to the repositories, including the repository permission Administration, which traffic needs, plus the account permissions for followers, gists, packages, plan, Git SSH keys and GPG keys.

  3. Put it where the process can read it, and nowhere else.

    export GITHUB_TOKEN=github_pat_...
    

    The configuration file refers to it as ${GITHUB_TOKEN}, which is expanded from the environment at start-up. That is what lets the file be committed while the token stays out of it.

What each scope buys #

Scope Without it
Push access to the repository, and Administration (read) on a fine-grained token Traffic is a 403. GitHub shows views and clones only to someone who can push to the repository
security_events Dependabot and code scanning alerts look exactly like a repository with the feature switched off
read:packages The container registry is invisible. Package versions cost one call per package
read:user Followers, contributions, gists and social accounts are missing
read:org Repositories owned by an organisation are not discovered
read:public_key, read:gpg_key The keys family writes nothing, and says nothing. No other scope implies either

Traffic is the one that surprises people, because being able to read a repository is not enough. GitHub shows views and clones only to someone who can push to the repository, and a fine-grained token also needs the repository permission Administration (read); a token that lacks either gets a 403 for that repository. The collector records that as "unavailable" and moves on, which is why the symptom is an empty traffic panel rather than a failed sweep.

Unavailable is not an error

Anything the token cannot see is recorded as unavailable and skipped. A repository with a feature switched off must not stop the sweep for the other forty, so the log says not available (403) and the sweep continues.

Why the automatic GITHUB_TOKEN is not enough #

A workflow gets a GITHUB_TOKEN for free. It is not enough for this, and the reason is worth being specific about rather than letting someone discover it as an empty dashboard.

  • It cannot read traffic, not even its own. Traffic needs push access to every repository being collected, and the automatic token has it only for the repository the workflow is running in. Even there it gets a 403: GitHub also asks for the repository permission Administration, which a workflow cannot grant its automatic token.
  • It has no security_events. Dependabot and code scanning alerts are invisible to it.
  • It has no read:packages. The container registry is invisible to it.
  • It is not a user. Everything account-wide (followers, the contribution calendar, billing, notifications, the stars you gave) is about the person, not about a repository, and the automatic token is an installation, not a person.

So a workflow needs a personal access token stored as a repository secret and passed in as the token input. See GitHub Actions.

Running without a token #

Only for the three commands that ask GitHub nothing: -backfill-status, -publish-dashboard and -uninstall. Everything that collects, a card of public numbers included, needs one, and without it stops at start-up with github.token is empty and GITHUB_TOKEN is unset. What a token short of a scope costs is the table above: the part it cannot see is left empty, and the log says not available (403) for each of them, which is the collector reporting a permission, not a failure.

Compared with the alternatives #

ghchronicle beside GitHub Insights, repohistory, github-repo-stats, star-history and the Prometheus exporters: what each keeps, how long, and where.

Source: https://docs.jmrp.io/ghchronicle/start/compared/

Several tools answer part of what ghchronicle answers: keeping GitHub traffic past fourteen days, drawing a star curve, or putting repository counts in Prometheus. They differ in what they cover, in whether a row carries the date the thing happened or the moment somebody looked, and in where the data ends up. This page sets eight of them beside ghchronicle, says where each cell comes from, and says when one of them is the better choice.

What each one keeps #

Tool What it covers How long it is kept Dated, or a current value Backfill
ghchronicle 34 families: traffic, stars, forks, workflow runs with their jobs and steps, pull requests, issues, commits, the event feed, notifications, alerts, billing and more as long as the store it writes to keeps it dated: each point at the moment the thing happened; a top-ten list with no date at the start of its UTC day; a current state at the sweep yes, -backfill walks every enabled family back as far as the API answers, but reads only the newest hundred webhook deliveries per hook and at most 500 failed job logs per repository; not traffic older than 14 days, the event feed past GitHub's ceiling, job logs older than 90 days, the names and exact times of the stars of a repository whose stargazer list the token cannot read (its stars are kept per day instead), or, from 2026-10-01, workflow runs older than the repository's retention setting
GitHub itself traffic: views and clones per day, the top ten referrers and paths; the event feed; the notification inbox; Actions runs, logs and artifacts traffic 14 days; the event feed up to 300 events and 30 days; the inbox 3 months unless saved; Actions logs and artifacts 90 days by default, and from 2026-10-01 workflow runs too views and clones by day; referrers and paths as one top-ten list for the whole 14 days not applicable: nothing older than those windows is served
KipHub Traffic traffic only: views and clones per day, and GitHub's 14-day referrer list as long as its local JSON file is kept views and clones by day, merged into one file on every fetch no: its README says to fetch more often than every 14 days
repohistory traffic: clones, views, referrers and popular pages; star history from the first sign-in on traffic stored per repository and date; stars at the date of each one for the 400 pages of 100 it reads at most, the oldest 40,000, and the rest spread evenly over the days after the last one read and marked estimated traffic no, it starts at the first sign-in; stars from GitHub's stargazer list
github-repo-stats traffic: views and clones per day, top referrers and paths; stargazers and forks over time "an arbitrarily long time frame", as daily snapshots kept in git a daily snapshot of the traffic; stars and forks at the date of each one, and a daily snapshot of the star count that carries the curve past 40,000 stars and forks yes, stars up to the oldest 40,000, a bound its source calls a GitHub API limit; traffic no
grafana/github-traffic views and clones of the newest day in the window, the star count, top paths and referrers, the rate limit not stated: whatever the Prometheus that scrapes it keeps current values, set on every run none in its source
promhippie/github_exporter repositories, organisations and their seats, billing, self-hosted runners, admin statistics; workflow runs and jobs from a webhook runs and jobs kept in its database for a purge window, 24 hours by default; the rest not stated current values; the times of runs and jobs are exposed as timestamp values runs and jobs arrive only by webhook, as they happen; otherwise not stated
githubexporter/github-exporter per repository: stars, forks, watchers, open issues, pull requests, size, release downloads; the rate limit not stated: whatever the Prometheus that scrapes it keeps current values not stated
star-history.com stars only nothing is kept for you: every chart is drawn from GitHub's stargazer list dated by the starred_at of a sample of stars, not of each one: under 15 pages of 100 it reads every page and keeps about fifteen evenly spaced stars (every star under 30); from 15 pages on (16 in its SVG API) it reads that many pages spread across the list and keeps the first star of each; a last point is today's total the whole curve, on every draw

Where each one runs and writes #

Tool Runs as Writes to Self-hosted
ghchronicle one Go binary for Linux, macOS and Windows; Docker; a systemd unit; a GitHub Action InfluxDB, PostgreSQL, Graphite, Elasticsearch, Loki, OpenTelemetry, Telegraf, a file or stdout, and Prometheus as current values only; a generated Grafana dashboard for five of them yes
GitHub itself github.com: the Insights graphs and the REST API; the traffic graph of a private repository needs GitHub Pro, Team or Enterprise Cloud nothing you own not applicable
KipHub Traffic a Python script, with an optional Dear PyGui window, run by hand; last commit 2024-02-16 a JSON file in a local JSONs folder yes, on your own machine
repohistory a hosted service at repohistory.com, installed as a GitHub App, collecting once a day; free for one repository, paid for more its own Supabase database; CSV export the source is AGPL-3.0; running your own copy is not stated
github-repo-stats a GitHub Action, once a day, one repository per job CSV files and an HTML and PDF report, committed to a branch yes, in your own repository's Actions
grafana/github-traffic a Docker container, in Python, hourly by default; for a user or an organisation a Prometheus endpoint on port 8001; Grafana dashboard 15000 yes
promhippie/github_exporter a Go binary, DEB and RPM packages, containers; the webhook collectors need it reachable from the internet a Prometheus endpoint; Chai (the default in most of its release builds), SQLite, MySQL or PostgreSQL for the webhook data yes
githubexporter/github-exporter a Docker container, in Go, on port 9171 a Prometheus endpoint yes
star-history.com a hosted website, a Chrome extension, and an API that renders the chart as SVG an image to embed hosted; its README's development section runs it locally

The rows for the other tools are what each one's own README, documentation or source says at the commit linked, read on 2026-09-24, with "not stated" where it says nothing. Beyond the READMEs linked in the first table, the cells come from these files:

The row for GitHub comes from GitHub's documentation, read the same day: traffic in the REST API, the traffic graph, the event feed, the notification inbox and Actions retention. The row for ghchronicle comes from this site: what is collected, dating a point, backfill, choosing a store and ways to install. Third-party tools change: check their pages before relying on a cell.

Dated, or a current value #

The column that separates these tools most is the fourth one. A Prometheus exporter holds a gauge, and the history of a gauge is the samples Prometheus took of it, each stamped when it was scraped. grafana/github-traffic sets its views gauge from the newest day of the fourteen, so what Prometheus keeps is that number as it stood at each scrape, stamped with the time of the scrape rather than the day it counts.

The tools that write files or rows can keep the day itself. KipHub Traffic, repohistory and github-repo-stats all store views and clones per day, which is the part of traffic that has a date, and github-repo-stats and repohistory draw stars from the date each one was given. ghchronicle applies the same rule to every surface it reads, and that rule is why its Prometheus side holds current values only: Prometheus refuses a sample dated days back, which dating a point measures.

GitHub's own windows #

Most tools on this page exist because of the second row. Traffic is fourteen days. The event feed serves up to three hundred events, none older than thirty days. The inbox keeps notifications for three months unless they are saved. Logs and artifacts are deleted after ninety days by default, and GitHub's documentation says that from 1 October 2026 the same retention setting also deletes workflow runs, checks and commit statuses, which until then were kept for 400 days or more. A public repository can set it between one and ninety days; a private one up to 400.

What GitHub serves in those windows is complete while it lasts. For a question about the last two weeks, the Insights graphs and the REST API are the right tool.

When another tool is the better choice #

  • A star chart for a README, and nothing else. star-history.com draws it from GitHub's stargazer list on demand, with nothing to run and nothing to store. Since July 2026 GitHub serves that list only to a repository's admins and collaborators (its starring page), and how star-history.com draws a chart for anyone else is not stated in the source pinned above. ghchronicle's own card is a side feature and needs a token and a run.
  • Traffic for a few repositories, kept in git, with no database. github-repo-stats is a daily workflow with one job per repository, commits its data to a branch and publishes an HTML and PDF report. ghchronicle needs a store somewhere it can reach.
  • Traffic history without running anything. repohistory is a hosted dashboard behind a GitHub App, free for one repository.
  • A current count in a Prometheus you already run. githubexporter/github-exporter and grafana/github-traffic are one container each and are scraped like any other target. If a current count is all you want, they are the smaller thing to run.
  • Self-hosted runners, organisation seats or admin statistics. promhippie/github_exporter has collectors for all three, and ghchronicle collects none of them.
  • Traffic on one machine, with no server at all. KipHub Traffic keeps it in a JSON file and draws it in a desktop window, provided somebody runs it every fortnight.

Read, not run

None of the eight other tools was run for this page. Every cell in their rows is what their own README, documentation or source says, read on 2026-09-24, and none of it is a measurement. What each one costs in API calls, how it behaves on an account of fifty repositories, and how its figures compare with ghchronicle's for the same day were not measured.

Where to go next #

  • Short answers: traffic past fourteen days, stars over time, Prometheus, organisations, in a paragraph each.
  • Dating a point: the rule behind the fourth column.
  • Choosing a store: what each of ghchronicle's destinations keeps.

Short answers #

Twelve questions about keeping GitHub history with ghchronicle: traffic past 14 days, stars over time, backfill, Prometheus, organisations and cost.

Source: https://docs.jmrp.io/ghchronicle/start/questions/

Each answer below is the short form of a page that has the detail, and links to it. Where an answer quotes GitHub rather than this project, it links to GitHub's own documentation.

How do I keep GitHub traffic data longer than 14 days? #

Collect it more often than every fourteen days and store each day under its own date. GitHub's traffic API serves views and clones per day for the last fourteen days only. ghchronicle's traffic family rereads the whole window every six hours by default and writes each day at that day's date, so the rows converge rather than pile up, and a collector that was down for a week loses nothing. Older days cannot be recovered: GitHub never kept them.

The detail is in what is collected and dating a point.

How do I track GitHub stars over time? #

Read GitHub's daily star history, which gives the stars a repository gained on each day, back to the week it was created, to anyone who can see the repository. ghchronicle's stars family reads it whole on its first sweep, for every repository it collects, and writes each day as a gh_star_day point, so the curve starts at the repository's first star, not on the day it was installed, and a repository whose stargazer list GitHub hides from the token still gets its daily curve. Where the token may read that list, the family also walks it with the star media type and writes each star as a gh_star point, dated to the second and naming who gave it. Since July 2026 GitHub serves the list only to a repository's admins and collaborators.

The token always has that access on the account's own repositories and on those of an organisation its user administers. After the first sweep, ghchronicle asks for the newest thirty weeks of each history, one request per repository and usually a free 304, and the newest hundred stars of each list it may read, ten repositories to a GraphQL query. The history is GitHub's stargazers/history endpoint: stars per day grouped by week, thirty weeks to a page, paging back to the repository's first week, thirteen pages for cli/cli, back to 2019. Its days are Pacific calendar days, and it counts today's stargazers, so an unstar takes a star off the day it was given. See what is collected and what GitHub will not give.

Can I collect GitHub history from before I installed it? #

Mostly, with one deliberate run of ghchronicle -config config.yaml -backfill. It walks every enabled family until the API runs out, or back to the bound -backfill-since sets, waits for the rate limit to reset instead of skipping, and, stopped half way, carries on from its checkpoint when run again. Three things no backfill reaches: traffic older than fourteen days, the event feed past its three hundred events or thirty days, and job logs older than ninety days, joined from 1 October 2026 by workflow runs past the repository's retention period.

The walk, its checkpoint and its bound are on backfill.

Can I archive GitHub notifications and the event feed? #

Yes, as long as the collector runs while they are still there. The events family keeps the account's activity feed, which GitHub serves up to three hundred events and none older than thirty days, and notifs keeps the inbox, which GitHub says holds notifications for three months unless they are saved. Both run every fifteen minutes by default, each item a point dated when it happened, and a Loki sink turns them into log lines.

GitHub states both windows in its documentation on the event feed and the inbox. The families are in what is collected, and the log lines in Loki.

How long does GitHub keep workflow run history? #

From 1 October 2026, ninety days by default, according to GitHub's documentation. Logs and artifacts already had that default; from that date the repository's retention setting also deletes workflow runs, checks and commit statuses, which until then were kept for 400 days or more. A public repository can keep them between one and ninety days, a private one up to 400. ghchronicle's actions family writes every run with its jobs and steps, dated when it finished.

GitHub's statement is under retention for checks, workflow runs and artifacts. A backfill walks every run GitHub still holds, back to -backfill-since when one is set, and expands each into its jobs, and into its steps while GitHub still serves them; from 1 October 2026 it can reach no further back than the repository's retention period, ninety days by default.

Can Prometheus store ghchronicle's history? #

No. Prometheus stamps a sample when it is scraped and refuses one much older: measured against Prometheus 3.14 with a thirty-minute out-of-order window, a sample dated two days back came back as HTTP 400. So the Prometheus exporter, and the OpenTelemetry sink with raw: false, serve current values reduced from the dated rows, which suits alerting. The history belongs in InfluxDB, PostgreSQL, Graphite or Elasticsearch, alongside Prometheus if you run both.

The measurement and the reduction are on dating a point.

Which database should I store GitHub metrics in? #

One that keys a row by its timestamp, because that is what lets the same fourteen days be rewritten on every sweep without duplicates. InfluxDB, PostgreSQL, Graphite and Elasticsearch all keep the dated history, and ghchronicle generates a Grafana dashboard for each of them and for Prometheus, which keeps current values only. Running more than one sink is the normal arrangement: a history store for the charts, Prometheus for alerts.

Each store is weighed on choosing a store, and the dashboards are on importing.

Why does stats/code_frequency always return 202? #

On a personal account, GitHub answers stats/code_frequency and stats/contributors with 202 and an empty body indefinitely. A 202 normally means the numbers are still being computed and a later request will get them; for these two, the next answer is another 202. ghchronicle does not call them: lines added and removed come from the commits collector instead, per commit, attributed to an author and dated to the commit.

The ten-second check and the other endpoints that do not answer are on what GitHub will not give.

Why does the GitHub traffic API return 403 with my token? #

Because traffic is gated on push access to the repository, not on being able to read it. GitHub serves views and clones only to someone who can push to the repository, and a fine-grained token also needs the repository permission Administration (read); without both, the answer is a 403. A workflow's automatic GITHUB_TOKEN cannot be granted Administration, so it gets a 403 even in the repository it runs in. ghchronicle records the 403 as unavailable and carries on, so the symptom is an empty traffic panel, not a failed sweep.

Every scope and what its absence looks like is on the token.

Does it work with a GitHub organisation? #

For its repositories, yes: name the organisation under targets.orgs and its repositories are discovered and swept like the account's own, which needs the read:org scope. The account-wide families, the contribution calendar, the event feed, notifications, billing, packages and the outbound ones, need targets.user and describe a user. Organisation-only surfaces such as the audit log are not collected: the only organisation endpoint ghchronicle calls is the repository list.

The keys are on targets, and what an organisation has that a personal account cannot see is on what GitHub will not give.

Can it run in GitHub Actions without a server? #

Yes, apart from the store it writes to. The repository ships a composite Action, jmrplens/ghchronicle@v2, which downloads a release binary and runs one sweep, a backfill or a card render. It needs a personal access token, because the automatic GITHUB_TOKEN lacks push access to other repositories, cannot read traffic even in its own, and is not a user. A hosted runner keeps no state file between runs, so unless the state is cached, which needs a configuration file, every run is a first run: it collects every family whatever its cadence, walks the stargazers, the whole star history and the account's co-authored pull requests again, and pays for every answer in full, with no ETag to be answered a free 304.

The modes, the inputs and the cache step are on GitHub Actions.

Will it use up my GitHub API rate limit? #

Not by default. The collector never spends the last 500 calls of a budget, or a fifth of the bucket's limit when that is smaller, and a sweep skips a family with a warning rather than crossing that line, so whatever else shares the token keeps working. Every response is cached by its ETag, and a 304 Not Modified costs no quota at all, which is what makes short cadences affordable.

The brake is on rate limits, and every family is priced on cost of a sweep.

Where to go next #

  • Compared with the alternatives: KipHub Traffic, repohistory, github-repo-stats, star-history and the Prometheus exporters, cell by cell.
  • Troubleshooting: the messages that look like errors and are not, and the ones that are.