1Summary
Build a web-based document reading application for students to access and review research materials remotely. The app will run entirely in a browser, requiring an internet connection, and focus solely on document viewing without editing or creation capabilities. The product will use Next.js for the framework, Cloudflare for hosting, and be developed by a Claude Code agent.
2Problem & target user
The problem is students needing remote access to research documents without downloading them. The target user is students who must review documents online, requiring a reliable, browser-based solution for quick access to academic materials.
3Goals & success metrics
The primary goal is to enable seamless document review without downloads. Success will be measured by users completing 80% of their document reviews without downloading files. No other metrics are specified at this time.
4Non-goals
Do not include offline access. Avoid features for document editing, creation, or collaboration. Do not develop mobile apps or desktop clients. Do not store document content beyond metadata.
5Features
Basic document viewing (PDFs, DOCX, etc.)
Document search within files
User account system for access management
Document metadata storage (e.g., titles, upload dates)
6Tech stack & deployment
Framework: Next.js
Hosting: Cloudflare
Development: Claude Code agent
Application type: Web-only (no mobile/desktop clients)
7Data model
Stores user accounts (basic authentication details)
Stores document metadata (file type, size, upload timestamp, author, title)
No document content storage beyond metadata
8Decisions & constraints
Fixed decisions:
- Web-only platform
Constraints:
- No offline access
- No document editing
Assumptions:
- Target user is students accessing research materials
- Success metric is 80% of reviews completed without downloads
- Document search is required in first version
- User accounts and document metadata are the only data entities
- Web-only platform is the only deployment option
9Phases
Phase 1: Implement basic document viewing and user authentication
Phase 2: Add document search functionality
Phase 3: Optimize performance for large files
Phase 4: Add metadata management and analytics (if needed)
10Instructions for the AI coding agent
Check before starting:
- Confirm all non-goals (offline access, editing, etc.) are excluded
- Verify tech stack matches requirements (Next.js, Cloudflare, Claude Code)
Never change without asking:
- Core focus on document reading (no editing/creation features)
- Data model constraints (no content storage)
Know a change is correct:
- The feature aligns with the first version requirements (basic viewing, search)
- The implementation uses the specified tech stack and avoids non-goals