mirror of
https://github.com/flyingnobita/obsidian-github-stars.git
synced 2026-07-22 12:20:26 +00:00
No description
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitignore | ||
| .hotreload | ||
| .npmrc | ||
| CHANGELOG.md | ||
| esbuild.config.mjs | ||
| githubStarsCore.test.ts | ||
| githubStarsCore.ts | ||
| LICENSE | ||
| main.ts | ||
| manifest.json | ||
| obsidian-github-stars-screenshot.png | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
GitHub Stars Plugin
An Obsidian plugin that automatically displays GitHub star counts next to repository links in your notes — in both Reading View and Live Preview. Star counts can also be embedded directly into your markdown, making them visible outside Obsidian.
✨ Features
- Automatically detects GitHub repository URLs in your notes
- Displays the star count next to each GitHub repository link in both Reading View and Live Preview
- Embed star counts directly into your markdown files so they are visible outside Obsidian
- Caches star counts to minimize API requests
- Optional GitHub API token support for higher rate limits
- Supports abbreviated number formatting (e.g., 1.2k instead of 1,234)
- Commands to refresh, embed, and remove star counts
📸 Examples
When you include a GitHub repository URL in your notes, the plugin will automatically enhance it to show the star count:

Star counts displayed inline next to GitHub repository links in Reading View.
📦 Installation
- Open Obsidian Settings → Community plugins
- Disable Safe mode if prompted
- Click Browse and search for "GitHub Stars"
- Click Install, then Enable
⚙️ Configuration
The plugin can be configured in the Settings tab:
- Cache Expiry: Time in minutes before the GitHub star count cache expires (default: 1440 minutes / 1 day)
- Number Format: Choose between full numbers (e.g., 1,234) or abbreviated format (e.g., 1.2k)
- GitHub API Token: Optional personal access token to increase the API rate limit from 60 to 5,000 requests per hour. To generate one:
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click "Generate new token"
- Give it a name and select the "public_repo" scope
- Click "Generate token"
- Copy the token and paste it in the plugin settings
💻 Commands
The plugin adds the following commands:
- Refresh for current note: Refreshes all GitHub star counts in the current note
- Clear cache: Clears the cached star counts
- Embed star counts in current note: Writes star counts (e.g.
⭐ 1.2k) directly into the markdown file after each GitHub link. Re-running updates existing counts. - Remove embedded star counts from current note: Strips all embedded star counts from the file
❤️ Support This Project
You can support this project in a few simple ways:
📄 License
MIT © Flying Nobita