AlphaStudyAI is a minimalist study companion that transforms your notes, PDFs, or study topics into adaptive AI-powered quizzes. With a dark, focused interface and intelligent tutoring support, the app helps you master any subject through interactive questions, instant feedback, and context-aware AI assistance.
- Tab Navigation – Seamless navigation between Home, Input, and Quizzes screens with a persistent header and tab system.
- Home Screen – Brand-forward landing page featuring "Think sharper, Go Alpha" messaging and a "How it works" section.
- Flexible Input – Multiple ways to create quizzes:
- Paste study notes, outlines, or lecture dumps
- Upload PDF documents for automated text extraction
- Simply type a subject or topic you want to study
- AI-Powered Quiz Generation – Generates custom quizzes with:
- Multiple choice questions with confetti on correct answers and detailed explanations for mistakes
- Short answer questions with hint support, retries, and AI-powered grading
- Dynamic topic extraction and display
- Quiz History – View previously generated quizzes with topic names and question counts, easily resume where you left off.
- AI Tutor Sidebar – Context-aware assistant accessible during quizzes:
- Knows the current question and your past mistakes
- Provides hints, explanations, mistake reviews, and study tips
- Streaming chat interface with quick action buttons
- Collapsible vertical tab design that doesn't interrupt your quiz flow
- Progress Tracking – Bottom progress bar, streak counter, accuracy percentage, and animated transitions between questions.
- Session Summary – End-of-quiz modal with detailed statistics, accuracy metrics, and visual feedback.
- Dark, Focused UI – Glassy-dark design with purple/cyan gradient accents optimized for extended study sessions.
- Expo Router for file-based navigation with Stack layout (
app/_layout.tsx) - React Native + Expo SDK 54, React 19
- OpenAI Integration (
lib/openai.ts):- Quiz generation with GPT-4o
- Short answer grading
- Streaming chat completions for AI tutor
- Custom Hooks:
useQuizRunner.ts– Quiz state management (loading, answer checking, streaks, summary, mistake tracking)useChatSidebar.ts– AI tutor chat state with streaming responses and context awarenessusePressScaleAnimation.ts– Reusable press/hover animations
- AsyncStorage for persistence:
- Quiz history (study text, question count, topics)
- Chat message history with question separators
- Components:
HeaderTabs.tsx– Tab navigation systemChatSidebar.tsx,ChatMessage.tsx,ChatInput.tsx,QuickActionButtons.tsx– AI tutor interfaceVerticalTab.tsx– Collapsible sidebar toggle
- Install dependencies
npm install
- Set your OpenAI API key
- Copy
.env.exampleto.env(if provided) or export one of:EXPO_PUBLIC_OPENAI_API_KEYOPENAI_API_KEYOPEN_API_KEY
- Copy
- Run the app
npx expo start
- Open the project in Expo Go, an emulator, or a development build as prompted by the CLI.
- Launch the app – Land on the AlphaStudyAI home screen with "Think sharper, Go Alpha" branding. Tap Generate a quiz or use the Input tab.
- Create your quiz – Navigate to the Input screen and:
- Paste study notes, highlights, or lecture dumps
- Upload a PDF document
- Simply type a subject or topic you want to study
- Adjust question count (5-20 questions)
- Hit Generate quiz
- Take the quiz – Work through questions one at a time:
- Multiple choice: Tap answer bubbles, get instant feedback with confetti for correct answers
- Short answer: Type your response, optionally reveal hints, retry once, then see AI grading and explanations
- Track your progress with the bottom progress bar, streak counter, and accuracy percentage
- Get AI help (optional) – Tap the TUTOR MODE tab to:
- Ask questions about the current prompt
- Request hints, explanations, or study strategies
- Review your mistakes
- Chat with context-aware AI that knows your quiz history
- Review your session – After the final question, view the summary modal with detailed stats and performance metrics.
- Access quiz history – Use the Quizzes tab to see your last quiz with its topic and question count, or resume where you left off.
app/
_layout.tsx # Router stack + header config + tab navigation
index.tsx # Home screen with hero and "How it works"
input.tsx # Study input with text/PDF support + question count
quiz.tsx # Quiz runner with AI tutor sidebar integration
quizzes.tsx # Quiz history screen
components/
HeaderTabs.tsx # Tab navigation component
ChatSidebar.tsx # AI tutor sidebar container
ChatMessage.tsx # Individual chat messages
ChatInput.tsx # Multi-line chat input with character limit
QuickActionButtons.tsx # Quick action buttons for AI tutor
VerticalTab.tsx # Collapsible tutor mode tab
hooks/
useQuizRunner.ts # Quiz state management + mistake tracking
useChatSidebar.ts # AI chat state + streaming responses
usePressScaleAnimation.ts # Reusable animation hook
lib/
openai.ts # OpenAI client (quiz generation, grading, chat)
types/
chat.ts # TypeScript definitions for chat system
assets/
images/ # App logos and graphics
npm start/npx expo start– Launch Metro bundler and development tooling.npm run android|ios|web– Platform-specific shortcuts.npm run lint– Run Expo’s ESLint config.
- OpenAI API Required – Quiz generation, short answer grading, and AI tutor features require a valid OpenAI API key.
- Local Storage – AsyncStorage persists:
- Last quiz data (study text, question count, topic) for the Quizzes history tab
- Chat message history with the AI tutor
- Clearing app data or reinstalling removes all stored data
- PDF Support – Requires PDF parsing capabilities (handled by the input screen)
- Streaming Responses – AI tutor uses streaming for real-time chat feedback
"Drop your notes, master the material."
Feel free to adapt the plan in PLAN.md as the product evolves. Contributions and improvements are welcome!