{"data":{"slug":"the-pocket-pocketflow-tutorial-codebase-knowledge","name":"PocketFlow-Tutorial-Codebase-Knowledge","tagline":"Pocket Flow: Codebase to Tutorial","github_url":"https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge","owner":"The-Pocket","repo":"PocketFlow-Tutorial-Codebase-Knowledge","owner_avatar_url":"https://avatars.githubusercontent.com/u/193350244?v=4","primary_language":"Python","stars":12422,"forks":1418,"topics":["coding","large-language-model","large-language-models","llm","llm-agent","llm-agents","llm-application","llm-apps","llm-framework","llm-frameworks","llms","pocket-flow","pocketflow"],"archived":false,"github_pushed_at":"2026-05-31T01:26:41+00:00","maintenance_label":"Steady","stars_delta_30d":null,"url":"https://www.graphcanon.com/tools/the-pocket-pocketflow-tutorial-codebase-knowledge","markdown_url":"https://www.graphcanon.com/tools/the-pocket-pocketflow-tutorial-codebase-knowledge.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/the-pocket-pocketflow-tutorial-codebase-knowledge","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=the-pocket-pocketflow-tutorial-codebase-knowledge","description":"Pocket Flow: Codebase to Tutorial","homepage_url":"https://code2tutorial.com/","license":"MIT","open_issues":75,"watchers":95,"ai_summary":"A tutorial project for Pocket Flow, a compact LLM framework aimed at converting complex codebases into beginner-friendly tutorials.","readme_excerpt":"<h1 align=\"center\">Turns Codebase into Easy Tutorial with AI</h1>\n\n\n <a href=\"https://discord.gg/hUHHE9Sa6T\">\n    <img src=\"https://img.shields.io/discord/1346833819172601907?logo=discord&style=flat\">\n</a>\n> *Ever stared at a new codebase written by others feeling completely lost? This tutorial shows you how to build an AI agent that analyzes GitHub repositories and creates beginner-friendly tutorials explaining exactly how the code works.*\n\n<p align=\"center\">\n  <img\n    src=\"./assets/banner.png\" width=\"800\"\n  />\n</p>\n\nThis is a tutorial project of [Pocket Flow](https://github.com/The-Pocket/PocketFlow), a 100-line LLM framework. It crawls GitHub repositories and builds a knowledge base from the code. It analyzes entire codebases to identify core abstractions and how they interact, and transforms complex code into beginner-friendly tutorials with clear visualizations.\n\n\n- Check out the [book \"Crack Any Codebase with AI\"](https://www.manning.com/books/crack-any-codebase-with-ai) for more! \n \n- Check out the [YouTube Development Tutorial](https://youtu.be/AFY67zOpbSo) for more!\n\n- Check out the [Substack Post Tutorial](https://zacharyhuang.substack.com/p/ai-codebase-knowledge-builder-full) for more!\n\n&nbsp;&nbsp;**🔸 🎉 Reached Hacker News Front Page** (April 2025) with >900 up‑votes:  [Discussion »](https://news.ycombinator.com/item?id=43739456)\n\n\n\n## ⭐ Example Results for Popular GitHub Repositories!\n\n<p align=\"center\">\n    <img\n      src=\"./assets/example.png\" width=\"600\"\n    />\n</p>\n\n🤯 All these tutorials are generated **entirely by AI** by crawling the GitHub repo!\n\n- [AutoGen Core](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/AutoGen%20Core) - Build AI teams that talk, think, and solve problems together like coworkers!\n\n- [Browser Use](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/Browser%20Use) - Let AI surf the web for you, clicking buttons and filling forms like a digital assistant!\n\n- [Celery](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/Celery) - Supercharge your app with background tasks that run while you sleep!\n\n- [Click](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/Click) - Turn Python functions into slick command-line tools with just a decorator!\n\n- [Codex](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/Codex) - Turn plain English into working code with this AI terminal wizard!\n\n- [Crawl4AI](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/Crawl4AI) - Train your AI to extract exactly what matters from any website!\n\n- [CrewAI](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/CrewAI) - Assemble a dream team of AI specialists to tackle impossible problems!\n\n- [DSPy](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/DSPy) - Build LLM apps like Lego blocks that optimize themselves!\n\n- [FastAPI](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/FastAPI) - Create APIs at lightning speed with automatic docs that clients will love!\n\n- [Flask](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/Flask) - Craft web apps with minimal code that scales from prototype to production!\n\n- [Google A2A](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/Google%20A2A) - The universal language that lets AI agents collaborate across borders!\n\n- [LangGraph](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/LangGraph) - Design AI agents as flowcharts where each step remembers what happened before!\n\n- [LevelDB](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/LevelDB) - Store data at warp speed with Google's engine that powers blockchains!\n\n- [MCP Python SDK](https://the-pocket.github.io/PocketFlow-Tutorial-Codebase-Knowledge/MCP%20Python%20SDK) - Build powerful apps that communicate through an elegant protocol without sweating the details!\n\n- [NumPy Core](https://the-pocket.github.io/Po","github_created_at":"2025-04-02T20:56:33+00:00","created_at":"2026-07-07T17:33:50.260884+00:00","updated_at":"2026-07-08T08:12:16.641263+00:00","categories":[{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"},{"slug":"ai-agents","name":"AI Agents","url":"https://www.graphcanon.com/categories/ai-agents","markdown_url":"https://www.graphcanon.com/categories/ai-agents.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/ai-agents"}],"tags":[{"slug":"llm-framework","name":"llm-framework"},{"slug":"large-language-model","name":"large-language-model"},{"slug":"codebase-analysis","name":"codebase-analysis"},{"slug":"coding","name":"coding"},{"slug":"tutorial-generation","name":"tutorial-generation"},{"slug":"knowledge-base-building","name":"knowledge-base-building"}],"trust":{"provenance":{"is_fork":false,"github_id":959473422,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-08T08:12:16.132Z","maintenance":{"label":"Steady","score":60,"methodology":"github_public_v1","days_since_push":38,"last_release_at":null,"stars_delta_30d":null,"open_issues_delta_30d":null},"security_summary":{"status":"not_scanned","scanner":null,"low_count":0,"high_count":0,"last_scan_at":null,"medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"deploy":{"source":"dockerfile:Dockerfile","self_host":true,"observed_at":"2026-07-08T08:12:16.575Z","managed_saas":false},"languages":{"value":["python"],"source":"github.language","observed_at":"2026-07-08T08:12:16.575Z"},"has_docker":{"value":true,"source":"dockerfile:Dockerfile","observed_at":"2026-07-08T08:12:16.575Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-07-08T08:12:16.575Z"}}}}