A filesystem inode analyzer that generates Mermaid diagrams showing directory structure with detailed inode information.
InodeGo recursively analyzes a directory structure and extracts low-level filesystem metadata (inodes) to create visual diagrams. It shows:
- Inode numbers and device IDs
 - File permissions (in octal format)
 - File sizes and block allocation
 - Hard link detection
 - UID/GID ownership
 - File types (directory, regular file, symlink, pipe, socket, device)
 
go build -o inodego main.go# Analyze current directory and print diagram to stdout
./inodego -stdout
# Analyze specific directory with custom depth
./inodego -stdout -max-depth 2 /path/to/directory
# Save diagram to file
./inodego -save
# Show filesystem statistics
./inodego -stats
# Combine options
./inodego -stdout -stats -max-depth 3 /path/to/directory-stdout- Print Mermaid diagram to stdout-save- Save diagram toinode_diagram.mmdfile-stats- Display filesystem statistics-max-depth N- Maximum recursion depth (default: 3)
The tool generates a Mermaid class diagram that can be rendered using Mermaid-compatible tools. Each node in the diagram represents a file or directory with its complete inode information.
Hard links are automatically detected and shown with dotted arrows.
./inodego -stdout -max-depth 2 . > diagram.mmdThen render the .mmd file using any Mermaid renderer (GitHub, Mermaid Live Editor, etc.).