PromptLib is a powerful Visual Studio Code extension that helps you manage, organize, and share AI prompts directly within your development environment. Whether you're working with ChatGPT, Claude, or other AI tools, PromptLib streamlines your workflow by providing quick access to your prompt library.
✨ Features
🎯 Quick Prompt Insertion
Command Palette Integration: Use Insert Prompt from Prompt Lib command to quickly insert prompts into any file
Smart Snippet Support: Prompts are inserted as VS Code snippets with proper formatting
Active Editor Integration: Seamlessly insert prompts into your current cursor position
📚 Centralized Prompt Library
Cloud Synchronization: Connect to your PromptLib account to access your prompts from anywhere
Real-time Updates: Your prompt library stays synchronized across all your devices
Organized Collections: Browse and search through your organized prompt collections
🎨 Integrated Sidebar
Dedicated Activity Bar: Access PromptLib directly from the VS Code activity bar
Web-based Interface: Full-featured web interface embedded in VS Code
🚀 Getting Started
Installation
Install the extension from the VS Code marketplace
Open VS Code and look for the PromptLib icon in the activity bar
Method 1: Command Palette
Open the command palette (Ctrl+Shift+P or Cmd+Shift+P)
Type "Insert Prompt from Prompt Lib"
Select a prompt from the dropdown list
The prompt will be inserted at your cursor position
Method 2: Sidebar
Click the PromptLib icon in the activity bar
Browse your prompt library in the sidebar
Click on any prompt to insert it into your active editor
⚙️ Extension Settings
This extension contributes the following settings:
promptlib.apiToken: Your API token from the PromptLib app (required for authentication)
promptlib.apiUrl: PromptLib API endpoint URL (defaults to http://localhost:4000/api/pl/prompt/vscode/list)
🎮 Commands
promptlib.insertPrompt: Insert Prompt from Prompt Lib - Opens a quick pick menu to select and insert prompts
📋 Requirements
Visual Studio Code version 1.102.0 or higher
Active internet connection for cloud synchronization
PromptLib account and API token (sign up at promptlib.cc)
🔧 Development Setup
For developers who want to contribute or run the extension locally:
# Clone the repository
git clone <repository-url>
cd promptlib
# Install dependencies
pnpm install
# Compile and watch for changes
pnpm run watch
# Run tests
pnpm run test
🐛 Known Issues
The extension requires an active internet connection to fetch prompts from the API
Large prompt libraries may take a moment to load initially
Development mode iframe may require manual refresh in some cases
📝 Release Notes
0.0.1
Initial release of PromptLib
Basic prompt insertion functionality
Sidebar integration with web interface
Command palette support
Theme-aware interface
Configurable API endpoints
📄 License
This extension follows the standard VS Code extension guidelines and best practices.