Summarize any page
with AI
A lightweight, embeddable, and open-source widget that lets users summarize web content with ChatGPT, Claude, Perplexity, and more.
npm install summarize-with-aiQuick Start
Drop in a single line of HTML. That's it.
<summarize-with-ai></summarize-with-ai>AI Integration Prompt
Copy this prompt and paste it into your AI coding assistant (Cursor, Copilot, v0, etc.) to integrate the widget.
Themes
Three built-in themes that adapt to your site.
Default via Glass
Light
Dark
Minimal
Compact Mode
Icons only. Perfect for sidebars or tight spaces.
SummarizeWidget.init({
target: '#widget',
compact: true
});Choose Your Services
Show only the AI services you want.
SummarizeWidget.init({
services: ['chatgpt', 'claude', 'perplexity']
});Selection Mode
Select text, then summarize just that portion.
Try selecting this text
Artificial intelligence has transformed how we interact with technology. From voice assistants to recommendation systems, AI is now embedded in our daily lives. Machine learning algorithms can analyze vast amounts of data to find patterns that humans might miss.
SummarizeWidget.init({
mode: 'content',
layout: 'vertical',
preferSelection: true
});Works Everywhere
Use as a Web Component or initialize with JavaScript.
// Web Component
<summarize-with-ai
theme="dark"
services="chatgpt,claude"
mode="url"
></summarize-with-ai>
// JavaScript API
SummarizeWidget.init({
target: '#widget',
theme: 'dark',
services: ['chatgpt', 'claude'],
onService: (ctx) => console.log(ctx)
});