This repository maintains a regularly updated index of Figpack figure URLs used across public GitHub repositories. It helps track and discover where Figpack figures are being referenced in Markdown documentation.
The repository uses a GitHub Actions workflow to:
- Search public GitHub repositories for Markdown files containing Figpack URLs (
https://figures.figpack.org/) - Clone repositories and scan their Markdown files for Figpack references
- Generate a JSON file containing all found references
- Deploy the results to GitHub Pages
The data is updated daily and on each push to the main branch. You can also trigger the update manually from the Actions tab.
The data is available in two formats:
- Web Interface: Visit the GitHub Pages site for a user-friendly view
- JSON API: Access the raw data at
https://magland.github.io/figpack-url-refs/figpack-url-refs.json
The JSON data structure:
[
{
"repo": "owner/name",
"file": "relative/path/to/file.md",
"url": "https://figures.figpack.org/..."
}
]- Python 3.x
- Git
- GitHub Personal Access Token (for higher API rate limits)
-
Clone the repository:
git clone https://github.com/magland/figpack-url-refs.git cd figpack-url-refs -
Install dependencies:
pip install requests
-
Run the script:
python find_figpack_urls.py
Optional environment variables:
GITHUB_TOKEN: GitHub Personal Access Token for higher API rate limits
python find_figpack_urls.py [options]
Options:
--out Output JSON file path (default: figpack-url-refs.json)
--workdir Working directory to clone repositories (default: ./_repos)
--max-pages Max pages to fetch from GitHub code search (default: 10)
--per-page Items per search page, max 100 (default: 100)
--max-workers Number of parallel workers for cloning/scanning (default: 8)MIT