The Problem
You're about to paste code into ChatGPT, Claude, or Gemini. But your project has:
- 20+ files
- Nested folders
- Complex logic spread everywhere
Do you paste one file at a time?
Do you explain the folder structure manually?
Do you hope the AI understands how everything connects?
There's a better way.
Meet repomeld ๐ฅ
repomeld combines your entire repository into a single, well-formatted file โ perfect for:
- ๐ค AI context injection โ Paste once, get better answers
- ๐ฅ Code reviews โ Share everything in one go
- ๐ Documentation โ Generate readable snapshots
- ๐พ Archiving โ Preserve project state
Quick Demo
# Install globally
npm install -g repomeld
# Navigate to your project
cd your-awesome-project
# Run repomeld
repomeld
That's it. You'll get a repomeld_output.txt file containing:
# Generated by repomeld v1.0.0
# Date : 2024-01-15T10:30:00.000Z
# Source : /your-awesome-project
# Files : 24
# Lines : 1842
TABLE OF CONTENTS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. src/index.ts
2. src/utils/helpers.ts
3. src/components/Button.tsx
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
FILE: src/index.ts [127 lines | 3.2 KB | typescript]
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Your actual code here...
Why repomeld?
| Feature | repomeld | Manual copy-paste |
|---|---|---|
| Table of contents | โ Auto-generated | โ Manual work |
| File metadata (lines, size) | โ Included | โ Not included |
| Binary file filtering | โ Smart skip | โ Messy output |
| Large file limits | โ Configurable | โ Paste bombs |
| Multiple output styles | โ 3 styles | โ Plain text only |
| Dry-run preview | โ Yes | โ No |
Advanced Usage
1. Focus on specific file types
# Only JS/TS files
repomeld --ext js ts jsx tsx
# Only files in src/
repomeld --include src/
2. Exclude what you don't need
# Skip test files and large folders
repomeld --exclude test spec __tests__ --ignore dist .next
3. Markdown output (great for AI prompts)
repomeld --style markdown --output context.md
This creates beautifully formatted markdown:
## ๐ src/index.ts [127 lines | 3.2 KB | typescript]
```
typescript
// Your code here
```
```
`
### 4. Minimal style for quick sharing
```bash
repomeld --style minimal --no-toc
```
### 5. Preview without generating a file
```bash
repomeld --dry-run
# Shows: Would include 42 files (1.2 MB total)
```
### 6. Trim whitespace & skip lines
```bash
# Clean up files and remove headers/footers
repomeld --trim --lines-before 5 --lines-after 5
```
---
## What repomeld Auto-Ignores (So You Don't Have To)
- `node_modules/`, `.git/`, `dist/`, `build/`
- `.env`, `package-lock.json`, `yarn.lock`
- Binary files (images, executables)
- The output file itself (no infinite recursion!)
---
## Real-World Use Cases
### ๐ค **AI Code Assistant**
```bash
repomeld --style markdown --output ai_context.md
# Paste entire file โ Ask "Add error handling to all functions"
# AI sees EVERYTHING. Gets EVERYTHING right.
```
### ๐ฅ **Code Review on Slack/Discord**
```bash
repomeld --style minimal --no-toc --output review.txt
# Share one file. Reviewers scroll once.
```
### ๐ฆ **Project Archiving**
```bash
repomeld --output archive_2024_01_15.txt
# Snapshot your entire codebase before major refactor
```
### ๐ **Bug Reproduction**
```bash
repomeld --include src/ --exclude test --output bug_context.txt
# Attach to GitHub issue. No more "can you share more files?"
```
---
## Performance & Limits
- **Default max file size**: 500 KB (configurable)
- **Binary files**: Auto-skipped
- **Large repos**: Tested on 10k+ file projects
```bash
# Increase limit to 2 MB per file
repomeld --max-size 2000
```
---
## Installation Options
```bash
# Global install (recommended)
npm install -g repomeld
# Or run without installing
npx repomeld
```
---
## What Developers Are Saying
> "Finally, a tool that understands how developers actually use AI. repomeld saved me hours of manual file copying."
> *โ Senior Dev at SaaS startup*
> "The markdown output is *chef's kiss*. My AI coding sessions are 10x more productive now."
> *โ Open Source Contributor*
---
## Roadmap
- [ ] `.repomeldignore` file support
- [ ] ZIP output option
- [ ] Tree view visualization
- [ ] Git diff integration (only changed files)
- [ ] VS Code extension
---
## Contribute & Feedback
- ๐ **Issues**: [GitHub Issues](https://github.com/yourusername/repomeld/issues)
- ๐ก **Ideas**: Open a discussion
- โญ **Love it?**: Star the repo
---
## License
MIT โ Use it anywhere, for anything.
---
## Get Started Now
```bash
npm install -g repomeld
cd your-project
repomeld
```
**That's 3 commands. Your entire codebase. One file. ๐ฅ**
---
*Made for developers who talk to AI. Built with TypeScript. Works everywhere Node.js runs.*
---
## Tips for publishing on dev.to:
1. **Add a cover image** โ Create a simple banner with "repomeld ๐ฅ" and "Meld your entire repo into a single file"
2. **Use the canonical URL** โ Link back to your GitHub repo
3. **Add tags**: `showdev`, `javascript`, `productivity`, `opensource`
4. **Include a "Try it now" button** โ Use dev.to's button feature if available
5. **Embed a demo GIF** โ Show repomeld in action (record terminal session)
6. **Cross-post** โ Share on Twitter, LinkedIn, Reddit r/node, r/programming
The article is conversational, benefit-focused, and shows real value immediately โ perfect for dev.to's audience! ๐
Top comments (0)