A comprehensive game suite featuring six AI-powered games built as a Chrome extension, leveraging Chrome's built-in AI APIs for intelligent gameplay experiences.
- Six Unique AI-Powered Games - Each game utilizes different Chrome AI APIs
- Real-time Leaderboard - Persistent high score tracking with localStorage
- Immersive Audio - Background music and sound effects for each game
- Responsive Design - Works seamlessly across different screen sizes
- Modern UI/UX - Beautiful gradient themes and smooth animations
- Chrome AI Integration - Leverages Gemini Nano and other built-in AI capabilities
AI APIs Used: Translation API, Language Detection API
- Decode cryptic messages as a master cryptographer
- Translate and refine mysterious texts while racing against time
- Features real-time language detection and translation
AI APIs Used: Prompt API (LanguageModel), Writer API
- Test your knowledge in a futuristic AI-powered game show
- Dynamic question generation using Gemini Nano
- AI-powered answer evaluation for semantic accuracy
AI APIs Used: Language Detection API
- Become a linguistic detective
- Identify languages from mysterious text snippets
- Real-time language detection with confidence scoring
AI APIs Used: Rewriter API, Writer API
- Channel your inner word magician
- Rewrite cryptic riddles for clarity while preserving mystery
- AI-powered text rewriting and enhancement
AI APIs Used: Summarizer API
- Race against time as an intelligence analyst
- Create concise, accurate summaries of complex documents
- AI-powered summary evaluation and scoring
AI APIs Used: Rewriter API, Writer API
- Master editor under pressure
- Find and fix errors in text passages before the deadline
- AI-assisted error detection and correction suggestions
- Chrome Browser version 127 or later (Chrome Beta browser works awesome)
- Chrome AI APIs enabled (see setup instructions below)
- Update Chrome to version 127 or later
- Navigate to
chrome://flags/ - Enable the following flags:
- "Prompt API for Gemini Nano"
- "Built-in AI APIs"
- "Translation API"
- "Language Detection API"
- "Writer API for Gemini Nano"
- "Rewriter API for Gemini Nano"
- "Summarizer API for Gemini Nano"
- Restart Chrome
- Visit
chrome://on-device-internals/to check model status
-
Clone this repository:
git clone https://github.com/yourusername/chrome-arcade.git cd chrome-arcade -
Open Chrome and navigate to
chrome://extensions/ -
Enable "Developer mode" in the top right corner
-
Click "Load unpacked" and select the project directory
-
The Chrome Arcade extension should now appear in your extensions list
- Click the Chrome Arcade extension icon in your browser toolbar
- Click "Launch Arcade" to open the main game interface
- Select any game from the arcade screen
- Each game includes:
- Game Controls: Quit, Leaderboard, Music/SFX toggles, Pause
- Real-time Scoring: Your progress is tracked and saved
- High Score System: Beat your personal bests
- Persistent Storage: High scores are saved locally using localStorage
- Real-time Updates: Leaderboard updates immediately when new records are set
- Ranked Display: Games are ranked with medal emojis (๐ฅ๐ฅ๐ฅ)
- Reset Functionality: Clear all scores with confirmation dialog
- Cross-Session Persistence: Scores survive browser restarts
- Manifest V3 Chrome Extension
- Chrome Built-in AI APIs (Gemini Nano integration)
- HTML5 localStorage for persistent data
- Modern JavaScript (ES6+ classes and async/await)
- CSS3 with gradients and animations
- Web Audio API for sound management
chrome-arcade/
โโโ manifest.json # Extension configuration
โโโ arcade.html # Main game interface
โโโ arcade.js # Core arcade logic and AI API integration
โโโ arcade.css # Main styling and responsive design
โโโ popup.html # Extension popup interface
โโโ popup.js # Popup functionality
โโโ background.js # Service worker for extension
โโโ games/ # Individual game implementations
โ โโโ cipher-codex.js
โ โโโ mind-meld-trivia.js
โ โโโ polyglot-pursuit.js
โ โโโ riddle-rewriter.js
โ โโโ summarize-sprint.js
โ โโโ proofreader-gauntlet.js
โโโ images/ # Game logos and icons
โโโ sounds/ # Audio files for games
- Score Management: Centralized localStorage-based system
- AI API Integration: Proper availability checking and error handling
- Audio System: Preloaded sounds with 4-second countdown limit
- Responsive Design: Mobile-friendly interface
- Error Handling: Comprehensive error management for AI APIs
- Create a new game class in the
games/directory - Implement required methods:
init(),pause(),resume(),destroy() - Add game configuration to
arcade.js - Update the game interface in
createXXXGame()method - Add game assets (images, sounds) to respective directories
- Always check API availability before use
- Implement proper error handling and fallbacks
- Use the guides in the
guides/folder for implementation details - Follow the established patterns for consistency
The extension includes various audio files for enhanced gaming experience:
- Background music for each game theme
- Sound effects for interactions and feedback
- Countdown timers and victory sounds
Audio assets obtained for free from MixKit.com
- Operating System: Windows 10/11, macOS 13+, Linux, or ChromeOS
- Storage: At least 22 GB free space for AI models
- Memory: 16 GB RAM (for CPU inference) or 4+ GB VRAM (for GPU)
- Network: Unlimited data connection for model downloads
- Chrome 127+ (stable channel)
- Chrome AI APIs enabled
- JavaScript enabled
- localStorage support
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style and patterns
- Test all AI API integrations thoroughly
- Ensure responsive design compatibility
- Add appropriate error handling
- Update documentation for new features
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Chrome Team for the built-in AI APIs
- Gemini Nano for powering the AI capabilities
- Chrome Extensions Platform for the development framework
- AI APIs require specific Chrome versions and flags to be enabled
- Model downloads may take time on first use
- Some features may not work in incognito mode
- Mobile Chrome may have limited AI API support
If you encounter issues:
- Check that Chrome AI APIs are properly enabled
- Verify Chrome version compatibility
- Check
chrome://on-device-internals/for model status - Review browser console for error messages
- Initial release with six AI-powered games
- Complete leaderboard system with localStorage
- Full Chrome AI API integration
- Responsive design and audio system
- Comprehensive error handling
Made with โค๏ธ and AI - Chrome Arcade brings the future of gaming to your browser!
