AI Prompt Studio is a zero-dependency, fully client-side Single Page Application (SPA) designed to supercharge your prompt engineering workflow. It features a modern Glassmorphism/Claymorphism UI, full offline PWA capabilities, and dynamic integration with the Gemini AI API (and a demo JSONPlaceholder mode) for live prompt testing.
All data is stored locally in your browser ensuring complete privacy and offline accessibility.
- Dual API Modes: Test workflows instantly with the Demo Mode (JSONPlaceholder) or switch to Real AI Mode using your Google Gemini API key (
gemini-pro). - Prompt Improver & Scorer: Get heuristic 0-10 scoring on prompt quality, and click "Improve" for AI-powered structural enhancements.
- Auto-Suggestions: Real-time, debounced autocomplete suggestions as you type.
- Intelligent Organization: Categorize, tag, search, and filter your saved prompts instantly.
- Favorites & Pinning: Star your best prompts to keep them at the top.
- Full CRUD: Seamlessly edit, duplicate, drag-and-drop reorder, and permanently delete prompts.
- Voice Input: Speak your prompts directly using the Web Speech API.
- Text-to-Speech (TTS): Read back generated prompts and AI responses aloud.
- Multi-language: Built-in i18n support (English & Marathi).
- Glassmorphism Design: Beautiful translucent panels, smooth gradients, and micro-animations.
- True Dark Mode: Persisted CSS custom property theming (
data-theme="dark"). - Responsive PWA: Install natively on iOS/Android or Desktop. Includes a sleek mobile-friendly bottom tab bar.
- Keyboard Power Shortcuts:
Ctrl+Enter(Generate),Ctrl+S(Save),Ctrl+Shift+C(Copy),Ctrl+D(Theme toggle).
- Dashboard Data: Track usage history, view the top category pie/bar chart, and instantly restore past prompts.
- Rich Exporting: Download Prompts as
.TXT,.PDF(via jsPDF),.JSON, or copy as Markdown. - Deep Linking: Share templates via base64 encoded URL hashes.
Frontend Only (No Build Step Required)
HTML5(Semantic layout, PWA Meta tags)CSS3(Custom Properties, Flexbox/Grid, Glassmorphism)Vanilla JavaScript (ES6)(State management, API integration, LocalStorage)- External Libs: FontAwesome (Icons), jsPDF (PDF Export), Google Fonts (Inter, Space Grotesk)
├── index.html # Main SPA skeleton, 5-tab DOM structure
├── style.css # Complete design system and responsive rules
├── script.js # Core logic, API fetching, UI state, PWA initialization
├── manifest.json # Web App Manifest for PWA installation
├── sw.js # Service Worker for offline asset caching
├── icon-192.png # PWA maskable icon (small)
└── icon-512.png # PWA maskable icon (large)
Since there is no backend or build step, running AI Prompt Studio is incredibly easy:
- Clone the repository:
git clone https://github.com/davishkar/AI-Prompt-Studio-Project.git cd AI-Prompt-Studio-Project - Run a local server (Requires Node.js):
npx serve . - Open
http://localhost:3000in your browser.
Simply double-click the index.html file to open it directly in your browser. (Note: Some features like Service Workers/PWA require an HTTP/HTTPS protocol).
By default, the app is in Demo Mode (JSONPlaceholder) to let you test the UI without an API key. To enable real AI responses:
- Obtain a free Google Gemini API Key from Google AI Studio.
- Open AI Prompt Studio.
- Navigate to the Settings tab.
- Toggle "Enable Gemini AI".
- Paste your API key (
AIzaSy...) and click Save Key. - Navigate back to the Studio tab and click Run AI.
(Your key is stored securely in your local browser localStorage and is never sent to any external server other than Google's API endpoints).
Desktop (Chrome/Edge):
Look for the install icon ⬇️ in the right side of the URL bar, or click the "Install App" button located at the bottom of the left sidebar.
Mobile (iOS Safari): Tap the Share button at the bottom of the screen, then scroll down and tap "Add to Home Screen".
Mobile (Android Chrome): A prompt should appear asking to "Add AI Prompt Studio to Home screen", or you can tap the 3-dot menu and select "Install app".
Contributions are welcome! If you have ideas for new prompt templates, better heuristics for the prompt scorer, or additional export formats:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Designed with ❤️ for prompt engineers.