Skip to content

Generate markdown documentation for repositories

Notifications You must be signed in to change notification settings

linder3hs/flatrepo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlatRepo

A CLI tool for generating a full repository documentation into a single markdown file.

Very useful to load knowledge to your favorite AI Agent like Claude AI Projects or ChatGPT Context.

Installation

npm install -D flatrepo

Optional: You can set as script in your package.json

{
  "scripts": {
    "flatrepo": "flatrepo"
  }
}

Usage

  • Generate documentation in to default filename (flatrepo_YYYYMMDDHHIISS.md):
flatrepo
  • Generate documentation in to a custom filename:
flatrepo myrepo.md
  • Generate documentation including a description of binary files:
flatrepo myrepo.md --include-bin

Features

  • Generates markdown documentation of your repository
  • Includes YAML header with repository statistics
  • Ignore binary files (images, videos, zip, etc...)
    • Include with description
  • Respects .gitignore patterns
  • Supports multiple file types
  • Formats code blocks according to file type

About

Generate markdown documentation for repositories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.4%
  • JavaScript 15.6%