Summarium is a production-ready AI SaaS platform that transforms long, complex PDF documents into clear, structured, and interactive summaries. Built with a modern full-stack architecture, it emphasizes performance, scalability, security, and user experience, enabling users to consume information faster and more efficiently.
π Live Demo: https://pdf-summarizer-gilt.vercel.app/
- AI-powered, structured summaries with key insights and emojis
- Secure, scalable PDF processing pipeline
- Subscription-based SaaS model with Stripe integration
- Modern UI with real-time feedback and responsive design
- Production-grade architecture suitable for real-world usage
- Clear, structured AI-generated summaries
- Key points, insights, and markdown-formatted output
- SEO-friendly summaries suitable for blogs and documentation
- Interactive summary viewer with progress indicators
- Toast notifications for uploads, processing, and errors
- Fully responsive UI for mobile and desktop
- Real-time UI updates and path revalidation
- Secure server-side PDF processing
- Role-based protected routes and API endpoints
- Authentication via Passkeys, GitHub, and Google
- User dashboard to manage uploaded PDFs and summaries
- Markdown export for blog-ready content
- Basic and Pro subscription plans
- Stripe Checkout and customer portal
- Webhook-driven subscription lifecycle handling
- Next.js (App Router) β Server Components, Server Actions, API routes, SSR
- React 19 β Modern interactive UI components (experimental features used cautiously)
- TypeScript β Type-safe, scalable codebase
- Tailwind CSS v4 β Utility-first responsive styling
- shadcn/ui β Accessible and customizable UI components
- OpenAI (GPT-4 / GPT-4o -'mini') β Context-aware PDF summarization
- LangChain β PDF parsing, chunking, and text extraction
- Clerk β Secure authentication with OAuth & Passkeys
- UploadThing β Secure PDF uploads (up to 32MB)
- Stripe β Subscription billing, cancellations, and webhooks
- Neon DB β Serverless PostgreSQL database
- Vercel β Production deployment and edge hosting
- Node.js 18+
- npm / pnpm / yarn
- Stripe CLI (for webhook testing)
git clone https://github.com/your-username/summarium.git
cd summariumnpm installCreate a .env.local file in the root directory and configure the following:
# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
# OpenAI
OPENAI_API_KEY=
# Stripe
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
# Database (Neon PostgreSQL)
DATABASE_URL=
# UploadThing
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=npm run devnpm run build
npm startSummarium relies on Stripe webhooks to manage subscription events.
stripe listen --forward-to localhost:3000/api/webhookcheckout.session.completedcustomer.subscription.updatedcustomer.subscription.deletedinvoice.payment_succeeded
| Plan | Description |
|---|---|
| Basic | Limited PDF uploads & summaries |
| Pro | Unlimited PDF uploads and summaries |
- Card Number: 4242 4242 4242 4242
- Expiry Date: Any future date
- CVC: Any 3 digits
- ZIP Code: Any valid ZIP
- User uploads a PDF securely via UploadThing
- Server extracts and chunks text using LangChain
- AI generates structured summaries using OpenAI
- Summaries are stored in PostgreSQL (Neon)
- UI updates in real time via Server Actions
- PDFs are processed server-side only
- Authentication enforced on all protected routes
- Upload size limited to 32MB
- Subscription access validated via Stripe webhooks
- Team workspaces
- Summary highlighting and annotations
- Vector search across uploaded PDFs
- Export to Notion & Google Docs
This project is licensed under the MIT License.
Contributions are welcome! Feel free to open issues or submit pull requests.
If you find this project helpful, consider giving it a β on GitHub.