GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NicWeiss/PocketFlow-Tutorial-Codebase-Knowledge: Improved Flow Tutorial Project: Turns GitHub repo into Tutorial with AI

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

100 Commits
100 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
utils
utils
 
 
.clinerules
.clinerules
 
 
.cursorrules
.cursorrules
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.windsurfrules
.windsurfrules
 
 
CHANGES.MD
CHANGES.MD
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
flow.py
flow.py
 
 
main.py
main.py
 
 
nodes.py
nodes.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Turns Codebase into Easy Tutorial with AI

License: MIT

This is a tutorial project of Pocket Flow, 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.

⭐ Example Results for Popular GitHub Repositories!

🚀 Getting Started

  1. Clone this repository

  2. Install python 3.10 venv inside project folder:

     pyenv install 3.10
     pip install virtualenv
     virtualenv --python="~/.pyenv/versions/3.10/bin/python3.10" venv
     source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Copy example configuration for Google AI studio:

    cp .env_example .env

    If you need more settings, check /utils/settings.py

    • ollama settings
    • google project settings
    • ... and more
  5. Generate a complete codebase tutorial by running the main script:

    # Analyze a GitHub repository
    python main.py --repo https://github.com/username/repo --include "*.py" "*.js" --exclude "tests/*" --max-size 50000
    
    # Or, analyze a local directory
    python main.py --dir /path/to/your/codebase --include "*.py" --exclude "*test*"
    
    # Or, generate a tutorial in Chinese
    python main.py --repo https://github.com/username/repo --language "Chinese"
    • --repo or --dir - Specify either a GitHub repo URL or a local directory path (required, mutually exclusive)
    • -n, --name - Project name (optional, derived from URL/directory if omitted)
    • -t, --token - GitHub token (or set GITHUB_TOKEN environment variable)
    • -o, --output - Output directory (default: ./output)
    • -i, --include - Files to include (e.g., ".py" ".js")
    • -e, --exclude - Files to exclude (e.g., "tests/" "docs/")
    • -s, --max-size - Maximum file size in bytes (default: 100KB)
    • --language - Language for the generated tutorial (default: "russian")

The application will crawl the repository, analyze the codebase structure, generate tutorial content in the specified language, and save the output in the specified directory (default: ./output).

About

Improved Flow Tutorial Project: Turns GitHub repo into Tutorial with AI

the-pocket.github.io/Tutorial-Codebase-Knowledge/

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.