Skip to content

docs: add star history chart to README - #37

Merged
selvamHexo merged 1 commit into
mainfrom
docs/readme-star-history
Jun 11, 2026
Merged

docs: add star history chart to README#37
selvamHexo merged 1 commit into
mainfrom
docs/readme-star-history

Conversation

@prannayHexo

Copy link
Copy Markdown
Collaborator

What

Adds a star-history.com chart to the README, placed directly below the badge block (arXiv / License / Python / PyPI).

Why this format

Surveyed how major repos handle this: of every large repo that includes a star graph (immich, lobe-chat, dify, LibreChat, anything-llm), 100% use star-history.com — there is no alternative service for README embeds (GitHub markdown blocks iframes).

Used the <picture> element with dark/light theme variants — the most polished form, matching immich and lobe-chat. It adapts to the viewer's GitHub color scheme instead of rendering a fixed light chart on dark backgrounds.

Preview

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=hexo-ai/sia&type=Date&theme=dark" />
  <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=hexo-ai/sia&type=Date" />
  <img alt="SIA Star History Chart" src="https://api.star-history.com/svg?repos=hexo-ai/sia&type=Date" width="600" />
</picture>

Both theme endpoints verified returning valid SVGs with live hexo-ai/sia star data.

Embed a star-history.com chart below the badge block, using the
<picture> element with dark/light theme variants so it adapts to
GitHub's color scheme.
@selvamHexo
selvamHexo self-requested a review June 11, 2026 21:40
@selvamHexo
selvamHexo merged commit 0193927 into main Jun 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants