Learn Java with an interactive AI tutor - Java runs directly in your browser!
npm install
npm run devThen open http://localhost:8080 in your browser.
- Powered by Groq API (Llama 3.3 70B model)
- Context-aware responses based on current lesson
- Explains Java concepts and helps debug code
- Click Run to execute Java code
- Uses Judge0 CE API for compilation
- No downloads or installations needed!
- 8 progressive modules (Basics → Advanced)
- W3Schools-based curriculum
- Progress tracking with localStorage
- Dark - Deep blue/purple tones
- Light - Clean white background
- Night - Warm amber for easy nighttime reading
- Fully responsive design
- Touch-friendly resize handles
- Works on tablets and phones
- ARIA labels and roles
- Keyboard navigation
- Screen reader support
- Focus indicators
- Offline support (service worker)
- Install to home screen
- Fast loading
npm run dev # or: node server.jsThe app runs at http://localhost:8080
Java/
├── index.html # Main application
├── styles.css # Styling (Dracula theme, syntax highlighting)
├── app.js # Core logic (lessons, chat, resize, CodeMirror)
├── lessons.js # 53 lessons across 8 modules
├── groq-service.js # Groq API integration
├── server.js # Node.js static server
├── sw.js # Service worker for offline support
├── manifest.json # PWA manifest
├── package.json # Dependencies and scripts
├── AGENTS.md # Agent documentation
└── java rerefence/ # W3Schools source materials
const state = {
currentLesson: null, // Active lesson object
editor: null, // CodeMirror instance
isAITyping: false, // AI typing state
progress: {
completedLessons: [],
totalLessons: 53
}
};runCode()- Executes Java via Judge0 APIsendChatMessage()- Sends to Groq AI tutorloadLesson(lesson)- Loads lesson contentclearHistory()- Clears chat on lesson switch
- Groq:
llama-3.3-70b-versatilemodel, 14k requests/day - Judge0:
https://ce.judge0.com, Language ID 62 (Java)
- Chrome 80+
- Firefox 75+
- Safari 13+
- Edge 80+
- Mobile browsers (iOS Safari, Chrome Mobile)
| Shortcut | Action |
|---|---|
| Ctrl + Enter | Run code |
| Tab | Indent |
| Escape | Close modals |
MIT License - feel free to use for learning!
Happy Learning! ☕🚀