head to head · open source
repomix vs code2prompt
repomix has 28,393 GitHub stars, 1,528 forks, 138 open issues and last shipped 5 days ago. code2prompt has 7,657 stars, 438 forks, 16 open issues and last shipped 7 days ago. repomix leads on adoption by 271% (28,393 vs 7,657 stars). repomix is written in TypeScript under MIT; code2prompt is written in Rust under MIT. repomix has attracted 5% as many forks as stars, code2prompt 6%. repomix was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 4 topic tags (ai, chatgpt, claude, gpt), so they are genuine substitutes rather than adjacent tools.
Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.
← all 13541 open source comparisons
Side by side
| repomix | code2prompt | |
|---|---|---|
| GitHub stars | ★ 28K | ★ 7.7K |
| License | MIT | MIT |
| Written in | TypeScript | Rust |
| Last push | 2026-09-13 | 2026-09-11 |
| Forks | ⑂ 1.5K | ⑂ 438 |
| Self-hosting | Yes | Yes |
| Data ownership | Your server | Your server |
pick repomix if
- You weight community size — 28K stars and counting
- You want the MIT license terms
- Your stack matches TypeScript
- You value the larger contributor base for long-term maintenance
pick code2prompt if
- You want the code2prompt feature set and don't need the biggest community
- You prefer the MIT license terms
- Your stack matches Rust
- You evaluated both and code2prompt fits your workflow better
About repomix
Repomix is an MIT licensed TypeScript tool that packs an entire repository into a single AI friendly file, built for developers who need to feed a whole codebase to large language models such as Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, or Grok.
read the full repomix overview →
About code2prompt
code2prompt is a Rust command line tool, also shipped as a Python SDK and an MCP server, that ingests a codebase and formats it into a single LLM prompt with a source tree, prompt templating, and token counting, for developers and agent builders who need to hand repository context to ChatGPT, Claude, or GPT.
read the full code2prompt overview →
More in AI & Machine Learning
Related comparisons
More AI Interaction & Interfaces projects
Compare either of these against the rest of the AI Interaction & Interfaces field.
Frequently asked questions
Is repomix or code2prompt more popular?
repomix has 28,393 GitHub stars and code2prompt has 7,657. repomix has the larger community by that measure.
Are repomix and code2prompt free?
Both are open source. repomix is licensed under MIT and code2prompt under MIT. Neither carries a licence fee.
What is the difference between repomix and code2prompt?
repomix is written in TypeScript and code2prompt in Rust. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.
Which should I choose, repomix or code2prompt?
Choose repomix if you want the larger community (28,393 stars) or its MIT licence terms. Choose code2prompt if its feature set, stack or MIT licence fits better. Both are self-hostable.