Skip to content
All projects
2026The prompt amplifier — your keys, any site

PromptAmp

A browser extension that turns a rough draft into an engineered prompt inside any text field on any site — with your own API key. The result appears next to your original, nothing is replaced until you accept, and pasted code comes back byte-for-byte. Live on Firefox Add-ons.

Gallery

The problem

Everyone types half-formed requests into AI tools and gets mediocre results — prompt-engineering advice lives in blog posts nobody applies mid-task. PromptAmp moves that skill into the text field itself: one tap turns the rough thought into a precise, structured prompt, in place, in English or Persian — and if the draft contains code or a log, that content is reproduced exactly; only the ask gets engineered.

My role

Built it end-to-end in TypeScript on WXT — the six-tier insertion engine, the BYOK provider layer with its failover chain and PKCE OAuth, the popup/options UI, and the Vitest + Playwright suites that drive the built extension in a real browser.

How it works

01Rough draft
02✦ button
03BYOK provider chain
04Side-by-side review
05Accept
06Event-path insert

Engineering highlights

Works in any text field

A six-tier insertion engine (exec-command → native setter → contenteditable → paste simulation → main-world editor bridge → clipboard) writes through input-event paths, so React and ProseMirror editors keep their model — and your Ctrl+Z — intact.

Your keys, eight providers

Strictly BYOK: OpenAI, Anthropic, Gemini, Groq, OpenRouter via PKCE OAuth, local Ollama / LM Studio, or any OpenAI-compatible endpoint. The list order is a failover chain — credential failures hand over; a model's refusal deliberately doesn't.

Keeps what you paste

Pasted code, logs, and documents are reproduced byte-for-byte; only the rough request around them is engineered. Drafts work in English or Persian, and can output in a different language than they were written in.

Private by construction

No backend, no telemetry, no accounts. Keys live in storage.local (never sync), host permissions cover exactly the providers you use, and a soft spend cap warns before a runaway bill.

Outcomes

  • Published on Firefox Add-ons (AMO), with Chrome and Edge builds shipping from the same WXT codebase.
  • Turns 'make it faster and add validation' into a structured, precise prompt with one tap — without your pasted code coming back changed.