A Chrome extension that intelligently extracts and summarizes web content with AI-powered insights. Built with TypeScript, featuring smart content detection, one-click summarization, and a clean interface.
- Backend API: https://clarityai-qrnk.onrender.com
- Health Check: https://clarityai-qrnk.onrender.com/health
- Privacy Policy: https://tusharwasake.github.io/ClarityAI/privacy-policy.html
- GitHub Repository: https://github.com/Tusharwasake/ClarityAI
Version 1.0.1 - Privacy Policy Compliance Update
- β Added comprehensive privacy policy
- β Updated manifest with privacy policy URL
- β Ready for Chrome Web Store resubmission
- π See
CHROME_STORE_PRIVACY_FIX.mdfor details
- Download Extension: Clone or download this repository
- Open Chrome: Go to
chrome://extensions/ - Enable Developer Mode: Toggle "Developer mode" in top-right
- Load Extension: Click "Load unpacked" β Select
chrome-extension/distfolder - Start Using: Visit any webpage and click the ClarityAI icon to summarize!
- Build Extension:
cd chrome-extension && npm install && npm run build - Load in Chrome: Point to the
distfolder when loading unpacked - API Integration: Extension connects to deployed backend automatically
- Automatic noise removal: Eliminates ads, navigation, sidebars automatically
- Intelligent main content detection: Achieves 80%+ accuracy on common sites
- Multi-strategy extraction: Uses semantic HTML, readability algorithms, and fallback methods
- Broad compatibility: Handles Medium, news sites, blogs, and general web content
- Floating action button: Always visible "Summarize" button on every page
- Consistent format: Clean 3-bullet point summary format for easy scanning
- Real-time feedback: Loading states with progress indicators
- Error resilience: Comprehensive error handling with retry options
- Slide-out panel design: Non-intrusive slide panel (not popup window)
- Summary management: View, copy, and export summaries
- Quick actions: One-click copy and export functionality
- Settings control: Toggle extension on/off per site
- Recent summaries: Automatically saves last 10 summaries locally
- Quick access: Instant access via extension popup
- Auto-cleanup: Automatically deletes old summaries to manage storage
- Export options: Export summaries as text or markdown files
- TypeScript: Type-safe development
- Webpack: Module bundling and build optimization
- Chrome Extension API: Manifest V3 for modern Chrome extensions
- Node.js + Express: RESTful API server with MVC architecture
- TypeScript: Full type safety and modern JavaScript features
- MVC Pattern: Organized into Models, Views, Controllers for maintainability
- Service Layer: Separated business logic and external API integrations
- Mozilla Readability: Advanced content extraction
- JSDOM: Server-side DOM manipulation
e:\ClarityAI\
βββ backend/ # API Server
β βββ src/
β β βββ server.ts # Main server entry point
β β βββ controllers/ # Request handlers
β β βββ services/ # Business logic
β β βββ routes/ # API routes
β β βββ models/ # Type definitions
β β βββ utils/ # Helper functions
β β βββ middleware/ # CORS, logging, error handling
β βββ package.json
β βββ tsconfig.json
β
βββ chrome-extension/ # Chrome Extension
βββ src/ # TypeScript source files
β βββ content.ts # Main content script
β βββ background.ts # Service worker
β βββ popup.ts # Extension popup
β βββ contentExtractor.ts # Smart content detection
β βββ storageManager.ts # Local storage management
β βββ summarizationService.ts # API communication
β βββ types.ts # TypeScript definitions
βββ styles/ # CSS styling
βββ icons/ # Extension icons
βββ dist/ # Built extension files
βββ manifest.json # Chrome extension manifest
βββ popup.html # Popup HTML
βββ package.json
βββ tsconfig.json
βββ webpack.config.js
- Node.js 18+ and npm
- Google Chrome browser
The extension connects to the live backend at https://clarityai-qrnk.onrender.com by default.
For local development:
cd "e:\ClarityAI\backend"
npm install
npm run dev
# Backend runs at http://localhost:3000cd "e:\ClarityAI\chrome-extension"
npm install
npm run build- Open
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked"
- Select the
e:\ClarityAI\chrome-extension\dist\folder
- Visit any webpage with content
- Click the floating "Summarize" button or ClarityAI icon
- View the summary in the slide-out panel
Base URL: https://clarityai-qrnk.onrender.com
- GET
/: Welcome message - GET
/health: Health check and server status - POST
/api/summarize: Generate AI-powered summary- Body:
{ content: string, title: string, url?: string } - Returns:
{ points: string[], timestamp: string, wordCount: number }
- Body:
- POST
/api/extract: Extract content from URL- Body:
{ url: string } - Returns:
{ title: string, content: string, excerpt: string, ... }
- Body:
// Summarize text
const response = await fetch(
"https://clarityai-qrnk.onrender.com/api/summarize",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
content: "Your article content here...",
title: "Article Title",
}),
}
);
const summary = await response.json();- Semantic HTML: Looks for
<article>,[role="main"],.content - Readability Algorithm: Scores elements based on content density
- Noise Removal: Filters out ads, navigation, sidebars
- Fallback: Uses full page content if other methods fail
- Position scoring: Prioritizes opening sentences
- Length optimization: Prefers 10-30 word sentences
- Keyword matching: Boosts sentences with title keywords
- Content indicators: Recognizes important terms and numbers
- Local storage: Summaries stored locally in Chrome
- No tracking: No analytics or user data collection
- CORS enabled: Secure backend communication
- Minimal permissions: Only necessary Chrome permissions
- AI Integration (OpenAI, Claude)
- Custom summary lengths
- Multiple summary formats
- Highlight integration
- Sharing features
- β
Backend is live: Uses
https://clarityai-qrnk.onrender.com(no local setup needed) - β
Check Chrome extensions: Go to
chrome://extensions/for errors - β Reload extension: After code changes, reload from extensions page
- β Check permissions: Ensure extension has access to the current site
- β Works best on articles: News sites, blogs, Medium posts
β οΈ JavaScript-heavy sites: May need page refresh for dynamic contentβ οΈ Social media: Limited support for Twitter, Facebook, etc.- β Test on: CNN, BBC, Medium, Wikipedia for best results
- β Check status: Visit https://clarityai-qrnk.onrender.com/health
β οΈ Free tier limits: Render free tier may have cold starts (first request slower)- β CORS enabled: Should work from any domain
| Component | Status | URL |
|---|---|---|
| Backend API | β Live | https://clarityai-qrnk.onrender.com |
| Chrome Extension | β Ready | Load from /chrome-extension/dist folder |
| Repository | β Public | GitHub.com/Tusharwasake/ClarityAI |
ClarityAI - Making web content digestible! π―