GitHub Stars

by Flying Nobita
5
4
3
2
1
Score: 55/100

Description

Category: 3rd Party Integrations

The GitHub Stars plugin enhances your Obsidian notes by displaying star counts next to GitHub repository links. It automatically detects GitHub URLs and appends a visual indicator showing how many users have starred each project, offering a quick sense of popularity or relevance. The display can be customized in terms of format and number style, and the plugin caches star data to reduce API calls.

Reviews

No reviews yet.

Stats

5
stars
452
downloads
0
forks
401
days
43
days
44
days
4
total PRs
0
open PRs
0
closed PRs
4
merged PRs
3
total issues
0
open issues
3
closed issues
0
commits

Latest Version

a month ago

Changelog

Release 1.5.1 updates the repository tooling and package management setup without changing plugin behavior.

Major changes:

  • align package tooling with the current official Obsidian sample plugin
  • standardize the repository on pnpm and remove package-lock.json
  • add flat ESLint configuration and repo-local pnpm build approval
  • pin CodeMirror packages to Obsidian peer versions for cleaner installs

README file from

Github

GitHub Stars Plugin

License Version Obsidian Downloads

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:

Obsidian GitHub Stars Plugin Screenshot
Star counts displayed inline next to GitHub repository links in Reading View.

📦 Installation

  1. Open Obsidian SettingsCommunity plugins
  2. Disable Safe mode if prompted
  3. Click Browse and search for "GitHub Stars"
  4. 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:
    1. Go to GitHub Settings > Developer settings > Personal access tokens
    2. Create a fine-grained personal access token or a classic token with access suitable for public repository metadata
    3. Give it a name and ensure it can access public repository metadata
    4. Click "Generate token"
    5. Copy the token and paste it in the plugin settings
  • Update embedded stars on refresh: Enabled by default. When enabled, refreshing updates the star count written in the Markdown file next to a GitHub URL.
  • Show token warnings on refresh: Enabled by default. When enabled, the plugin warns during manual refresh if the GitHub token is missing or invalid.

🔄 Refresh And Cache Behavior

  • Rendering in Reading View and Live Preview uses cached star counts when the cache entry is still fresh.
  • Cache expiry is lazy. When a cache entry expires, the plugin fetches new data the next time that repository is looked up. Expiry does not trigger a background refresh on its own.
  • Refresh for current note is stronger than normal rendering. It fetches fresh star counts from GitHub for every repository in the active note even if those cache entries are still valid.
  • If Update embedded stars on refresh is disabled, embedded star text is left unchanged and may show an older value than the refreshed star count.

💻 Commands

The plugin adds the following commands:

  • Refresh for current note: Fetches fresh star counts from GitHub for all repositories in the current note and rerenders the note. If Update embedded stars on refresh is enabled, it also updates already-embedded star text.
  • Refresh for all notes: Fetches fresh star counts from GitHub for repositories found across your entire vault. Duplicate repository links are deduplicated so each repository is fetched once per run. If Update embedded stars on refresh is enabled, embedded star text is updated across notes.
  • 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.
  • Embed star counts in all notes: Writes or updates embedded star counts in every markdown note in the vault.
  • Remove embedded star counts from current note: Strips all embedded star counts from the file
  • Remove embedded star counts from all notes: Removes embedded star counts from every markdown note in the vault.

🧪 Development

  • pnpm test: Runs the unit tests with Vitest
  • pnpm build: Type-checks and builds the plugin bundle

❤️ Support This Project

You can support this project in a few simple ways:

📄 License

MIT © Flying Nobita

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Fit
2 years ago by joshuakto
File gIT (FIT) to sync your files across mobile and desktop devices using GitHub.
Enveloppe
4 years ago by Mara-Li
Enveloppe helps you to publish your notes on a GitHub repository from your Obsidian Vault, for free!
Github Copilot
2 years ago by Vasseur Pierre-Adrien
A bridge between Obsidian and Github Copilot
GitHub Sync
2 years ago by Kevin Chin
Sync Obsidian vault to personal GitHub
GitHub Gitless Sync
a year ago by Silvano Cerza
Sync a GitHub repository with vaults on different platforms without requiring git installation
Gist
5 years ago by Jun Lin
📒 Gist View for Obsidian(https://obsidian.md)
GitHobs
2 years ago by GabAlpha and MarcoG
Use Obsidian as Github issue editor! A simple plugin to create Github issues directly from Obsidian with logic taken from Git
Share as Gist
4 years ago by timrogers
An Obsidian (https://obsidian.md/) plugin for sharing your notes as a GitHub gist - either privately or publicly.
GitHub Embeds
3 years ago by Gino Valente
Embed GitHub issues, PRs, and code snippets directly in Obsidian
Publish and GitHub URL
4 years ago by kometenstaub
Copy or open the Obsidian Publish URL of a note. You can also open its Git commit history on GitHub.
Emo
3 years ago by yaleiyale
Use image/file hosting in Obsidian by clipboard or draging file. Obsidian 图床聚合 & Github上传器
GitHub Link
2 years ago by Nathonius
Save as Gist
4 years ago by ghedamat
GitHub Issue Augmentation
3 years ago by samprintz
Gistr
2 years ago by Aetherinox
Obsidian.md plugin which allows you to use your notes to embed, create, and update gists for Github and Opengist. Light & dark theme support, create / update public & private gists either manually or with autosave.
GitHub Integration
a year ago by Kirill Zhuravlev
Plugin that fetch your github stars into notes
Github Issues
10 months ago by LonoxX
An Obsidian plugin that integrates with GitHub to track issues and pull requests directly in your vault.
Import GitHub Readme
2 years ago by Chasebank87
Vault to blog
2 years ago by barkstone2
Automation tool of making react SPA blog by obsidian vault.
NotePix
8 months ago by Ayush Parkara
NotePix automatically uploads images, screenshots from your Obsidian vault to a designated GitHub repository. It then seamlessly replaces the local link with a fast URL, keeping your vault lightweight and portable.
Open in GitHub
a year ago by Muurphy Chen
This is an Obsidian plugin designed to open project or files directly in GitHub via your browser.
GitHub Tasks
8 months ago by Mike Thicke
Obsidian plugin to sync GitHub issues and PRs to Obsidian TODOs
GitHub Tracker
a year ago by schaier-io
GH Links Shortener
6 months ago by David Barnett
Obsidian plugin to set shortened link text for pasted GitHub URLs