The playground for all API supported by Chrome AI and Gemini Nano, making it the most comprehensive and user-friendly platform available.
- Prompt - Interactive chat interface for testing prompts
- Summarize - Text summarization capabilities
- Translate - Language translation functionality
- Detect Language - Automatic language detection
- Writer - AI-powered writing assistance
- ReWriter - Content rewriting and refinement
- Next.js 13+ with App Router
- React 18
- TypeScript
- Tailwind CSS
- Radix UI Components
- Shadcn/UI
- Lucide Icons
- Node.js 16.8 or later
- npm or yarn or pnpm
- Clone the repository
git clone https://github.com/oslook/chrome-ai-playground.git
cd chrome-ai-playground
- Install dependencies
npm install
# or
yarn install
# or
pnpm install
- Start the development server
npm run dev
# or
yarn dev
# or
pnpm dev
- Open http://localhost:3000 with your browser to see the result.
chrome-ai-playground/
├── app/ # Next.js app directory
│ ├── detect-language/ # Language detection feature
│ ├── prompt/ # Prompt testing interface
│ ├── rewriter/ # Content rewriting
│ ├── summarize/ # Text summarization
│ ├── translate/ # Translation feature
│ └── writer/ # Writing assistance
├── components/ # Reusable React components
│ └── ui/ # UI components
├── lib/ # Utility functions and helpers
└── public/ # Static assets
We welcome contributions to Chrome AI Playground! Here's how you can help:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Follow the existing code style and conventions
- Write meaningful commit messages
- Update documentation as needed
- Add tests for new features when possible
- Ensure all tests pass before submitting PR
This project is licensed under the MIT License - see the LICENSE file for details.
- Chrome AI team for providing the APIs
- Gemini Nano for advanced AI capabilities
- All contributors who help improve this playground