New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

promptex

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promptex

A localhost Web UI to visualize and bundle local files for LLM context.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Promptex 🚀

Turn your local codebase into LLM-ready context in seconds.

npm version License: MIT Node.js

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_modules and .git automatically.
  • 🔗 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 promptex

Your dashboard opens at: http://localhost:3456

Global Installation (Optional)

npm install -g promptex

Then run:

promptex

🛠 Usage & Options

Start Normally

promptex

Custom Port

promptex -p 8080

Headless (No Browser Auto-Open)

promptex --no-open

Help

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.
  • 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 promptex

Or 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

Keywords

llm

FAQs

Package last updated on 20 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts