wrapr 0.2.3

wrap your code for ai
wrapr-0.2.3 is not a library.

Wrapr

█ █ █ █▀█ █▀█ █▀█ █▀█    C:\repo\wrapr
▀▄█▄█ █▀▄ █▀█ █▀▀ █▀▄     Files: 4   Tokens: 0.0k   Selected: 4 | 0.0k

│ FILES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  PREVIEW ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━               
├ ○ expanded folder                                                │ content of selected file or page  
│ ├─ main.rs  1234                                                 │         
│ ├─ ui.rs    567
│ └─ util.rs  890  
├─ ◌ collapsed folder with no files selected [empty circle gray] 
├─ ● collapsed folder with all files selected [green dot]
├─ ◌ collapsed folder with no files selected [empty circle]
├─ ○ collapsed folder with some files selected [yellow circle]
└─ README.md  45   

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Wrapr is a handy little tool for packaging up your code to share with LLMs like GPT or Claude. It helps format your files into Markdown so AI assistants can better understand your codebase.

What it does

  • Wraps code files in nice markdown format
  • Lets you pick files through a simple terminal UI
  • Adds proper syntax highlighting based on file extensions
  • Copies to clipboard so you can quickly paste into your AI chat
  • Skips the junk (node_modules, .git, binaries, etc.)
  • Keeps large files in check with optional token limits

Getting started

Install it

cargo install wrapr

Or build from source:

git clone https://github.com/incredimo/wrapr.git

cd wrapr

cargo build --release

Use it

Just run:

wrapr

This opens the interactive UI where you can:

  • Navigate with arrow keys
  • Select files with Space
  • Confirm with Enter
  • Quit with q

Command stuff

# Basic usage

wrapr


# Save to a file instead of clipboard

wrapr -o my_code.md


# Limit token count per file

wrapr --limit 1000


# Grab specific files

wrapr "src/**/*.rs" "*.toml"


# Show hidden files in UI

wrapr ui --all

Configuration

Wrapr creates a .wrapr file in your directory to remember your preferences. It automatically ignores common stuff you don't want like:

  • Version control folders
  • Package manager files
  • Build directories
  • Binary and media files
  • Lock files

How it works

  1. Pick some files
  2. Wrapr formats them with markdown code blocks
  3. Copy/paste into your LLM chat
  4. Ask better questions about your code

Output looks like this

# Repository Summary


## src/main.rs

```rust
fn main() {
    println!("Hello, world!");
}

---

Have fun wrapping! Questions or issues? Open an issue on the repo.