Next.js (App Router) + TypeScript app for reading PDFs with an AI assistant. Upload a PDF, select text, and get contextual explanations via a backend API.
- Install deps
npm install- Run dev server
npm run dev- Open
http://localhost:3000and upload a PDF.
- Next.js 14 + App Router
- PDF.js (
pdfjs-dist) - Tailwind CSS
- API route at
src/app/api/process/route.tscurrently returns mocked responses. Replace with your FastAPI endpoint or wire to a serverless function.