A modern AI-powered frontend interface for chatting with PDF documents. Built with Next.js App Router, ShadCN UI, and TailwindCSS.
- Upload PDF files and chat with their content
- View and switch between multiple chat sessions
- Delete sessions with confirmation
- Seamless auth with protected routes
- Fully responsive UI with smooth UX
- Toast notifications and animated typing indicator
- Next.js 14 (App Router)
- TypeScript
- TailwindCSS
- ShadCN UI
- Lucide Icons
- React Context
- React Query (for data fetching and caching)
- Zod (for schema validation)
git clone https://github.com/faselgodbcho/pdfai-frontend.git
cd pdfai-frontendnpm install
# or
pnpm install
# or
yarn installnpm run devOpen http://localhost:3000 in your browser.
⚠️ Make sure to set the required environment variables in a .env.local file (see .env.example for reference).
Create a .env.local file and configure it like:
NEXT_PUBLIC_BACKEND_BASE_URL=https://your-backend-api.comnpm run buildThen run:
npm start