MARKY
AI Powered Note Highlighter
The problem MARKY solves
Marky is an AI-powered automated studying tool designed to help students and professionals review documents faster. Instead of checking every line yourself, Marky reads your PDF and automatically highlights the most important key concepts and sentences for you. You get a downloadable PDF that looks exactly like your original, but with all the important parts already highlighted.
Problem It Solves
Marky addresses the challenge of information overload. In academic and professional settings, people often face massive amounts of text—research papers, lecture notes, technical documentation—that are time-consuming to process and easy to forget.
What People Can Use It For
• Students: Quickly turning 100-page research papers or dense lecture notes into revision-ready summaries before exams.
• Professionals: Rapidly scanning technical documentation or reports to grasp the core concepts without getting lost in the details.
• Researchers: Filtering "noise" from "signal" in literature reviews to focus only on the most critical arguments and data.
How It Makes Tasks Easier & Safer
1. Saves Time (Efficiency): Instead of spending hours manually reading and highlighting a document, Marky automates this in seconds.
2. Improves Retention: By isolating key concepts and "significant sentences," it creates an optimized study guide, making it easier to review and remember important information.
3. Reduces Cognitive Load: It removes the mental fatigue of skimming, ensuring you don't miss connecting details or lose context while trying to read quickly.
4. Universal Access: It generates a standard PDF file with highlights that works in any reader (Adobe, Preview, etc.), so your "smart notes" are portable and compatible everywhere.
In short: Marky reads the document so you don't have to read every single word, highlighting the parts that actually matter.
Challenges I ran into
1. Precise Text Mapping (The "Hallucination" Problem)
• The Challenge: The core feature relies on mapping the AI's selected "important sentences" back to their exact X/Y coordinates in the PDF to apply the yellow highlight.
• The Issue: LLMs (even Gemini) sometimes slightly paraphrase text or ignore whitespace/newlines. If the AI returned text that didn't exactly match the underlying PDF string (character-for-character), the coordinate search would fail, and no highlight would appear.
• The Solution: We had to carefully prompt the model to "extract exact substrings" and implement fuzzy matching or rigorous text cleaning in Python to ensure we could find the needle in the haystack.
2. Cross-Origin Resource Sharing (CORS) & Connectivity
• The Challenge: Connecting a modern Next.js 16 frontend (running on port 3000) with a Python FastAPI backend (running on port 8000).
• The Issue: We faced repeated Connection Refused and Failed to fetch errors. Browsers block requests between different ports by default for security.
• The Solution: We had to explicitly configure CORSMiddleware in FastAPI to allow requests specifically from http://localhost:3000, enabling secure but open communication between our two independent servers.
3. Handling PDF Structure
• The Challenge: PDFs are messy. They aren't just strings of text; they are complex visual layouts.
• The Issue: Extracting text often resulted in weird artifacts, broken words at the end of lines, or mixed-up headers and footers.
• The Solution: We utilized PyMuPDF (fitz) for its robust parsing capabilities, but still had to write logic to handle different PDF layouts to ensure the text sent to the AI was coherent.
4. Modern Tech Stack Integration
• The Challenge: Integrating the latest versions of libraries (Next.js 16, Tailwind v4).
• The Issue: We encountered "Module Not Found" errors (e.g., for existing UI components like Buttons or path aliases @/) due to rigorous strictness in TypeScript and the new directory structures.
• The Solution: We had to strictly validate our tsconfig.json paths and ensure all shadcn/ui components were correctly placed and exported to satisfy the build system.
Tracks Applied (3)