Show HN: ReProm – CLI to bundle code and structure into one Markdown for AI
(github.com)4 points by ngkw 4 hours ago
Hi HN,
I built *ReProm* ([GitHub](https://github.com/keisukenagakawa/reprom)) as a simple command-line tool for anyone who’s ever needed to share a bunch of files (and their folder structure) with AI tools like ChatGPT. It automatically scans the folders you specify, grabs all your target files, and merges them into one Markdown file — complete with a directory tree and the file contents. You can also copy it into clipboard.
*Motivation*: - Tired of copy-pasting entire file contents into chat windows - Wanted a single Markdown “package” that included both an overview and the code - Simplify debugging or code review with AI by providing it all at once
*Key Features*: - *Directory Tree*: Generates a `tree`-like overview - *File Contents*: Collects file content into one Markdown - *Pre/Post-Text*: Optional sections for custom notes or instructions - *Multiple Configs*: Switch configurations easily in a single YAML file - *Output*: Save to a file or copy Markdown directly to the clipboard - *Written in TypeScript*, published under MIT
*Usage*: ```bash npm install --save-dev reprom npx reprom --config=reprom.config.yaml --name=yourConfig ``` Or configure a script in `package.json` for repeated use.
*Demo*: It exports something like:
1. Custom “preText” 2. Directory structure 3. Individual file contents in code blocks 4. Custom “postText” 5. Usage statistics (character count)
*Repo*: [GitHub – keisukenagakawa/reprom](https://github.com/keisukenagakawa/reprom)
Would love feedback, suggestions, or contributions. Thanks for checking it out!