Gitlytics
Next-Gen GitHub Traffic Intelligence, Dynamic SVG Widgets & Automation
The complete developer analytics suite for GitHub.
Bypass GitHub's 14-day traffic cliff, track stargazer trajectories, and launch a local or self-hosted analytics dashboard in seconds.
What ships in the
pip install gitlyticswheel: the CLI, the Python SDK, and the local/self-hosted React dashboard. The SVG profile cards and tech-badge renderer is a separate hosted service atapi.gitlytics.dev- the package does not contain a card generator. See The Gitlytics Ecosystem.
⚡ Highlights at a Glance
| Feature | Description |
|---|---|
| 🚨 14-Day Limit Defeated | Automatically snapshot & merge repository views, clones, referrers, and paths indefinitely. |
| 📈 Stargazer Trajectories | Real-time cumulative star growth tracking and milestone timeline projections. |
| 🤖 AI Health Scorecards | Cloud AI diagnostics analyzing commit velocity, issue health, PR turnaround, and traffic surges. |
| 💻 CLI, Python SDK & Web UI | Use it as a terminal command, import it into Python pipelines, or self-host the full React studio. |
| 🎨 Hosted SVG Cards & Logos | The hosted service at api.gitlytics.dev renders 50 profile-card slugs in 50 unified themes across 20 visual styles, plus 200 tech-logo capsules. Not part of the pip package. |
| 🔌 MCP Server & Agent Skills | Connect AI agents via 1-click OAuth (api.gitlytics.dev/mcp-oauth), zero-login public mode (api.gitlytics.dev/mcp), offline stdio (gitlytics mcp), or 4 skills via npx skills add ameyachopade/gitlytics-plugin -g. |
🎨 Hosted Profile Cards & Widgets
Hosted service, not the pip package. The card and logo renderer below is served by the Gitlytics cloud API at
api.gitlytics.dev. Thegitlyticswheel you install from PyPI contains the traffic CLI, the Python SDK and the local dashboard - it does not contain an SVG card generator. Install the package for traffic analytics; embed the hosted URLs for cards.
Elevate your GitHub profile README with the Gitlytics hosted native, dynamic vector SVG rendering engine. All cards feature crisp typography, custom vector squircle icons, subtle gradient accents, and real-time GitHub GraphQL data.
🖼️ Featured Card Previews
👤 Flagship Developer Profile Card (default - Obsidian Slate)
Avatar, bio, verified status, 4 metric squircles & top languages bar
⭐ Account Highlights (tokyonight - Tokyo Night)
Top repository, primary language share, peak year & longevity badge
📊 Language Diversity Index (dracula - Dracula)
Language diversity score, primary share, byte volume & stack breadth
📈 All Contributions (nord - Nord)
Commits, pull requests, issues & code reviews combined
🚀 Instant Markdown Embed
Add any card to your GitHub README.md with a single line of Markdown:
<!-- Replace 'yourusername' and choose your preferred theme -->

🔍 View All 50 Card Slugs (hosted service)
| Category | Card Slug | Focus & Visual Hierarchy |
|---|---|---|
| Flagship | profile-card |
Complete overview: Avatar, bio, followers, contributions, languages. |
| Highlights | account-highlights |
Most active repo, primary language, account longevity milestones. |
| Languages | language-diversity |
Radial language entropy score gauge + byte volume breakdowns. |
| Cadence | weekly-cadence |
7-day cyclical radar heatmap of commit & review activity. |
| Productivity | productive-hours |
Circadian clock visualization showing peak coding hours. |
| Velocity | commit-velocity |
High-frequency commit trendlines, averages, and momentum. |
| Trajectory | star-journey |
Milestone progression towards star milestones. |
| Reviews | review-stats |
PR reviews conducted, turnaround latency, and acceptance rate. |
| Contributions | combined-contributions |
Commits, pull requests, issues & code reviews combined. |
| Impact | open-source-impact |
Ecosystem reach, community forks, and public issue closure rate. |
...and 40 more specialized cards available in the Interactive Embed Studio.
🎨 Explore 50 Unified Color Themes
Supported theme values via ?theme=<name> (plus 20 visual variants via ?variant=<name>):
default • gitlytics-dark • dracula • tokyonight • nord • obsidian-gold • synthwave84 • cyberpunk • catppuccin-mocha • gruvbox-dark • monokai • one-dark • solarized-dark • matrix • rose-pine • github-dark • github-light • material-ocean • emerald-dark • amber-minimal • slate-pro • ayu-dark • horizon • shades-of-purple • cobalt2 • night-owl • palenight • laserwave • oceanic-next • dimmed • high-contrast (and 19 more in the Embed Studio)
🏷️ Hosted Multi-Source Tech Badges & Concept Capsules
Served by the hosted service at
api.gitlytics.dev- 200 verified tech logos plus custom text-only capsules. Not part of the pip package.
Generate clean capsule badges for your tech stack. Supports official brand logos plus custom text-only capsules for advanced concepts:
<!-- Official brand logo capsule -->

