Writing Buddy is an interactive, AI-powered literacy tutor designed to help students (Grades 3-5) improve their reading and writing skills. It features a friendly AI companion that provides real-time feedback, generates engaging stories, and guides students through structured writing exercises.
- Creative writing area with AI-generated prompts.
- "Publish Story" button to celebrate completion with confetti!
- AI Feedback: Get instant, encouraging feedback on grammar, creativity, and clarity.
- Score Gating: Submission is gated until the student achieves a quality score of 8/10.
- Generates unique reading passages tailored to the student's grade level.
- AI creates comprehension questions that require inferential thinking.
- Context-Aware: The AI tutor knows exactly what story you're reading and can check your answers.
- Structured practice for constructed responses using the Restate, Answer, Cite, Explain strategy.
- AI generates short texts and questions to practice specific skills.
- Activity Grid: Visualize "Last 30 Days" of activity (GitHub-style).
- Stats: Track words written, stories read, and daily streaks.
- Badges: Earn achievements for consistent practice.
- Persistence: All progress is saved locally, so you never lose your streak!
- A dedicated AI buddy for each mode (Free Write, Reading, RACE).
- Persistent Sessions: Switch tabs without losing your conversation context.
- Session Reset: Automatically starts a fresh chat when you generate a new topic or story.
- Frontend: React (v18), TypeScript, Vite
- Styling: Tailwind CSS (v4), Lucide React (Icons), Framer Motion (Animations)
- State Management: Zustand
- AI Integration: Anthropic Claude API (Claude 3.5 Haiku)
- Persistence: LocalStorage
- Node.js: Version 18 or higher is required. Download Node.js here.
- Verify installation by running
node -vandnpm -vin your terminal.
- Verify installation by running
- Anthropic API Key: You need an API key from Anthropic to use the AI features.
If you see npm: command not found or similar errors:
- Ensure you have installed Node.js from the link above.
- Restart your terminal or computer after installation to update your system PATH.
-
Clone the repository
git clone https://github.com/yourusername/writing-buddy.git cd writing-buddy -
Install dependencies
npm install
-
Configure Environment Variables Create a
.envfile in the root directory:cp .env.example .env
Add your Anthropic API Key:
VITE_ANTHROPIC_API_KEY=your_api_key_here
-
Run the Development Server
npm run dev
Open http://localhost:5173 to view it in the browser.
- Fork the Project
- 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
Distributed under the MIT License.