Saaransh - Transform PDFs into an easy-to-read breautiful reel of impactful summaries with the power of AI!
Built with Next.js 15 App Router, Clerk for Authentication, React 19, OpenAI GPT-4, Langchain, ShadcN UI Components, Tailwind CSS 4, NeonDB, UploadThing, Cashfree for payments, Typescript, TailwindCSS and more.
- π Next.js 15 App Router - Server-side rendering, routing, and API endpoints with Server Components.
- βοΈ React - Interactive user interfaces with reusable components.
- π Clerk - Secure authentication with Passkeys, GitHub, and Google Sign-in.
- π€ GPT-4 - AI-powered summarization with contextual understanding and emoji-enhanced output.
- π Langchain - PDF parsing, text extraction, and document chunking.
- π¨ ShadCN UI - Accessible, customizable React components.
- ποΈ NeonDB (PostgreSQL) - Serverless database for summaries and user data.
- π€ UploadThing - Secure PDF uploads (up to 32MB) and file management.
- π³ Cashfree - Secure and ease payment processing.
- π TypeScript - Static typing for enhanced development experience.
- π¨ TailwindCSS 4 - Utility-first, responsive styling.
- π Clear, structured summaries with key points and insights.
- π¨ Beautiful, interactive summary viewer with progress tracking.
- π Secure file handling and processing.
- π Protected routes and API endpoints for authentication and security.
- π² Flexible pricing plans (Basic and Pro).
- π© Webhook implementation to store the clerk user to our own database.
- π₯οΈ User dashboard for managing summaries.
- π± Responsive design for mobile and desktop.
- π Real-time updates and path revalidation.
- π Production-ready deployment.
- π Toast notifications for upload status, processing updates, and error handling.
- β‘ Performance optimizations.
- π SEO-friendly summary generation.
Here are some previews of the application:
- A beautiful minimalistic landing page
- Cool looking pricing cards to buy plans
- A simple UI to upload PDFs
- Beautiful dashboard to view all of the summaries
- A single summary id page to read AI generated summary
To get started with this project:
-
Fork the repository.
-
Add .env file to your project:
Take reference from env_example.txt
-
Create the required credentials:
- OpenAI API key
- Clerk authentication setup
- UploadThing configuration
- Cashfree payment setup
- NeonDB database connection
- Click the "Fork" button in the top right corner of this repository to create your own copy
- Clone your forked repository to your local machine
- Install dependencies with
npm install
- If not work for some dependencies, use
npm install <name> --force
ornpm install <name> --legacy-peer-deps
- If not work for some dependencies, use
- Set up your environment variables
- Run the development server with
npm run dev
- Clerk for authentication
- OpenAI for GPT-4 API
- Langchain for document processing
- ShadCN UI for components