Interactive Jupyter notebook for browsing, filtering, curating, and opening your GitHub starred repositories.
This project is licensed under the MIT License. See LICENSE.
- Python 3.10+
- A GitHub token in
GITHUB_TOKEN - Jupyter Notebook or VS Code with notebook support
- Sign in to GitHub.
- Open Personal access tokens.
- Click
Generate new token. - Choose either
Fine-grained tokenorTokens (classic). - For simple use, a classic token is usually easier.
- Give it a name like
GitStars. - Choose an expiration date.
- For public starred repos, give it enough access to read your GitHub account data. If you need private repository access, use a token with broader repo read permissions.
- Copy the token when GitHub shows it.
Important:
- Keep the token private.
- Do not commit the token into this repository.
- If a token is exposed, revoke it in GitHub and create a new one.
- Never paste your GitHub token into the notebook or any tracked file.
- Prefer setting
GITHUB_TOKENonly in your current shell session. - If you accidentally expose a token in code, screenshots, or Git history, revoke it immediately and generate a new one.
- Before pushing this repo to GitHub, review files for secrets.
- If you share downloaded files or saved README files, they should contain repository data only and never your token.
Set the token in your shell before opening the notebook.
PowerShell:
$env:GITHUB_TOKEN="ghp_your_token_here"Command Prompt:
set GITHUB_TOKEN=ghp_your_token_hereTo check that the token is set:
PowerShell:
echo $env:GITHUB_TOKENCommand Prompt:
echo %GITHUB_TOKEN%Open GitStars.ipynb in Jupyter or VS Code.
PowerShell:
cd C:\Users\chich\Downloads\GitStars
jupyter notebookThen open GitStars.ipynb, set your filters in the first cells, and run the notebook from top to bottom.
The notebook lets you:
- list and filter starred repos interactively
- preview a repo README inside the notebook
- open a repo in the browser
- save the README locally
- download the repo as a ZIP
- clone the repo locally
Open the notebook in VS Code:
code C:\Users\chich\Downloads\GitStars\GitStars.ipynbOpen the whole project folder:
code C:\Users\chich\Downloads\GitStarsIf you want to inspect the raw notebook JSON in PowerShell:
Get-Content C:\Users\chich\Downloads\GitStars\GitStars.ipynbIf you want the notebook UI instead of raw JSON, open it in VS Code or Jupyter.
- Set
GITHUB_TOKENin PowerShell or Command Prompt. - Open GitStars.ipynb.
- Run the setup cells.
- Adjust
QUERY,LANGUAGE,MIN_STARS,SORT_BY, andTOP_N. - Pick a repo from the curated results.
- Preview the README, open it in your browser, download it, or clone it.
downloads/: ZIP files downloaded from GitHubclones/: repositories cloned locally*-README.md: README files saved from selected repos