How racka98/flattenizer works
Flattenizer is a native desktop utility for selecting a folder tree, configuring flattening and ignore rules, previewing eligible files, and copying them to a clean output folder with path-derived sanitized names. The main runtime path is the GUI in src/main.rs building options and invoking the planner or runner in src/core.rs. Project settings are persisted as .flattenizerrc. A separate optional update path checks GitHub Releases, downloads an installer, and launches it. The sampled excerpts show the main call points; detailed internal traversal and GUI wiring is only partially sampled.
Main entry points: main.rs GUI and workflow · core.rs Copy execution · update.rs Release check
Components 14
Desktop interface
- GUI and workflow
src/main.rs - Folder picker
src/main.rs - Flatten settings
src/main.rs
Flattening engine
- Project config
src/core.rs - Traversal and filtering
src/core.rs - Filename generation
src/core.rs - Copy execution
src/core.rs
Update service
- Release check
src/update.rs - Installer download
src/update.rs - Installer launch
src/update.rs
Other components
- User
- Source folder tree
- Flattened output folder
- GitHub Releases
Connections 17
- User → GUI and workflow: operates
README.md - GUI and workflow → Folder picker: chooses folder
README.md - Folder picker → Source folder tree: selects
README.md - GUI and workflow → Flatten settings: configures
src/main.rs - Flatten settings → Project config: loads or saves
src/main.rs - Flatten settings → Traversal and filtering: previews via
src/main.rs - Flatten settings → Copy execution: runs via
src/main.rs - Traversal and filtering → Source folder tree: traverses
src/core.rs - Traversal and filtering → Filename generation: creates names
src/core.rs - Copy execution → Traversal and filtering: plans files
src/core.rs - Copy execution → Source folder tree: copies from
README.md - Copy execution → Flattened output folder: replaces and writes
README.md - GUI and workflow → Release check: starts check
src/main.rs - Release check → GitHub Releases: queries releases
src/update.rs - GUI and workflow → Installer download: requests download
src/main.rs - Installer download → GitHub Releases: fetches asset
src/update.rs - GUI and workflow → Installer launch: launches installer
src/main.rs