The most comprehensive and user-friendly platform for exploring Chrome's built-in AI capabilities powered by Gemini Nano.
Experience the future of web AI with client-side processing, enhanced privacy, and lightning-fast performance. Our playground features modern UI design, comprehensive API coverage, and detailed setup guides.
- π― Complete API Coverage - All Chrome AI APIs including stable and experimental features
- π Privacy-First - Client-side processing ensures your data never leaves your device
- β‘ Lightning Fast - Near-instant AI responses with hardware acceleration
- π¨ Modern UI - Beautiful, responsive design with dark/light theme support
- π Comprehensive Guides - Step-by-step setup instructions for all API levels
- π SEO Optimized - Structured data and meta tags for better discoverability
- π Smart Translation - Real-time translation with automatic language detection
- π AI Summarization - Transform long texts into concise summaries (4 types available)
- π¬ Prompt Playground - Natural language interaction with Gemini Nano
- βοΈ Content Writer - AI-powered content generation with context awareness
- π Text Rewriter - Intelligent text refinement and tone adjustment
- π§ Language Detection - Automatic language identification (integrated in translation)
- π― Multiple Summary Types - Key-points, TL;DR, Teaser, and Headline summaries
- π Real-time Processing - Live streaming for longer content
- βοΈ Customizable Options - Length, format, and context controls
- π± Responsive Design - Perfect experience on all devices
- π Complete Documentation - Detailed API guides and examples
- π§ Setup Assistant - Hardware requirements and configuration help
- ποΈ API Status Dashboard - Real-time availability monitoring
- π Troubleshooting - Common issues and solutions
- Framework: Next.js 14 with App Router
- Frontend: React 18 with TypeScript
- Styling: Tailwind CSS with custom design system
- UI Components: Radix UI + Shadcn/UI
- Icons: Lucide React
- Theme: next-themes for dark/light mode
- Analytics: Vercel Analytics
- Deployment: Vercel (optimized for static export)
- Browser: Chrome 138+ (recommended) or Chrome Canary
- Node.js: 18.0 or later
- Hardware: GPU with 4GB+ VRAM (recommended)
# Clone the repository
git clone https://github.com/oslook/chrome-ai-playground.git
cd chrome-ai-playground
# Install dependencies
npm install
# Start development server
npm run dev
Visit http://localhost:3000 to explore the playground!
For the best experience, enable Chrome AI features:
- Open Chrome and navigate to
chrome://flags
- Enable:
#optimization-guide-on-device-model
- Enable:
#translation-api
and#summarization-api-for-gemini-nano
- Restart Chrome
π Detailed Setup Guide: Visit our Setup Guide for complete instructions.
API | Status | Chrome Version | Access Level |
---|---|---|---|
Translator API | β Stable | 138+ | Public |
Language Detector API | β Stable | 138+ | Public |
Summarizer API | β Stable | 138+ | Public |
Prompt API | β Stable | 138+ | Public |
Writer API | πΆ Origin Trial | 138+ | Registration Required |
Rewriter API | πΆ Origin Trial | 138+ | Registration Required |
Proofreader API | π£ EPP Only | 139+ (Canary) | Early Preview Program |
- β Chrome 138+ (Recommended) - Full stable API support
- β Chrome Canary - Latest experimental features
- β Edge, Firefox, Safari - Not supported (Chrome-only APIs)
- OS: Windows 10/11, macOS 13+, Linux, ChromeOS
- Storage: 22GB+ free space
- GPU: 4GB+ VRAM (recommended)
- Network: Unmetered connection for model downloads
chrome-ai-playground/
βββ app/ # Next.js App Router
β βββ components/ # Client components
β β βββ HomeClient.tsx # Homepage client component
β βββ globals.css # Global styles & CSS variables
β βββ guide/ # Setup guide page
β βββ layout.tsx # Root layout with SEO
β βββ page.tsx # Homepage with metadata
β βββ prompt/ # Prompt playground
β βββ summarize/ # AI summarization
β βββ translate/ # Translation with detection
β βββ writer/ # Content writing
βββ components/ # Reusable components
β βββ navigation.tsx # Main navigation
β βββ theme-provider.tsx # Theme management
β βββ ui/ # UI component library
βββ hooks/ # Custom React hooks
βββ lib/ # Utilities & helpers
βββ public/ # Static assets & images
We welcome contributions to make Chrome AI Playground even better! Here's how you can help:
- π Bug Reports - Found an issue? Open an issue
- π‘ Feature Requests - Have an idea? Start a discussion
- π§ Code Contributions - Help improve the codebase
- π Documentation - Improve guides and documentation
- π¨ UI/UX - Enhance the user experience
-
Fork & Clone
git clone https://github.com/your-username/chrome-ai-playground.git cd chrome-ai-playground
-
Setup Development Environment
npm install npm run dev
-
Create Feature Branch
git checkout -b feature/your-feature-name
-
Make Changes & Test
- Follow our coding standards
- Test on Chrome 138+
- Ensure responsive design works
-
Submit Pull Request
- Write clear commit messages
- Update documentation if needed
- Reference related issues
- π― Code Quality: Follow TypeScript best practices
- π¨ UI Consistency: Use our design system and CSS variables
- π± Responsive: Ensure mobile-first approach
- βΏ Accessibility: Follow WCAG guidelines
- π Performance: Optimize for fast loading and smooth interactions
This project is licensed under the MIT License - see the LICENSE file for details.
- Chrome AI Team - For pioneering built-in AI APIs
- Gemini Nano - Advanced AI models powering the experience
- Google AI - For making AI accessible to web developers
- Next.js - The React framework for production
- Tailwind CSS - Utility-first CSS framework
- Radix UI - Accessible component primitives
- Shadcn/UI - Beautiful component library
- Lucide - Beautiful icon library
- Early Adopters - For testing and feedback
- Contributors - For code improvements and features
- Chrome Developer Community - For inspiration and support
- Complete UI/UX Redesign: Modern glassmorphism design with gradient backgrounds and smooth animations
- SEO Optimization: Comprehensive meta tags, structured data (JSON-LD), and improved accessibility
- API Updates: Full upgrade to latest Chrome AI APIs (Chrome 138+)
- Streaming Support: Real-time content generation across all AI features
- Session Management: Persistent conversations with context awareness
- Modern Design System: Glassmorphism effects, backdrop blur, and gradient overlays
- Responsive Layout: Optimized for desktop, tablet, and mobile devices
- Dark/Light Theme: Complete theme support with system preference detection
- Interactive Elements: Hover effects, loading states, and smooth transitions
- Accessibility: WCAG compliant with proper ARIA labels and keyboard navigation
- Translator API: Integrated language detection, streaming translation, and model download progress
- LanguageModel API: Conversational AI with customizable temperature/top-k parameters
- Writer API: Content generation with tone, format, and length controls
- Rewriter API: Text refinement with shared context and streaming output
- Summarizer API: Multiple summary types with real-time processing
- Comprehensive README: Detailed setup guides, API status, and browser compatibility
- Setup Assistant: Step-by-step Chrome configuration instructions
- API Documentation: Complete API reference with examples and best practices
- Troubleshooting Guide: Common issues and solutions
- Next.js 14: Latest App Router with improved performance
- TypeScript: Enhanced type safety and developer experience
- Component Architecture: Modular, reusable components with consistent design
- Performance: Optimized loading, reduced bundle size, and efficient rendering
- Error Handling: Comprehensive error boundaries and user-friendly messages
- Smart Translation: Automatic language detection with manual override
- AI Prompt Playground: Interactive conversation with Gemini Nano
- Content Writer: Customizable content generation with context awareness
- Text Rewriter: Intelligent text refinement and tone adjustment
- Real-time Processing: Live streaming for all AI operations
- Progress Tracking: Download progress and generation status
- Copy/Share: One-click copy and export functionality
- Real-time Monitoring: Live API availability status
- Browser Compatibility: Chrome version requirements and support matrix
- Hardware Requirements: GPU, storage, and system specifications
- Origin Trial Tracking: Experimental API registration status
- Client-side Processing: All AI operations performed locally
- No Data Transmission: User content never leaves the device
- Secure Implementation: Proper error handling and resource cleanup
- Origin Trial Compliance: Registered for experimental APIs
- Touch Optimized: Mobile-first responsive design
- Gesture Support: Swipe gestures and touch interactions
- Performance: Optimized for mobile devices and slower connections
- Offline Support: Core functionality works without internet
Built with β€οΈ for the future of web AI
π Live Demo β’ π Documentation β’ π Report Issues