SIDE PANEL · CHROME / EDGE / BRAVE / FIREFOX
Turn scattered notes into prompts with roles, constraints, and {{variables}}.
PromptOptimizer lives in your browser sidebar. Dictate or type a draft, pick a strategy, and the gateway returns a structured system prompt: role framing, numbered steps, guardrails, and detected variables. Test it in the sandbox, then save it to your library.
WORKFLOW
Draft, refine, ship
⌘↵ from the editor · Esc closes dialogs
01
Draft or dictate
Type into the buffer or press Dictate. Strategy chips (Reasoning, Code, Direct, JSON, Persona) decide the structure the model must follow.
02
Refine against the gateway
⌘↵ sends the draft to a Cloudflare Workers AI worker running Llama 3.3 70B. The reply is parsed as JSON: prompt, rationale, variables.
03
Test, then keep it
Fill {{variables}} in the sandbox and execute the prompt
before reuse. Copy the result or save it to the library with tags.
SPEC
What is in the build
vanilla ES modules · zero UI framework
STRATEGIES
Five presets: Reasoning, Code, Direct, JSON, System Persona. Each injects a different directive into the system message before your draft.
DICTATION
Web Speech API streams the live transcript into the buffer as you speak.
Recorded audio routes through Whisper at the gateway when
native recognition is unavailable.
PREVIEW
Markdown renderer with headings, fenced code, tables, and
{{variable}} pills. Raw toggle shows monospace source.
Input is entity-escaped before parsing.
LIBRARY
Saved prompts with category filters, search, and tags. Ships with starter templates. Full JSON export and import for backups or sharing.
SANDBOX
Populate variables and execute the finished prompt against
/api/test before you reuse it. Response renders in preview
or raw mode.
LIMITS
15 requests / minute and 100 / day per IP, enforced in the worker with
429 and Retry-After. Quota counter shows in the
top bar.
STORAGE
chrome.storage.local, browser.storage.local, or
localStorage fallback. Nothing leaves the browser except the
prompt text sent to the gateway.
DOWNLOAD
Release v1.0.0
github.com/sandeshPatel06/PromptOptimizer/releases
CHROME · EDGE · BRAVE · OPERA
Chromium build
Download .zip- Unzip the archive.
- Open
chrome://extensions, enable Developer mode. - Click Load unpacked, select the unzipped folder.
FIREFOX 115+
Firefox build
Download .zip- Unzip the archive.
- Go to
about:debugging#/runtime/this-firefox. - Load Temporary Add-on…, select
manifest.json.
Read the source before you install it.
MIT licensed. Issues and pull requests are open.