head to head · open source
graphify vs code2prompt
graphify has 119,123 GitHub stars, 11,519 forks, 1,350 open issues and last shipped 2 days ago. code2prompt has 7,657 stars, 438 forks, 16 open issues and last shipped 7 days ago. graphify leads on adoption by 1,456% (119,123 vs 7,657 stars). graphify is written in Python under Apache-2.0; code2prompt is written in Rust under MIT. graphify has attracted 10% as many forks as stars, code2prompt 6%. graphify was the more recently maintained of the two, and both are self-hostable with no licence fee.
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 8884 open source comparisons
Side by side
| graphify | code2prompt | |
|---|---|---|
| GitHub stars | ★ 119K | ★ 7.7K |
| License | Apache-2.0 | MIT |
| Written in | Python | Rust |
| Last push | 2026-09-16 | 2026-09-11 |
| Forks | ⑂ 12K | ⑂ 438 |
| Self-hosting | Yes | Yes |
| Data ownership | Your server | Your server |
pick graphify if
- You weight community size — 119K stars and counting
- You want the Apache-2.0 license terms
- Your stack matches Python
- 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 graphify
graphify is an Apache 2.0 Python CLI and /graphify skill that turns a whole project — code, docs, SQL schemas, configs, PDFs, images, and video — into a queryable knowledge graph, built for developers and AI agent users in Claude Code, Cursor, Codex, and Gemini CLI who want to query a codebase instead of grepping through files.
read the full graphify 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 Development Platforms projects
Compare either of these against the rest of the AI Development Platforms field.
Frequently asked questions
Is graphify or code2prompt more popular?
graphify has 119,123 GitHub stars and code2prompt has 7,657. graphify has the larger community by that measure.
Are graphify and code2prompt free?
Both are open source. graphify is licensed under Apache-2.0 and code2prompt under MIT. Neither carries a licence fee.
What is the difference between graphify and code2prompt?
graphify is written in Python 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, graphify or code2prompt?
Choose graphify if you want the larger community (119,123 stars) or its Apache-2.0 licence terms. Choose code2prompt if its feature set, stack or MIT licence fits better. Both are self-hostable.