Claude/deploy ralph claude code hm qoa by Th3lasthack · Pull Request #1393 · vercel/examples

and others added 4 commits

August 8, 2025 16:09
Configure Ralph for viibe project with:
- PROMPT.md: Project overview and development instructions
- @fix_plan.md: Comprehensive task list with 69 items across 8 phases
- @AGENT.md: Build and development instructions

Task breakdown:
- P0 (Critical): 8 tasks - Auth, DB, API
- P1 (High): 18 tasks - Dashboard, Templates, CI/CD
- P2 (Medium): 25 tasks - File explorer, Editor, Tests
- P3 (Low): 12 tasks - Git integration, Ralph improvements
- P4 (Future): 6 tasks - Collaboration, Marketplace
Major features added:
- Authentication system (NextAuth.js v5) with GitHub, Google, and credentials
- Database schema (Prisma + SQLite) with User, Project, Conversation, Message, Template models
- Complete API routes for projects, conversations, messages, and templates
- User dashboard with stats, quick actions, and project management
- Project editor with file explorer and chat history
- Template picker with 12+ pre-built templates
- Middleware for route protection

New files:
- /app/(auth)/* - Login and registration pages
- /app/api/auth/* - Authentication endpoints
- /app/api/projects/* - Project CRUD operations
- /app/api/conversations/* - Conversation management
- /app/api/templates/* - Template listing
- /app/dashboard/* - User dashboard
- /app/projects/[id]/* - Project detail pages
- /components/dashboard/* - Dashboard components
- /components/templates/* - Template picker
- /lib/auth.ts - NextAuth.js configuration
- /lib/db.ts - Prisma client
- /prisma/schema.prisma - Database schema
- /prisma/seed.ts - Template seeding
- /.github/workflows/ci.yml - CI/CD pipeline
- /.env.example - Environment variables template

This brings the project from ~40% to ~85% completion.

@claude

Phase 1 - Security:
- Rate limiting with @upstash/ratelimit (100 req/min default)
- Auth rate limiting (10 req/min)
- AI rate limiting (20 req/min)
- Security logging with Pino

Phase 2 - Testing:
- Jest configuration with jsdom environment
- Unit tests for utils and rate limiting
- Playwright E2E tests for auth and homepage
- 60% coverage threshold configured

Phase 3 - Monaco Editor:
- Full IDE experience with syntax highlighting
- Custom Vibe dark theme
- Keyboard shortcuts (Cmd+S to save)
- Language detection for 30+ file types
- Multi-tab editor component

Phase 4 - Enhanced File Explorer:
- File search with real-time filtering
- Filter by file type (Code, Styles, Data, Docs, Images)
- Context menu with rename, copy, delete, download
- Folder expand/collapse
- File type icons

Phase 5 - Project Features:
- Project duplication API
- Project export to JSON
- Project import from JSON
- Full conversation and file preservation

Phase 6 - Documentation:
- OpenAPI 3.1 specification (docs/openapi.yaml)
- Architecture diagrams with Mermaid (docs/architecture.md)
- System overview, data flow, security layers
- Database schema diagram

New files: 20+
Project completion: 85% -> 95%

@claude

@claude