See how the lines of code in your repo changed over time
https://loc-history.com β// momentum
// why it's here
- Created 4 weeks ago and already shipping
- Built almost entirely by one person
- Health 77/100 with only 8 stars
// how to help
// readme
Lines of Code History
See how the lines of code in a GitHub repository changed over time. It is star-history, but for code: give it owner/repo, get an SVG chart you can embed in your README, and it keeps itself up to date.
Here is vitejs/vite, served live by loc-history.com, hand-drawn with style=sketch and counted from its first commit with axis=timeline:
Several repositories on one chart, in the default clean style, for example express and star-history:
Two ways to use it:
- Hosted chart, zero setup. Run the small server (or point at someoneβs instance) and embed
/svg?repos=owner/repolike a badge. Data comes from GitHubβs statistics API. - GitHub Action, no server. A workflow in your repo renders the chart from the full git history and commits the SVG. Works for repositories of any size and lets you exclude lockfiles or vendored code.