MCPcopy Index your code
hub / github.com/star-history/star-history

github.com/star-history/star-history @main

repository ↗ · DeepWiki ↗ · + Follow
277 symbols 571 edges 80 files 10 documented · 4%
README

🧩 Also available as a Chrome extension

Star History Rank

:sparkles: Star History :sparkles:

star-history.com, the de facto GitHub star history graph.


Star History Chart

👆 THIS is a live chart created with the following html: 👇










  <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=star-history/star-history&type=date&legend=top-left" />



Star History Chart

👆 THIS is also a live chart with global rank and weekly stats: 👇










  <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=star-history/star-history&style=landscape1" />



<img alt="Star History Rank" src="https://api.star-history.com/badge?repo=star-history/star-history" />

👆 THIS is also a live badge with global rank: 👇




 <a href="https://www.star-history.com/star-history/star-history">









    <img alt="Star History Rank" src="https://api.star-history.com/badge?repo=star-history/star-history" />



 </a>



🎁 Sponsors

Bytebase

Bytebase is an open source, web-based database schema change and version control tool for teams. Supporting MySQL, PostgreSQL, Oracle, MongoDB, Redis, Snowflake, ClickHouse, TiDB, Google Spanner.

Dify

Dify is an open source LLMOps platform that helps developers build AI applications more simply and quickly. Its core idea is to define various aspects of AI applications, including Prompts, Contexts, and Plugins, through declarative YAML files.

SerpApi

SerpApi scrapes search engine results easily using a simple API, including Google, Google Maps, Amazon, and more

pgplex

pgplex is the Postgres toolchain for humans and agents

✨ Features

  • Unique sketch xkcd feeling chart;
  • One-click generation of high-quality image for chart;
  • Support multiple chart view mode based on date or timeline;
  • Embed the real-time chart into GitHub readme or other websites (like the one we embed here on the top)
  • And various useful functions:
  • toggle repo visibility;
  • shortcut to input repo;
  • share on Twitter quickly;
  • support input multiple repos;
  • ...waiting for you to find out!

🌠 Screenshots

🧩 Free chrome extension

🏗 Development

We do not accept external contribution.

Star-history is built using a modern tech stack: Next.js + TailwindCSS.

Prerequisites

Homepage

Homepage of star-history with most of useful features and blogs about open source.

cd frontend && pnpm i && pnpm dev

The website will be served at http://localhost:3000.

Chrome Extension

Chrome extension supports the basic chart viewer as a free additional product.

cd frontend && pnpm build:ext

Load the built ./dist folder as unpacked project to chrome extensions page.

API Server

API server is an experimental feature. It's mainly used to generate chart SVG image file that can be embeded into GitHub readme.

cd backend && pnpm i && pnpm dev

The API server will be running on http://localhost:8080.

Extension points exported contracts — how you extend this code

StorageData (Interface)
* Define storage data type
frontend/helpers/storage.tsx
RepoData (Interface)
* A repo star data is type of RepoStarData, and its memory costs might be 896 bytes. * Reference: https://developer.moz
frontend/server/cache.ts
RepoData (Interface)
* A repo star data is type of RepoStarData, and its memory costs might be 896 bytes. * Reference: https://developer.moz
backend/cache.ts
ToastProps (Interface)
(no doc)
frontend/components/Toast.tsx
SatoriVNode (Interface)
(no doc)
frontend/pages/[...slug].tsx
AppState (Interface)
(no doc)
frontend/store/index.tsx
Route (Interface)
(no doc)
frontend/plugins/scripts/generateSitemap.ts
OgCardInput (Interface)
(no doc)
backend/og-card.ts

Core symbols most depended-on inside this repo

h
called by 73
shared/packages/card-landscape1.tsx
json
called by 22
gh/event.ts
formatNumber
called by 14
frontend/helpers/format.ts
useAppStore
called by 6
frontend/store/index.tsx
percentile
called by 6
gh/db.ts
weekToDays
called by 6
gh/bigquery.ts
createTestDb
called by 5
gh/test.ts
buildQueryParams
called by 4
frontend/components/EmbedMarkdownSection.tsx

Shape

Function 199
Interface 57
Method 15
Class 6

Languages

TypeScript100%

Modules by API surface

gh/db.ts13 symbols
shared/packages/components/ToolTip.tsx12 symbols
gh/event.ts12 symbols
frontend/pages/[...slug].tsx12 symbols
frontend/components/StarChartViewer.tsx12 symbols
shared/common/utils.tsx11 symbols
frontend/components/RepoInputer.tsx9 symbols
shared/packages/xy-chart.tsx8 symbols
gh/star-fetch.ts8 symbols
frontend/components/SketchIcons.tsx8 symbols
frontend/components/ErrorBoundary.tsx8 symbols
shared/packages/card-landscape1.tsx7 symbols

Dependencies from manifests, versioned

@fortawesome/fontawesome-free6.5.1 · 1×
@fortawesome/free-brands-svg-icons6.4.2 · 1×
@fortawesome/free-regular-svg-icons6.4.2 · 1×
@fortawesome/free-solid-svg-icons6.4.2 · 1×
@google-cloud/bigquery7.9.0 · 1×
@hono/node-server1.14.1 · 1×
@tailwindcss/typography0.5.10 · 1×
@types/d3-axis2.1.0 · 1×
@types/d3-scale3.3.0 · 1×
@types/d3-selection2.0.0 · 1×

For agents

$ claude mcp add star-history \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact