Open-source project
star-history/star-history avatar
star-history/star-history

star-history: a chart service with no releases and no external contributions

The de facto GitHub star history graph.

9,765 stars380 forksTypeScriptMIT

At a glance

What is it?
star-history plots the GitHub star count of a repository over time and hands back an image URL you can paste into a README. The hosted endpoints do the drawing, the repository exists so you can read and run the code, and it states plainly that it does not accept external contributions.
Who is it for?
star-history is the right pick when you want a star chart in a README and do not want to host anything yourself: the chart and badge endpoints take a repository name and return an image. It fits maintainers who accept that the image is fetched from a third-party host on every README render.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 22 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • star-history/star-history9,765 ★ · +245
Star history
Repository2026-09-222026-11-22
star-history/star-history9.5k9.8k

245 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The development section refuses outside contributions in one line

The repository does not describe a contribution path at all. Its Development section opens with a single quoted sentence: we do not accept external contribution. There is no issue template mentioned, no pull request guidance, and no maintainer response expectation to plan around. For a reader this changes what the repository is for. It is a readable and runnable source tree for a hosted service, not a community project you can extend. If your plan was to fix the chart style, add a framework, or change the query behaviour, that plan has no route through this repository. Everything else in the section is setup for people who already intend to run the code locally.

Embed URLs point at api.star-history.com, not at anything you run

The chart and badge in this README are not images stored in the repository. They are requests to a hosted endpoint, and the README builds them with a picture element that switches between a dark and a light srcset based on prefers-color-scheme. That means every reader of a README containing one of these embeds makes a network request to api.star-history.com, and the image is only as available as that host and the query string it was given. The chart URL in this README also carries a long sealed_token value appended after the theme and legend parameters. A badge copy does not include one. If the hosted service is unreachable, or a token is no longer accepted, the README keeps its surrounding text and silently loses the image, which is the failure mode you inherit by depending on someone else's render path.

chart takes repos, badge takes repo, and type means a different axis in each

The two endpoints do not share a parameter vocabulary. The badge is built from a singular repo parameter, while the chart is built from a plural repos parameter. The type value is not the same concept in the two places either: the badge in this README uses type=rank, matching the badge described as carrying a global rank, while the chart uses type=date, matching the feature described as supporting chart views based on date or timeline. A ready-made badge URL is:

code
https://api.star-history.com/badge?repo=star-history/star-history&type=rank&theme=dark

So a copied parameter set does not transfer between the two endpoints.

Drawing a chart locally takes two processes on two ports

The repository is split into a frontend and a backend, and the README gives a separate command for each. The homepage, which carries most of the features plus blog posts about open source, is the frontend:

code
cd frontend && pnpm i && pnpm dev

That one is served at http://localhost:3000. Generating the SVG image that you embed in a README is the backend, and it needs its own install and its own port:

code
cd backend && pnpm i && pnpm dev

That one runs at http://localhost:8080. So the frontend and the API server are run separately, each with its own install and fixed port. Prerequisites named for both are Node.js and pnpm, and the stack is Next.js with TailwindCSS. Neither port is configurable in the commands given, which matters if 3000 or 8080 is already taken on your machine.

The backend is labelled experimental while the frontend is not

The README attaches a warning label to exactly one of the three surfaces. The API server is called an experimental feature, and its stated purpose is narrow: it is mainly used to generate the chart SVG image file that can be embedded into a GitHub readme. The frontend, by contrast, is described plainly as the homepage with most of the useful features, and the Chrome extension is described as a free additional product supporting the basic chart viewer. That gap in labelling is the thing to plan around. The interactive tool is the supported path. The part that produces a file for your README is the part the README itself marks experimental, so a documentation pipeline that depends on the SVG endpoint inherits that status, along with the possibility that the endpoint's response shape changes.

The repository has no releases, so there is no version to pin

