Zero Labs
Industry News / AI

The Half-Life of a Github Repo

Source · Towards AI By Christian Schulz

From the publisher’s feed, collected in the ZeroLabs newsroom.

Of 512,016 repos born on GitHub between 2019 and 2025, 97% got no star from anyone else in their first 90 days. What the other 3% had in common, measured.Image by authorTen birth weeks, seven years, one public event log, one question: what is a first star?A repo’s first star is social before it is technical.Everyone who has published a repo knows the silence after. What nobody knows is the base rate; the advice that circulates is folklore. So I measured it. Every repo born in ten calendar weeks between January 2019 and June 2026, a one-in-ten sample of them, followed through its first 90 days on GH Archive, the public log of GitHub’s public events, queried on BigQuery for nothing. Ten cohorts, 652,512 repos, the survival-analysis toolkit that medicine uses for time to an event. The event here is the first star from anyone other than the creator.The question is a sociologist’s, not an engineer’s. Not how do I get stars but what is a first star? The answer the data gives is that it is social before it is technical. What predicts it is a sentence someone can read, a reputation the owner already has, and an audience the owner already reaches, and it arrives in days, before most strangers could have read anything. The code itself is not in the model, because the event log does not carry it; the model can neither rule it in nor out, and the text says so where it matters.What the study shows, before any argument:97% of the 512,016 sampled repos born in the eight trustworthy cohort weeks got no star from anyone but their creator within 90 days. One in thirty-three did.The share fell over the years. 3.9% of the repos born in the first week of 2019 had a first star by day 90; 1.6% of those born in the first week of July 2025. In the model, the hazard of a first star falls about 4% per calendar year.Of the repos that ever get a first star, over half get it in the first week. The median is three to seven days. After a month the curve has almost flattened.A description at birth goes with 1.8× the hazard of a first star. The owner’s stars on other repos in the month before, 1.8× per log unit. First-week pushes 1.5× per log unit. An organisation as owner, 0.63. A weekend birth, 1.07.In the first week of July 2023, 2.5% of new repos had a star within a day, nearly twice any other year, and the median time to the first star was seven hours instead of days.GH Archive itself thinned out in 2026: 141,494 stars recorded on one day in July 2025, 12,347 on one day in June 2026, almost none by September, while pushes on the same days stayed between 0.6 and 3.2 million. Two cohorts are shown and flagged; nothing here rests on them.Read the pictures first. Every number here is computed in the companion notebook from the study’s tables or asserted there against them, except the four archive day counts, which are the study’s own BigQuery check recorded in its report. This is a measurement with a model, not a recipe: the ratios are associations on public event data, not causes, and no repository is named.1. Ninety-six percent became ninety-eight.A repo is born, for this study, the week its default branch is created: the first push of a non-empty repository, the one creation signal GH Archive carries in every year. Forks are out, and so is any repo that showed a sign of life in the 30 days before, so an old project that was active last month does not count as a birth when it renames its branch. The event is the first star from someone other than the creator within 90 days. Everything else is censored at 90 days, which is what a survival curve is for: it counts the repos still waiting without pretending to know their future.Figure 1 is that curve for ten birth weeks, drawn as the share that has a first star by each day. The 2019 cohorts sit near the top, below only the July 2023 cohort that section 6 is about: 3.9% of the repos born in the first week of 2019 had a first star by day 90. The 2025 cohort sits near the bottom: 1.6%. In the model that comes later, fitted on the cohorts the archive covers, the hazard of a first star falls about 4% per calendar year, everything else equal. Read the other way round, 96.1% of new repos in early 2019 were still without a star from anyone else after three months, and 98.4% in mid-2025.The two dotted lines are 2026, and they are not GitHub. They are the archive, which is section 7.Pooled over the eight cohorts the archive covers, 512,016 repos, 15,542 first stars, 3.0%. One in thirty-three. That is the base rate nobody tells you when you push.Figure 1 — Ninety-six percent became ninety-eight. Image by the author.2. The first week decides, and the odds are one in thirty-three.The curves in figure 1 rise steeply and then bend. Figure 2 reads them at three points. In the January 2019 cohort, 2.1% of repos had a first star by day 7, 2.9% by day 30, 3.9% by day 90. In the July 2025 cohort, 0.8%, 1.2%, 1.6%. In every cohort the archive covers but July 2023, which has its own section, between 51% and 59% of the repos that get a first star within 90 days get it in the first week, and the median time to the first star, among those who get one at all, is between three and seven days. After a month the curve has almost flattened: what has not happened by then mostly does not happen.This is a population curve. It says when first stars arrive, not that any single repository’s odds collapse after a week: a mix of repos meant to be seen and repos that never were would draw the same bend, and the log cannot tell the two apart.That is the shape of attention on a feed. A new repo is visible for a few days to the people who follow its owner and to whatever surfaces recent activity; then it sinks below newer things. The first star is a record of whether anyone was looking during the window, not a verdict on code almost nobody has read yet.Figure 2 — The first week decides, and the odds are one in fifty. Image by the author.3. Repos born with a description get their first star almost twice as fast.What separates the one in thirty-three from the rest? The event log carries no README, language or license, so the model uses only what happens around a birth: the kind of owner, a description at creation, first-week pushes, the owner’s stars on other repos in the 30 days before, a weekend birth. One Cox proportional-hazards model on the 512,016 repos of the eight covered cohorts, with the calendar year as a trend. Figure 3 is the whole model, and every ratio in it is an association, not a cause.A description at birth goes with 1.82 times the hazard of a first star (95% interval 1.77 to 1.88). One sentence in the box GitHub offers at creation, the sentence every listing and search result shows, is the strongest thing in the model apart from reputation, and the cheapest.There is a reading that takes the ratio away from the sentence itself: a repository born with a description is one someone intended for others, and the 97% is mostly dotfiles, homework and scratch. The log can show that being seen predicts being starred; it cannot show whether being good does too. The same caution holds for reputation below.First-week pushes come next, 1.54 per log unit, which means a repo with seven pushes in its first week has about 1.8 times the hazard of one with a single push; the log scale compresses, so each further step of the same size needs several times as many pushes. This one is partly an outcome: a repo that gets attention gets worked on. The report says so, and so do I. Read it as “alive in week one”, not as a lever. Drop the term and the others barely move: the description ratio rises to 1.96, reputation to 1.87, the organisation and weekend ratios stay where they are. The study’s tables carry the model both ways.The interval on every ratio is narrow because the sample is large. That is not the same as the effects being large. The base rate is 3%; almost doubling it still leaves nineteen of twenty repos unstarred.Figure 3 — One sentence almost doubles the odds. Image by the author.4. Stars beget stars, and the person carries them.The largest ratio in the model is reputation: the owner’s stars on other repos in the 30 days before the birth go with 1.84 times the hazard of a first star per log unit. An owner whose other repos collected five stars last month starts a new repo at about three times the hazard of an owner whose repos collected none; twenty stars, about six times. The new repo has done nothing yet. It starts ahead.Robert K. Merton named this in 1968 and called it the Matthew effect, after the line about those who have being given more: recognition flows to the already recognised, so early advantage compounds into later advantage regardless of the later work. He described it among scientists, where credit for joint work flows to the better-known name. GitHub is the same market with better bookkeeping, and the effect shows up at the level of the person, before the first star of the new repo, with a confidence interval. Cumulative advantage is not a metaphor here. It is a coefficient. What the coefficient cannot say is what the reputation is made of, earned, reciprocal or traded; it says only that it travels.The folklore says build something good and they will come. The data says who “they” are: mostly the people who were already watching you. A first repo by an unknown owner and one by a known owner are not in the same lottery.5. Organisations start slower, weekends a little faster.Two smaller ratios. A repo owned by an organisation has 0.63 times the hazard of one owned by a person. The likely reading is about audience, not credibility: an organisation’s new repository is often internal tooling or a service, public without anyone intending it for the feed. A person’s new repo is more often meant to be seen. The model cannot tell the two apart; it can only report that the organisation’s start is slower, which is the composition reading again: much of what the model measures may be which repositories were meant for an audience at all.A repo born on a Saturday or Sunday has 1.07 times the hazard, a small, well-measured edge. Less competes for attention on a weekend, and the people who push on weekends may more often be pushing something of their own; the model does not say which.6. In July 2023 the first stars came within hours.Figure 1 has one curve that starts differently, and figure 4 isolates it. In the first week of July 2023, 2.5% of new repos had a star from someone else within a day of birth. In the other cohorts the archive covers before 2025, the day-one share is between 0.85% and 1.3%; in July 2025 it is 0.4%. The median time to the first star, among the repos that got one, is between three and seven days in every cohort but that one, where it is seven hours. Three quarters of that cohort’s first stars arrived in week one, against 51% to 59% elsewhere. Day-one stars exist in every cohort, about a third of a normal year’s first stars; July 2023 doubles them.Stars that arrive within hours of a birth, at nearly twice the usual rate, across a whole week of new repositories, are not the feed working faster. They are the timing signature of automated starring: accounts that star new repositories as they appear. What they were built for, and who ran them, this study cannot say. A year later the July 2024 cohort has a separate oddity: among its starred repos, 18.7% reached ten stars within 90 days, against 3% to 9% in every other covered year.This study reports the pattern and does not correct for it; the correction is a study of its own. A star process has two sources, stars from outside (a post, a follower’s feed) and stars from earlier stars (a trending page), and a self-exciting model can estimate both per repository, with the dispersion that separates a human wave from a script. That is the second study. Here the point is narrower: even the anomaly is social. Nobody read the code in seven hours either.Figure 4 — In July 2023 the first stars came within hours. Image by the author.7. The archive is thinning, and that is a finding too.The two dotted curves in figure 1, January and June 2026, show 1.2% and 0.2% of new repos with a first star. Taken at face value that would be the collapse of attention on GitHub. It is not. It is the collapse of the record.GH Archive is the public log of GitHub’s public events, kept since 2011 and queryable on BigQuery. On 7 July 2025 it recorded 141,494 stars. On 5 January 2026, 98,760. On 1 June 2026, 12,347. On 1 September 2026, stars were not among its seven most frequent event types at all, while pushes on those same days were 2.3, 2.4, 3.2 and 0.6 million: down too by the end, but not by a thousandfold. The repository creation event that this kind of study would normally use vanished from the archive between July 2025 and January 2026, which is why births here are measured as the creation of the default branch, the one signal that exists in every year. Figure 5 is the count of stars the archive holds per day on those four days, on a log axis because the last one needs it.Why the archive thinned is not something this study checked at the source; a change in what GitHub’s events API exposes is the likely reason. The consequence is checkable: any 2026 star count built on GH Archive is an under-count, in this study and in any other. The two 2026 cohorts stay in every table and figure, marked, and carry nothing. The last cohort this study trusts is July 2025.A dashboard would have shown stars per new repo falling through 2026 and offered a story about AI-generated repositories flooding the platform. The story may even be true; the data cannot say, because the instrument changed.Figure 5 — The archive is thinning, and that is a finding too. Image by the author.8. What this cannot see, and what to do on Monday.What it cannot see. The shares are sample shares, a deterministic one-in-ten hash of repository names per birth week; with cohorts of 31,000 to 88,000 repos the sampling error is well under a percentage point. Births are default-branch creations, so a repository that never receives a push is not in the study, and could not have been noticed anyway. First-week pushes are measured after birth and are partly an outcome. The year term is a linear trend. Nothing about README length, language or license, because the events do not carry them. Stars by the creator are excluded; stars by bots are not identified, which is what section 6 is about. Ninety days is the horizon: a repo starred on day 91 counts as unstarred here.What to do on Monday, if you are about to push something you would like people to see. The list is short because the model is.Write the one sentence. The description field at creation is the strongest cheap signal in the model, and it is read by every listing your repository will ever appear in.Ship in the first week. Over half of all first stars arrive in week one, and the curve flattens after a month. A repo that goes quiet for its first fortnight has spent most of its window.Your previous repositories carry this one. If they collected stars last month you start ahead; if not, you start where 97% start, and the sentence and the first week are what you control.Under an organisation, expect a slower start, and decide whether the repository is meant for the feed at all.Do not chase the day-one star: the cohort where first stars came within hours has the strangest curve, and nobody read the code in seven hours.What comes after the first star. It changes the lottery, not the odds of the next draw alone. In a normal year, between 3% and 9% of the repos that get a first star reach ten within 90 days, and the reputation term says the owner’s next repository starts ahead, whatever it is. That is the Matthew effect doing its work in both directions, and it is why the first star is the one worth working for. Two studies follow on the same public data: one separates a repository’s own momentum from outside shocks, the process that makes July 2023 visible; the other measures how much stars beget stars, year by year, since 2019.How it was done is the resource at the end, in ballpark. The code stays private for now; the method does not, and nothing in it is exotic: a public dataset, two queries per birth week, and a survival package.A repo’s first star is social before it is technical. The technical part comes later, if anyone is still looking.Resource: the method, in ballparkFor anyone who wants to repeat this or take it apart; enough to build the same thing.Data. GH Archive’s day tables on BigQuery, one table per day since 2011, read through the githubarchive.day.20* prefix: the bare wildcard also matches the archive's today and yesterday views and the query fails. The tables are public; the study fits in BigQuery's monthly free tier.A birth. A CreateEvent with ref_type branch whose ref equals the payload's master_branch: the first push of a non-empty repository. The repository creation event left the archive between July 2025 and January 2026, so this is the one birth signal every year has. Forks are removed through the week's ForkEvent forkees; any repository with a star, push, issue, fork, pull request or release in the 30 days before is removed as not new.Cohorts and sample. The first full Monday-to-Sunday week of July in every year 2019 to 2025, plus January 2019 and January and June 2026. A deterministic one-in-ten sample by a hash of the repository name, so a rerun gets the same repositories.The event. The first WatchEvent by an account other than the creator within 90 days of birth; the rest censored at 90.Two queries per cohort, and why. BigQuery bills the payload column, up to 18 gigabytes a day in the 2021 to 2025 tables, over every table a query touches. One query that joined a week’s births to their window was billed for the payload over the whole window, 0.7 to 3 terabytes per cohort. So the births are read from the week’s payload into a small table, and the window, 30 days before and 97 after, is read over the cheap columns only, type, repository, actor and timestamp, joined to that table. Ten cohorts, 808.8 gigabytes. A dry run before every query, and a budget that aborts.Covariates. Owner is an organisation; a description at birth; first-week pushes, log-transformed; the owner’s stars on other repositories in the 30 days before, log-transformed; a weekend birth; the calendar year as a trend.Models. A Kaplan–Meier curve per cohort, and one Cox proportional-hazards model on the eight covered cohorts, fitted with the lifelines package in Python and reported with and without the pushes term. The archive check is a count of events by type on four days a year apart.Tooling. Python, pandas, lifelines, matplotlib, the BigQuery client; tests on synthetic frames check the survival arithmetic without the network.The Half-Life of a Github Repo was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.