<!-- Custom text-only concept capsule -->

🔄 How the Traffic Engine Works
GitHub only preserves 14 days of historical traffic data. Gitlytics automates historical aggregation into an append-only archive:
flowchart LR
A["GitHub Traffic API\n(14-Day Rolling Window)"] -->|Automated Snapshot| B["Gitlytics Sync Engine"]
B -->|Deduplicate & Merge| C[("Persistent CSV / Cloud DB\n(Indefinite Retention)")]
C --> D["Interactive Dashboard"]
C --> E["Hosted SVG Profile Cards\n(api.gitlytics.dev)"]
C --> F["AI Health Reports"]
⚡ Setup in Under 2 Minutes:
Use our pre-configured companion GitHub Action that runs automatically every 13 days to snapshot and backup your data:
👉 Deploy the Gitlytics GitHub Traffic Automation Action
📦 Installation
# Core CLI and Python Analytics Engine
pip install gitlytics
# Full Package (Includes React Dashboard Web Server)
pip install "gitlytics[dashboard]"
# Optional Local Stdio MCP Extra (for offline CSV vaults + SDK access from AI agents)
pip install "gitlytics[mcp]"
💻 CLI Quick Reference
# 1. Fetch live 14-day traffic and display formatted ASCII tables
gitlytics fetch --token "ghp_your_token" --print-table
# 2. Filter specific metrics (e.g., views, clones, referrers)
gitlytics fetch --token "ghp_your_token" --metrics views clones
# 3. Synchronize snapshots into local database
gitlytics sync --token "ghp_your_token" --data-dir "./data"
# 4. Schedule automatic sync as a background cron job (e.g. daily at 11 PM)
gitlytics sync --token "ghp_your_token" --data-dir "./data" --schedule-cron "0 23 * * *"
# 5. Launch the React + FastAPI web analytics studio (loopback 127.0.0.1 by default)
gitlytics dashboard
# 5b. Bind to a non-loopback interface (requires explicit --public-bind; disables pre-loaded tokens)
gitlytics dashboard --host 0.0.0.0 --public-bind
# 6. Retrieve cumulative stargazer trajectory for a repository
gitlytics stars owner/repo --token "ghp_your_token"
# 7. Start the local stdio MCP server (reads GITLYTICS_TOKEN from env; CSV vault works offline)
gitlytics mcp --data-dir "./data"
CLI output contract: the traffic table and the success summary go to stdout; every error and warning goes to stderr. Exit codes are meaningful -
0success,1runtime/upstream failure,2bad input - sogitlytics fetch ... > out.csvnever mixes diagnostics into your data. Dashboard security:gitlytics dashboardbinds to127.0.0.1by default, does not promote ambientGITHUB_TOKENautomatically, and disables--token/GITLYTICS_TOKENon--public-bindso remote users must authenticate with their own token. SeeSECURITY.mdfor details.
🐍 Native Python SDK
Incorporate Gitlytics directly into custom pipelines, Jupyter notebooks, or scheduled scripts:
import gitlytics
# 1. Fetch traffic data as a pandas DataFrame or timeseries dict
df = gitlytics.fetch_traffic(
token="ghp_your_token",
return_format="dataframe" # Options: "dataframe", "timeseries", "summary"
)
# 2. Sync snapshots and export consolidated dashboard JSON
gitlytics.sync(
token="ghp_your_token",
data_dir="./data",
export_json="./data/export.json"
)
# 3. Query historical cumulative star trajectory
star_points = gitlytics.fetch_star_history(
owner="ameyachopade",
repo="gitlytics",
token="ghp_your_token"
)
# 4. Programmatically serve the web studio on loopback with a pre-loaded token
gitlytics.serve_dashboard(
host="127.0.0.1",
port=8080,
token="ghp_your_token",
data_dir="./data"
)
🔌 MCP Server & AI Agents
Connect Antigravity, Claude Code, Cursor, Windsurf, VS Code, Codex, and OpenCode directly to Gitlytics via the Model Context Protocol (2025-03-26 Streamable HTTP) or local offline stdio.
1. Hosted Cloud MCP (Zero Local Install)
| Endpoint | Auth Mode | Tools Unlocked |
|---|---|---|
https://api.gitlytics.dev/mcp-oauth |
1-click OAuth 2.1 + PKCE sign-in in IDEs | All 9 tools (5 public widget/profile/star tools + 4 private workspace traffic & AI health tools) |
https://api.gitlytics.dev/mcp |
Zero-login public mode (or optional Bearer glt_live_... API key for CI/CD) |
5 public tools immediately with zero login; 9 tools when passing an API key from dashboard.gitlytics.dev/integrations |
{
"mcpServers": {
"gitlytics": {
"type": "http",
"url": "https://api.gitlytics.dev/mcp-oauth"
}
}
}
2. Local Offline Stdio MCP (Ships in This Package)
Query local traffic_*.csv archives and run fetch/sync/stars/build_widget_embed without touching Gitlytics Cloud:
pip install "gitlytics[mcp]"
export GITLYTICS_TOKEN="ghp_your_token" # optional for offline CSV queries
gitlytics mcp --data-dir ./data
Using Node.js instead? Run the zero-dependency companion: npx -y @gitlytics/cli mcp --mode local --data-dir ./data.
3. Install Official Agent Skills (skills.sh)
npx skills add ameyachopade/gitlytics-plugin -g
See the MCP & AI Agents Docs for full client configs and tool schemas.
📊 Database Schema (24 Daily Metrics)
Gitlytics stores normalized daily records in local CSV files or cloud storage:
| Column | Type | Description |
|---|---|---|
date |
str |
ISO 8601 date string (YYYY-MM-DD). |
repository |
str |
Full GitHub repository name (owner/repo). |
is_private |
bool |
Privacy state of the repository. |
views |
int |
Total page views recorded on this day. |
unique_visitors |
int |
Unique visitors browsing the repository. |
clones |
int |
Total git clone operations on this day. |
unique_cloners |
int |
Distinct IP / client clone operations. |
stars |
int |
Total cumulative stargazer snapshot count. |
forks |
int |
Total cumulative fork count. |
releases |
int |
Total repository release count snapshot. |
language |
str |
Primary programming language. |
topics |
str |
JSON array of repository tags and topics. |
watchers_count |
int |
Total watcher count. |
pushed_at |
str |
Last code push timestamp. |
created_at |
str |
Repository creation timestamp. |
open_issues_count |
int |
Total open issues snapshot. |
top_referrer |
str |
Highest-volume external referral domain. |
top_referrer_views |
int |
Total views attributed to top referrer. |
top_referrer_uniques |
int |
Unique visitors attributed to top referrer. |
_raw_referrers |
str |
Complete JSON breakdown of all referral channels. |
top_path |
str |
Most frequently visited repository file/path. |
top_path_views |
int |
Views attributed to the top path. |
top_path_uniques |
int |
Unique visitors attributed to the top path. |
_raw_paths |
str |
Complete JSON breakdown of all popular paths. |
🔗 The Gitlytics Ecosystem
| Project | Role | Link |
|---|---|---|
| gitlytics (this repo) | Core Python library, CLI (fetch, sync, stars, dashboard, mcp), and self-hosted local dashboard |
PyPI |
| gitlytics-npm | Zero-dependency Node.js CLI, JS/TS SDK, dual-mode MCP & local dashboard | npm (@gitlytics/cli) |
| gitlytics-plugin | Official Antigravity plugin, MCP configs & 4 Vercel Agent Skills | skills.sh |
| gitlytics-github-traffic-automation | Composite GitHub Action for automated CSV traffic backups | GitHub Action |
| gitlytics-metadata-pages | Official Homepage, Docs Hub & Engineering Blog | gitlytics.dev / docs.gitlytics.dev |
| Gitlytics Cloud Dashboard | Hosted Analytics Dashboard, Embed Studio & MCP OAuth Consent UI | dashboard.gitlytics.dev |
| Gitlytics Hosted API & MCP | 50-card / 200-logo SVG engine & Streamable HTTP MCP server (/mcp-oauth & /mcp) |
api.gitlytics.dev |
🤝 Contributing, Security & License
- Contributing: See
CONTRIBUTING.mdfor local setup, test commands, and pull request guidelines. - Security: See
SECURITY.mdfor local security controls and private vulnerability reporting. - License: Distributed under Apache License 2.0 + Commons Clause v1.0. See
LICENSEfor full details.
If Gitlytics has saved your repository data or elevated your profile, please consider giving the repository a ⭐ Star on GitHub - it helps the project grow!
Metadata
Release files for gitlytics 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gitlytics-0.9.0.tar.gz | 859.8 kB | With provenance | Details for gitlytics-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gitlytics-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for gitlytics-0.9.0-py3-none-any.whl |
Total release size: 1.7 MB
Release files / gitlytics-0.9.0.tar.gz
| Download URL | gitlytics-0.9.0.tar.gz |
|---|---|
| Size | 859.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c8795fd6fa67c8cc8b0fe67dc5b1fe8490c4b9836dd8b45fa1e01d5137000e1
|
|
BLAKE2b-256 checksum How to use checksums |
291fd6bf7b54b3f4f02a3cd12d34c8cbacf8781cf360cf7800ed1ef751f6dfc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / gitlytics-0.9.0-py3-none-any.whl
| Download URL | gitlytics-0.9.0-py3-none-any.whl |
|---|---|
| Size | 879.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7687c3918909b7a86488dcb81148035471644568abfc05b70bb8c96ff333cd4
|
|
BLAKE2b-256 checksum How to use checksums |
f0ae47428f9989f6d1e08a3928baf3db0384e0c3478ca9f0edbc9a7707df9bb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for gitlytics 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gitlytics-0.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.