regenrek/codefetch

Turn code into Markdown for LLMs with one simple terminal command

62
/ 100
Established

Intelligently extracts and formats code files from repositories or local directories into structured Markdown, respecting .gitignore patterns and supporting GitHub/GitLab/Bitbucket. Includes token counting across multiple LLM encodings (GPT-4, Claude, o200k), smart filtering with glob patterns, and a direct "open" command that copies formatted code to clipboard and launches ChatGPT/Gemini/Claude in the browser. Built as both CLI and Node.js SDK with GitHub API integration for fast repo fetching and optional git clone fallback.

420 stars and 5,097 monthly downloads. Available on npm.

Maintenance 6 / 25
Adoption 19 / 25
Maturity 25 / 25
Community 12 / 25

How are scores calculated?

Stars

420

Forks

21

Language

TypeScript

License

MIT

Last pushed

Dec 07, 2025

Monthly downloads

5,097

Commits (30d)

0

Dependencies

7

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/regenrek/codefetch"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.