How thegreatlucy/prompt-stacker works
Prompt Stacker is a browser extension for queuing and automating prompts across four AI chat sites, with a ChatGPT-only image browser and downloader. The main workflow is: the user queues prompts in the injected panel, the content script drives the site's chat UI and waits for replies, then sends the next prompt. A separate Images tab supports library selection or current-thread collection, followed by ZIP downloads. The excerpts show key UI, storage, locking, and archive behavior; some runtime wiring is documented but not fully sampled.
Main entry points: content.js Queue and panel · images-tab.js Images tab · grabber.js Fetch and ZIP · library.js Library picker
Components 13
Prompt queue
- Queue and panel
content.js
Image tools
- Images tab
images-tab.js - Library picker
library.js - Thread collector
thread.js - Fetch and ZIP
grabber.js
Shared runtime
- ZIP writer
zip-lib.js - Cross-tab lock
busy-lock.js
Browser and services
- Chat interfaces
- Chrome storage
- ChatGPT image APIs
- Image hosts
- Browser downloads
Other components
- User
Connections 15
- User → Queue and panel: queues prompts
README.md - Queue and panel → Chat interfaces: drives chat UI
README.md - Queue and panel → Chrome storage: reads and writes
content.js - Queue and panel → Cross-tab lock: coordinates jobs
busy-lock.js - User → Images tab: opens Images
README.md - Images tab → Library picker: opens picker
images-tab.js - Images tab → Thread collector: starts collection
images-tab.js - Images tab → Cross-tab lock: gates image jobs
images-tab.js - Library picker → ChatGPT image APIs: loads library
library.js - Thread collector → ChatGPT image APIs: retrieves thread assets
thread.js - Thread collector → Fetch and ZIP: passes image URLs
thread.js - Fetch and ZIP → Image hosts: fetches image bytes
grabber.js - Fetch and ZIP → ZIP writer: builds archives
zip-lib.js - Fetch and ZIP → Browser downloads: saves ZIP files
grabber.js - Library picker → Chrome storage: tracks saved images
library.js