Skip to content

jakub8/repo2text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ repo2text

repo2text is a browser-based tool that lets you:

  • Select folders and files from your local machine
  • Check the exact files or folders you want
  • Export the directory structure in a hierarchical format
  • Export the contents of selected files in code block format (Markdown style)

πŸ—„ Features

  • βœ… Lazy folder expansion (only expands when clicked)
  • βœ… Skip hidden folders like .venv, .git, etc.
  • βœ… Only export files you explicitly check
  • βœ… Prints folder hierarchy even if no files inside are selected
  • βœ… All in a single self-contained HTML file β€” no build step, no backend

πŸ”§ Usage

  1. Clone the repo or download index.html
  2. Run a local server (required due to browser file permissions):
# Python 3+
python -m http.server
  1. Open http://localhost:8000 in your browser
  2. Click "Choose Files" and select your folder (remember to enable folder selection)
  3. Expand folders, check what you want, and click "Export Selected"
  4. View the output in the text box below

πŸ’‘ Output Format

# Directory Structure
πŸ”” folder/
    πŸ”” subfolder/
        πŸ”” file.py

# Files
```folder/subfolder/file.py
<file content here>

---

### πŸšͺ Browser Compatibility

- Chrome / Edge βœ…
- Firefox ❌ (does not support `webkitdirectory`)
- Safari ❌

---

### πŸ›  Tech Stack

- HTML + Vanilla JS
- TailwindCSS CDN

---

### πŸ“‚ Folder Structure

repo2text/ πŸ”” index.html πŸ”” README.md


---

### πŸ“œ License

MIT β€” use it, fork it, hack it ✌️

---

### ✨ Future Ideas

- [ ] Download output as `.txt`
- [ ] Filter by file extension
- [ ] β€œSelect all children” option
- [ ] Keyboard shortcuts (expand/collapse all)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages