promptex
v1.0.1
Published
A localhost Web UI to visualize and bundle local files for LLM context.
Downloads
12
Maintainers
Readme
Promptex 🚀
Turn your local codebase into LLM-ready context in seconds.
Promptex is a zero-config, localhost web interface that helps you select, visualize, and bundle your code files for Large Language Models (Claude, ChatGPT, DeepSeek).
It solves the copy-paste fatigue by providing a clean "Switchboard" UI to toggle files, estimate tokens, and format everything into a single prompt.
✨ Features
- 📂 Visual File Picker — Recursively scans your directory, ignoring
node_modulesand.gitautomatically. - 🔗 Linked Mode (Auto-Resolve) — Click one file and it auto-selects all its imports.
- ⚡ Minify Mode — Removes comments and whitespace to shrink tokens.
- 🛑 Smart .gitignore — Respects your project's existing ignore rules.
- 💾 Presets — Save groups like Auth Stack, DB Schema, etc.
- 💲 Cost Estimator — Live token + price estimation for GPT-4o / Claude Sonnet.
- 🔒 Secure & Local — Runs only on your machine; nothing is uploaded.
🚀 Quick Start
You don't need to install anything. Just run it inside any project folder:
npx promptexYour dashboard opens at: http://localhost:3456
Global Installation (Optional)
npm install -g promptexThen run:
promptex🛠 Usage & Options
Start Normally
promptexCustom Port
promptex -p 8080Headless (No Browser Auto-Open)
promptex --no-openHelp
promptex --help💡 Pro Tips
Linked Mode saves time Select one file (like a React component) → Promptex auto-grabs all imported utilities and sub-components.
XML vs Markdown Output
- XML (
<file path="...">...</file>) is best for Claude. - Markdown (
```js) works well with ChatGPT.
- XML (
Use Presets Working on a big feature? Select the files → Name it in the header → Save Preset → Load anytime.
📦 Troubleshooting
Permission Denied on Linux/Mac?
Try:
sudo npx promptexOr fix global npm permissions (recommended).
Port Already in Use?
promptex -p 4000🤝 Contributing
- Fork the repo
- Create a branch
- Commit changes
- Open a Pull Request
📄 License
MIT © Vedant020000