There are no GitHub releases attached to this repository, and none are advertised in the README. The default branch is main, and the most recent push was on 2026-11-01, so the code is being touched, but there is no release, no changelog file at the root, and no numbered build to point at. For anyone embedding the hosted chart this does not matter, because the hosted service tracks its own deployment. For anyone running the frontend or backend from source, it does. You get whatever main contains on the day you clone, with the two port-fixed dev commands and no way to fall back to a known-good commit that is named rather than remembered. The Chrome extension build is the same situation, since it is produced from the same frontend tree.

The root manifest only wires the shared/ directory

The package.json at the repository root is marked private and describes itself as shared dependencies for star-history shared/ code. It declares axios, the four d3 modules used for drawing, dayjs for dates, and lodash, with matching type packages in devDependencies for d3-axis, d3-scale, d3-selection, d3-shape, and lodash. That tells you the chart is composed from d3 shape and scale primitives rather than from a charting component, and that date arithmetic runs through dayjs. It also tells you what the root manifest does not contain. Next.js, TailwindCSS, and anything the backend needs are not listed here, so the dependencies that actually build the two applications live in the frontend and backend manifests instead. Reading only the root package.json gives you an incomplete picture of what the project installs.

gh/, assets/, and .claude/ appear at the root with no explanation

The top level of the repository is wider than the README covers. Alongside the expected entries such as README.md, LICENSE, pnpm-lock.yaml, and .npmrc, there are gh/, assets/, shared/, backend/, frontend/, and a .claude/ directory plus a CLAUDE.md file. The README explains frontend, backend, and shared by implication, since the root package.json names shared/ and the development section names the other two. It says nothing about gh/, nothing about assets/, and nothing about CLAUDE.md or the .claude/ directory. If you are looking for a GitHub Pages build, a social preview image workflow, or agent configuration, the README is not where you will find the answer; those entries have to be read directly, and nothing in the documentation marks them as required for local development.

Editorial conclusion

star-history is the right pick when you want a star chart in a README and do not want to host anything yourself: the chart and badge endpoints take a repository name and return an image. It fits maintainers who accept that the image is fetched from a third-party host on every README render. Before you depend on it, check three things. There are no GitHub releases, so there is no version to pin, and the last push was on 2026-11-01. The backend that renders the SVG is described as an experimental feature. And the README states that external contributions are not accepted, so do not plan to send patches. Teams who need the chart to keep working without a third-party request should build their own image generation instead.

Frequently asked questions

what is star history

In this repository, star history means a chart of a GitHub repository's star count over time, produced by the hosted service at star-history.com and the image endpoints at api.star-history.com. The README calls it the de facto GitHub star history graph and describes views based on date or timeline.

what is github star history

It is the same service, viewed from the GitHub side: you give it a repository and it returns a chart or a badge image URL you can embed in a README. The chart endpoint takes a plural repos parameter, the badge takes a singular repo parameter, and the chart URL in this README carries a sealed_token value while the badge URL does not.

How do you see who has starred your repo?

star-history does not document a per-user stargazer list. The chart and badge URLs use a type value, with type=rank on the badge that shows a global rank and type=date on the chart, and the listed features cover toggling repo visibility, a shortcut for entering a repo, sharing to Twitter, and inputting multiple repos.

star history alternative

The README documents two ways to consume the same service: the hosted chart and badge URLs from api.star-history.com, and a free Chrome extension that supports the basic chart viewer as an additional product.

What is the history of the stars?

This project treats stars as a time series to plot rather than as a topic with a history of its own. The chart is drawn from repository star counts, rendered by the backend as an SVG image, and embedded in a README as a live image pointing at the hosted endpoint.

Official sources

  1. Issues
  2. License: MIT
  3. Project website
  4. README
  5. star-history/star-history on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/star-history-star-history.svg)](https://hysenlabs.com/projects/star-history-star-history)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/star-history-star-history.svg)](https://hysenlabs.com/projects/star-history-star-history)

Was this useful?