╦ ╦ ╔╗╔ ╔═╗ ╦ ╦ ╔═╗ ╔═╗ ╦╔═ ║ ║ ║║║ ║╣ ╠═╣ ║ ║ ║ ║ ╠╩╗ ╩═╝ ╩ ╝╚╝ ╚═╝ ╩ ╩ ╚═╝ ╚═╝ ╩ ╩
Whats a line without a hook?
LineHook scans your codebase and counts lines, files, languages, and assets.
Create beautiful SVG badges and graphs with 12+ themes.
Add to your README, website, or anywhere that supports images.
These stats are from the LineHook repository itself, updated automatically on every push.
lines.svg
code.svg
files.svg
chars.svg
Choose how you want your stats to update
Generate badges locally and commit them to your repo. Perfect for full control.
GitHub Actions updates your stats on every push. Set it and forget it.
LineHook works anywhere - README, websites, dashboards
Real-time updates via webhooks for advanced use cases
Start a local server for real-time badge generation during development.
Configure GitHub to notify your server on every push for truly live stats.
Match your project's style with built-in themes
linehook statsAnalyze project and display statistics
linehook badgeGenerate badge SVGs for your README
linehook graphGenerate visual charts and cards
linehook initInitialize LineHook in your project
linehook webhookStart webhook server for real-time stats
linehook themePreview and manage color themes
No! LineHook generates static SVG files stored in your repository. They're just regular files - they work as long as your repo exists. Neither Offline Mode nor Auto Mode requires your computer to be on.
Offline Mode: You manually run linehook badge --save and commit the
files. Auto Mode: GitHub Actions automatically regenerates badges on every
push. Both create static files - the only difference is who triggers the update.
No! LineHook is completely free. GitHub Actions is free for public repos and has generous free tier for private repos.
Yes! The generated SVG files work anywhere - HTML websites, documentation sites,
dashboards. Just use an <img> tag or embed the SVG inline.
For real-time badges (updating on every page view), you'll need a hosted service. Run
linehook webhook --serve on a server like Vercel, Render, or Railway. The webhook
endpoint returns fresh stats on every request.