readmerator
Supercharge your AI coding assistant with instant access to all your dependency documentation.
Fetch and cache README files for Python and npm dependencies, making them instantly available to AI assistants like Amazon Q, GitHub Copilot, and Cursor.
Why?
AI coding assistants are powerful, but they don't automatically know about the packages you're using. You end up:
- Manually looking up documentation
- Copy-pasting docs into context
- Getting generic answers instead of package-specific help
readmerator solves this by automatically fetching all your dependency READMEs into a local folder that your AI can reference.
Installation
pip install readmerator
Quick Start
# In your project directory
readmerator
# Then in your AI assistant
@folder .ai-docs
That's it! Your AI now has full context on all your dependencies.
How It Works
- Finds all your dependency files recursively (Python:
requirements.txt,pyproject.toml, etc. | npm:package.json) - Fetches README files from PyPI, npm registry, and GitHub for each package
- Saves them to
.ai-docs/python/and.ai-docs/npm/with metadata headers - You reference the folder in your AI assistant
Usage
Basic
readmerator
With Options
# Custom output directory
readmerator --output-dir docs/packages
# Specify a specific requirements file
readmerator --source requirements.txt
# Verbose output (shows source: PyPI vs GitHub vs npm)
readmerator --verbose
# Only scan root directory (no subdirectories)
readmerator --no-recursive
# Limit recursion depth
readmerator --max-depth 2
# Fetch README from a custom URL
readmerator --url https://github.com/pallets/flask --name flask-docs
# Fetch from PyPI
readmerator --url https://pypi.org/project/requests
# Fetch from npm
readmerator --url https://www.npmjs.com/package/react
Supported Formats
Python:
requirements.txtpyproject.toml(PEP 621 and Poetry)setup.pysetup.cfgPipfile(Pipenv)environment.yml(Conda)
npm:
package.json(dependencies + devDependencies)
Example Output
$ readmerator --verbose
Found 25 packages
Python: 15 packages
npm: 10 packages
Fetching READMEs to .ai-docs/
Fetching flask...
✓ flask: Saved (12453 bytes) from PyPI
Fetching react...
✓ react: Saved (8234 bytes) from npm
Fetching fastapi...
✓ fastapi: Saved (23891 bytes) from GitHub
...
Python:
✓ Successfully fetched: 14
✗ Failed: 1
Failed packages: private-internal-package
npm:
✓ Successfully fetched: 10
READMEs saved to .ai-docs/
Use '@folder .ai-docs' in your AI assistant to include documentation
Output Format
Packages are organized by ecosystem:
.ai-docs/
├── python/
│ ├── flask.md
│ ├── requests.md
│ └── ...
└── npm/
├── react.md
├── lodash.md
└── ...
Each package gets a markdown file with metadata:
---
Package: requests
Version: 2.32.5
Source: https://github.com/psf/requests
Fetched: 2024-01-15 10:30:00
---
# Requests
**Requests** is a simple, yet elegant, HTTP library.
...
Features
- Multi-Language Support: Python (PyPI) and npm packages
- Recursive Scanning: Finds dependencies in subdirectories (monorepos, nested projects)
- Multi-Format Support: Automatically detects all common Python and npm dependency formats
- Custom URLs: Fetch READMEs from PyPI, npm, GitHub, or any URL
- Smart Fetching: Tries PyPI/npm first, falls back to GitHub
- Fast: Async/concurrent fetching
- Reliable: Graceful error handling for missing packages
- Informative: Progress indicators and detailed verbose mode
- Lightweight: Minimal dependencies (just aiohttp)
AI Assistant Integration
Amazon Q
@folder .ai-docs
GitHub Copilot
#file:.ai-docs/*
Cursor
@Docs .ai-docs
Requirements
- Python 3.8+
- aiohttp
- tomli (for Python < 3.11)
Contributing
Contributions welcome! Feel free to open issues or PRs on GitHub.
License
MIT © Arved Klöhn
Metadata
Release files for readmerator 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| readmerator-0.1.5.tar.gz | 12.4 kB | Without provenance | Details for readmerator-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| readmerator-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for readmerator-0.1.5-py3-none-any.whl |
Total release size: 23.4 kB
Release files / readmerator-0.1.5.tar.gz
| Download URL | readmerator-0.1.5.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f331056936323f0d49e0a5434ca5be2096f21c1242afc884dba8517329b8ba1
|
|
BLAKE2b-256 checksum How to use checksums |
6213030a4d49a7042a0ccc3c32aea11d3bb1f813d776318de6e9373fd5b589e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / readmerator-0.1.5-py3-none-any.whl
| Download URL | readmerator-0.1.5-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22fdfcf59b066ead3f3ccf331cfb0a7aacc8ff9e2b625dbe41658a17d780186b
|
|
BLAKE2b-256 checksum How to use checksums |
9e0328a9110c18b0df0ab52db2064608cb0db0afe9481cf546cb5e570c5f7729
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for readmerator 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.