Inspiration We named the project TuonTa—which translates to "let's study" in Cebuano—because studying shouldn't feel like an overwhelming solo struggle. We noticed a common problem among students: exam dates are scattered across calendars, lecture notes live in messy folders, and most students waste valuable energy just figuring out what to study next instead of actually learning. We wanted to build a single, distraction-free workspace that bridges the gap between deadline planning and active comprehension, turning a little bit of planning into a lot of academic possibility.
What it does TuonTa is a web-based AI study planner and document study buddy designed for Build Your First AI App 2026. It pairs a deterministic, deadline-aware study scheduler with an AI-powered document assistant:
Smart Deadline-Aware Scheduling: Students enter their exam dates, topics, target study hours, and current confidence levels via a calendar or form. TuonTa automatically generates a 90-day study schedule broken into manageable daily sessions (up to 45 minutes), complete with capacity warnings and CSV export.
AI Study Buddy & Document Reader: Students can upload PDFs (up to 80 pages), DOCX, TXT, or Markdown files right in the browser. TuonTa extracts the text to generate structured summaries, clean study notes, source-labeled Q&A responses, and interactive 5-question practice quizzes with revealable answers.
Privacy-First & Zero Friction: No account sign-up is required. Exam progress is saved locally in the browser (localStorage), and files are parsed client-side so raw file bytes are never stored on a server.
How we built it We designed TuonTa with a clean, dependency-free architecture focused on speed, security, and reliability:
Frontend: Built with vanilla HTML, CSS, and JavaScript, featuring a responsive homepage and dedicated tabs for the Study Planner and Study Buddy that sync state across same-origin tabs. Client-side document parsing is powered by PDF.js and Mammoth.js.
Deterministic Scheduling Engine: Instead of letting an LLM hallucinate calendar math, we coded a deterministic scheduler in JavaScript that strictly prioritizes upcoming exam deadlines, low-confidence topics, remaining study hours, and daily time budgets.
Backend & AI Integration: Built on Node.js and deployed as a Cloudflare Worker. When a student asks a question or generates notes, our same-origin /api/ai route securely communicates with the Groq Chat Completions API running OpenAI GPT-OSS 20B, keeping our GROQ_API_KEY completely hidden from the browser.
Development Workflow: I designed the overall concept, website flow, and user structure, and used OpenAI Codex as an AI-assisted development tool to help accelerate implementation, testing, and documentation.
Challenges we ran into Balancing AI Flexibility with Calendar Constraints: Early on, we realized relying purely on AI to generate schedules could lead to unrealistic daily workloads. Separating the deterministic scheduling logic (enforced by code) from the AI coaching layer solved this cleanly.
Handling Large Documents within Context Limits: Academic PDFs can easily exceed prompt limits. To ensure fast, accurate answers without blowing up token quotas, we built a retrieval pipeline that ranks up to 12 relevant excerpts by keyword overlap for Q&A, and samples sections across the beginning, middle, and end for summaries and quizzes—while transparently labeling when coverage is partial.
Browser-Only Model Limitations: We originally explored running FLAN-T5 directly in the browser, but found the model weights heavy and the outputs limited for complex study notes. Migrating to hosted inference via Groq gave us dramatically faster, higher-quality responses with zero download time for visitors.
Accomplishments that we're proud of Zero-Dependency Production Build: Our build script (build.mjs) bundles the entire frontend and API routes into a single, dependency-free Cloudflare Worker ES module.
Grounded & Honest AI Responses: By instructing the model to treat uploaded documents strictly as reference data and admit when information is missing—paired with source labels—we built a study tool students can actually trust.
Comprehensive Automated Testing: We wrote automated tests covering edge cases like tight study budgets, exam boundaries, document excerpt retrieval, and API error/quota handling so the app fails gracefully if anything goes wrong.
What we learned API & Credential Security: I learned how to generate, configure, and protect an API key to access open-source AI models via Groq, ensuring secrets stay in server-side runtime environments and are never exposed to the client.
Human-Centered App Flow: Designing TuonTa reinforced how important user flow is—separating the planner and study buddy into focused tabs and including sample exams and biology notes makes it effortless for first-time visitors to see the value immediately.
AI-Assisted Engineering: Working with OpenAI Codex showed how combining clear architectural planning with AI coding assistance makes it possible to ship a full-stack, tested AI application rapidly.
What's next for TuonTa OCR Support for Scanned Notes: Adding optical character recognition so students can upload photos of handwritten notes or scanned textbook pages.
Multilingual Support: Expanding beyond English to better support Filipino and Cebuano study materials, staying true to the spirit of TuonTa.
Spaced Repetition & Export Options: Integrating spaced-repetition intervals directly into the scheduler and allowing one-click exports to Anki flashcards and Google Calendar.
Built With
- and
- and-progress.-vercel-hosts-the-website
- and-responsive-design.-javascript-?-calendar
- and-server-logic.-node.js-?-runs-the-server-side-javascript-through-vercel-functions.-the-apis-and-libraries-are:-groq-chat-completions-api-?-connects-to-the-gpt-oss-20b-ai-model-for-explanations
- and-study-guidance.-pdf.js-?-extracts-text-from-pdf-uploads.-mammoth.js-?-extracts-text-from-word-.docx-files.-browser-localstorage-api-?-saves-exam-dates
- chatbot
- file-handling
- github
- layout
- notes
- quizzes
- source
- stores
- study-plans
- study-scheduling
- styling
- summaries
- the
- tuonta-uses:-html-?-page-structure.-css-?-colors