https://github.com/0xibra/promptlab
Desktop app for crafting code-based prompts for LLMs. Select files, add instructions, track tokens.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.4%) to scientific vocabulary
Keywords
Repository
Desktop app for crafting code-based prompts for LLMs. Select files, add instructions, track tokens.
Basic Info
Statistics
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 11
Topics
Metadata Files
README.md
PromptLab
A powerful desktop laboratory for crafting code-based prompts for LLMs. Allows users to quickly inject their code and craft a prompt with parseable xml format response. Works best with reasoning models.
⚠️ Note: This is an experimental project and may have compatibility issues on some operating systems. Provided "as is" without any warranties.

Features
- 🧪 Transform your code into perfect LLM prompts
- 📁 Open and analyze any code repository
- 🔍 Select specific files or entire directories
- 🚫 Customizable ignore patterns with regex support
- 📝 Add custom instructions and save templates
- 🌳 Generate textual file tree visualization
- 📋 Copy formatted output to clipboard
- 🔢 Automatic token counting for LLM context limits
- 🔄 Apply code changes from XML responses
- 📑 Template management with default XML response format
- 🎯 Smart file filtering with search functionality
- 👀 Built-in file viewer for code inspection
Installation
Linux
Download the latest .AppImage or .deb file from the releases page.
AppImage
bash
chmod +x PromptLab-*.AppImage
./PromptLab-*.AppImage
Debian/Ubuntu
bash
sudo dpkg -i promptlab_*.deb
Windows
Download and run the latest .exe installer from the releases page.
macOS
Download and install the latest .dmg file from the releases page.
Note for macOS Users
Since the app is not notarized with Apple, you'll need to follow these steps to run it:
- After downloading the
.dmgfile, double-click to mount it - Drag the PromptLab app to your Applications folder
- Open Terminal and run the following command:
bash xattr -r -d com.apple.quarantine "/Applications/PromptLab.app"
Why is this necessary? macOS adds a quarantine attribute to applications downloaded from the internet as a security measure. Since PromptLab is not notarized with Apple (which requires an Apple Developer account), we need to manually remove this attribute. This command essentially tells macOS that you trust this application.
⚠️ Only run this command for applications you trust and have downloaded from a reliable source.
After running the command, you can open PromptLab normally from your Applications folder. This process only needs to be done once after installation.
Development
Prerequisites
- Node.js 16+
- npm or yarn
Setup
Clone the repository
bash git clone https://github.com/0xIbra/promptlab.git cd promptlabInstall dependencies
bash npm installStart development server
bash npm run dev
Building
```bash
Build for production
npm run build
Create distributable
npm run dist ```
Creating Releases
- Update version in
package.json - Create and push a new tag:
bash git tag v0.1.1 git push origin v0.1.1
This will trigger the GitHub Actions workflow that: - Builds the app for Linux, Windows, and macOS - Creates a new GitHub release - Uploads all build artifacts to the release
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built with Electron
- UI powered by React and Tailwind CSS
- Token counting by gpt-tokenizer
Owner
- Name: Ibra
- Login: 0xIbra
- Kind: user
- Location: Toulouse, France
- Company: Digital Dealer Factory
- Website: https://www.ibragim.fr
- Twitter: ibra_akv
- Repositories: 4
- Profile: https://github.com/0xIbra
Just another guy who's passionate and curious about tech, a guy who likes to learn by creating something of use.
GitHub Events
Total
- Release event: 8
- Watch event: 1
- Delete event: 1
- Public event: 1
- Push event: 22
- Create event: 9
Last Year
- Release event: 8
- Watch event: 1
- Delete event: 1
- Public event: 1
- Push event: 22
- Create event: 9
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v4 composite
- actions/setup-node v4 composite
- softprops/action-gh-release v1 composite
- 539 dependencies
- @babel/core ^7.22.9 development
- @babel/preset-react ^7.22.5 development
- @electron/remote ^2.1.2 development
- autoprefixer ^10.4.14 development
- babel-loader ^9.1.3 development
- concurrently ^8.2.0 development
- css-loader ^6.8.1 development
- electron ^25.3.0 development
- electron-builder ^24.6.4 development
- postcss ^8.4.27 development
- postcss-loader ^7.3.3 development
- style-loader ^3.3.3 development
- tailwindcss ^3.3.3 development
- webpack ^5.88.2 development
- webpack-cli ^5.1.4 development
- @electron/remote ^2.0.10
- @heroicons/react ^2.0.18
- electron-log ^4.4.8
- electron-store ^8.1.0
- electron-updater ^6.1.4
- glob ^10.3.3
- gpt-tokenizer ^2.1.2
- react ^18.2.0
- react-dom ^18.2.0