Adds a sidebar panel where you can chat with ChatGPT about the page you are viewing.
npx extension@latest create my-ai-chatgpt --template ai-chatgpt
cd my-ai-chatgpt
npm install
npm run dev!Powered by Extension.js
Adds a sidebar panel where you can chat with ChatGPT about the page you are viewing.
What you'll see: A small React UI injected into any web page, isolated in a Shadow DOM so site styles don't bleed through.
How it works: A content script mounts a React + TypeScript UI inside a Shadow DOM and applies scoped styles so the host page can't bleed through. Styles flow through Tailwind + PostCSS. UI is composed with Radix / shadcn primitives, lucide-react, OpenAI SDK.
Conversational sidebar wired to the OpenAI SDK. Paste an sk-... key the first time you open the panel (it lives in chrome.storage.local and never leaves the device) and chat with ChatGPT inline next to whatever page you're on. Shares its layout and shadcn/ui primitives with the ai-claude, ai-gemini, and ai-perplexity siblings; only the SDK and brand accent change.
npx extension@latest create my-ai-chatgpt --template ai-chatgpt
cd my-ai-chatgpt
npm install
npm run devA fresh browser window opens with the extension already loaded.
src/
├── components/
│ ├── ui/
│ │ ├── button.tsx
│ │ ├── card.tsx
│ │ └── scroll-area.tsx
│ ├── ApiKeyForm.tsx
│ ├── ChatInput.tsx
│ └── ChatMessage.tsx
├── content/
│ ├── ContentApp.ts
│ ├── scripts.ts
│ └── styles.css
├── images/
│ └── icon.png
├── lib/
│ ├── client.ts
│ ├── page-context.ts
│ └── utils.ts
├── sidebar/
│ ├── index.html
│ ├── scripts.tsx
│ ├── SidebarApp.tsx
│ └── styles.css
├── background.ts
└── manifest.jsonCloned this repo instead? The examples ship without npm scripts, so run Extension.js directly from the example directory. Run npm install first when the example declares dependencies.
Run the extension in development mode. Target a browser with --browser:
npx extension@latest dev . # Chromium (default)
npx extension@latest dev . --browser=chrome
npx extension@latest dev . --browser=edge
npx extension@latest dev . --browser=firefoxBuild for production:
npx extension@latest build . # Chromium (default)
npx extension@latest build . --browser=firefox
npx extension@latest build . --browser=edgePreview the production build with the bundled browser:
npx extension@latest preview .This template ships an end-to-end check (template.spec.ts) validated by the examples-repo CI on every commit.