{"id":30303916,"url":"https://github.com/codestackr/ai-tutor","last_synced_at":"2025-08-17T06:34:51.909Z","repository":{"id":309643821,"uuid":"1037036184","full_name":"codeSTACKr/ai-tutor","owner":"codeSTACKr","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-13T01:24:50.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-13T03:26:08.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeSTACKr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-13T01:07:28.000Z","updated_at":"2025-08-13T01:24:54.000Z","dependencies_parsed_at":"2025-08-13T03:27:28.098Z","dependency_job_id":"9ad5c720-79ac-4c1e-9144-0d29f64f3764","html_url":"https://github.com/codeSTACKr/ai-tutor","commit_stats":null,"previous_names":["codestackr/ai-tutor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/codeSTACKr/ai-tutor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeSTACKr%2Fai-tutor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeSTACKr%2Fai-tutor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeSTACKr%2Fai-tutor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeSTACKr%2Fai-tutor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeSTACKr","download_url":"https://codeload.github.com/codeSTACKr/ai-tutor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeSTACKr%2Fai-tutor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270816060,"owners_count":24650748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-17T06:34:49.707Z","updated_at":"2025-08-17T06:34:51.894Z","avatar_url":"https://github.com/codeSTACKr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Tutor Demo - Interactive Flashcard Learning Platform\n\n## Overview\n\nClaude generates **interactive UI components as educational content** - transforming chat into a personalized tutoring platform. Instead of text responses, Claude creates functional flashcards, multiple-choice questions, and adaptive learning experiences as React components within the conversation.\n\n**Why It's Compelling**: Demonstrates Claude's generative UI capabilities, sophisticated tool orchestration, and educational intelligence on a production-ready stack (Next.js 15, MongoDB, better-auth).\n\n## Video Walkthrough\n\n[![YouTube Thumbnail - Link to video](http://img.youtube.com/vi/goxnUKwwf-I/0.jpg)](http://www.youtube.com/watch?v=goxnUKwwf-I)\n\n## Setup \u0026 Running\n\n**Prerequisites**: Node.js 18+, MongoDB database, Anthropic API key\n\n1. **Install**: `npm install`\n2. **Environment**: Create `.env.local` with:\n   ```env\n   ANTHROPIC_API_KEY=your_claude_api_key\n   MONGODB_URI=your_mongodb_connection_string\n   BETTER_AUTH_SECRET=your_secret_key\n   BETTER_AUTH_URL=http://localhost:3000\n   ```\n3. **Run**: `npm run dev` → http://localhost:3000\n4. **Try**: Login → Tutor page → \"Create flashcards for Python basics\"\n\n## Technical Approach\n\n**Core Innovation**: Claude generates interactive React components as educational responses, not just text. Educational content works best when interactive.\n\n**Key Decisions**:\n- **AI Elements + Tool Calls**: Vercel AI SDK v5 with structured educational content generation\n- **Production Stack**: Next.js 15, MongoDB, better-auth for real-world integration patterns\n- **Educational Intelligence**: Claude understands pedagogy, creates progressive difficulty, adapts to responses\n\n**Why This Demo**: Education tech + Claude's advanced capabilities (tool orchestration, context awareness, structured output) = compelling developer use case with clear market opportunity.\n\n## Why Builders Will Want This\n\n**Immediate Appeal**: Every developer wants to learn something - AI generates content they'd actually use (flashcards, quizzes, interactive lessons).\n\n**Clear Extensions**: Code challenges, LMS integration, domain-specific tutors (interview prep, certifications), collaborative learning.\n\n**Technical Value**: Production-ready patterns for AI-enhanced UX, sophisticated prompt engineering, proven ed-tech market opportunity.\n\n## How I Used Claude\n\n**Key Insight**: Asked Claude to focus on generative UI - creating React components as educational responses vs. traditional text tutoring.\n\n**Breakthrough**: Structuring educational content as tool calls enabled interactive components within chat.\n\n**Development Process**: \n1. Migrated todo app → educational platform\n2. Designed tools for different content types (flashcards, multiple choice)\n3. Refined with pedagogical principles\n\n**Technical Discoveries**:\n- Prompt: \"teach like a great educator\" \u003e\u003e generic requests\n- Tool parameters need flexibility + educational effectiveness balance\n- Graceful degradation essential for robust AI generation\n\n## Future Improvements\n\n**Next Phase**: Adaptive difficulty, analytics dashboard, hint system, mastery tracking\n\n**Advanced**: Code challenges with live execution, collaborative learning, PDF import, mobile app, voice integration\n\n**Technical**: Redis caching, A/B testing, detailed analytics, accessibility enhancements\n\n## Current Features\n\n✅ Interactive chat with educational focus  \n✅ Multiple flashcard types (Q\u0026A, multiple choice)  \n✅ Persistent learning sessions  \n✅ Session management and history  \n✅ Real-time AI content generation  \n✅ User authentication  \n\n**Try**: \"Create flashcards for Python basics\" or \"Quiz me on React hooks\"\n\n---\n\nReady to see Claude teach? This functional learning platform demonstrates interactive AI tutoring potential.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodestackr%2Fai-tutor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodestackr%2Fai-tutor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodestackr%2Fai-tutor/lists"}