MY PROMPTS INDEXEDDB
# My Prompts IndexedDB Storage
PromptLab includes a **My Prompts** tab for prompts created in the current browser.
## What Gets Saved
- **Working draft:** The current generator form is mirrored into a single active working record while the user edits.
- **Generated prompts:** Each successful Generate Prompt action promotes the active working prompt to `generated` instead of creating a duplicate card.
- **Versions:** Each prompt record keeps timestamped versions for working and generated states. Users can deploy any past version to make it the current active state.
- **Local-only records:** These records stay in the user's browser profile unless the user copies, downloads, contributes, or otherwise shares them.
## Files
| File | Purpose |
| ---- | ------- |
| `index.html` | Adds the My Prompts tab and page shell |
| `js/promptStorage.js` | IndexedDB wrapper for prompt records |
| `js/app.js` | Autosaves drafts, saves generated prompts, renders My Prompts cards, version history and deploy |
| `css/style.css` | My Prompts card/action/deploy-button styling |
| `privacy.html` | Documents local IndexedDB browser storage |
## IndexedDB Shape
Database: `PromptLabUserPrompts`
Object store: `prompts`
Indexes:
- `kind`
- `updatedAt`
Record example:when to use it
Community prompt sourced from the open-source GitHub repo prpigitcse/promptlab (NOASSERTION). A "MY PROMPTS INDEXEDDB" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
prpigitcse/promptlab · NOASSERTION