How rushikesh5035/summarist-ai works
Summarist.ai is a PDF-understanding SaaS: an authenticated user uploads a document, chooses summary or chat, and gets saved insights or a document conversation. The synchronous summary path and chat setup are visible in the dashboard excerpt; chat requests perform retrieval-augmented generation in the API route. README capabilities also include asynchronous processing with live progress, a unified vault, exports, usage tiers, and billing. Several of those implementations were not sampled, so their paths use supported enclosing directories and their connections are documented rather than inferred from imports.
Main entry points: DashboardClient.tsx Upload dashboard · route.ts Chat API and retrieval · schema.ts Postgres and pgvector · payments.ts Polar billing
Components 20
Product experience
- Upload dashboard
app/(logged-in)/dashboard/DashboardClient.tsx - Summary viewer
components/summaries - PDF chat UI
components/chat/ChatPage.tsx - Unified vault
components/vault
Document workflows
- PDF upload
utils/uploadthing.ts - Summary generation
actions/upload-actions.ts - Chat setup
actions/chat-actions.ts - Async PDF processing
inngest/functions/chatPdfInFun.ts - Chat API and retrieval
app/api/chat/[id]/route.ts - Gemini models
lib/geminiai.ts - UploadThing service
- Inngest service
inngest/client.ts
Data and identity
- Chat and vector helpers
lib/chat-pdf.ts - Summary helpers
lib/summaries.ts - Postgres and pgvector
db/schema.ts - Clerk identity
app/api/webhooks/clerk/route.ts
Plans and billing
- Credits and usage limits
lib/credits.ts - Polar billing
lib/payments.ts - Polar service
Other components
- PDF user
Connections 21
- PDF user → Upload dashboard: uploads PDF
app/(logged-in)/dashboard/DashboardClient.tsx - Upload dashboard → PDF upload: starts upload
app/(logged-in)/dashboard/DashboardClient.tsx - PDF upload → UploadThing service: stores file
README.md - Upload dashboard → Summary generation: requests summary
app/(logged-in)/dashboard/DashboardClient.tsx - Summary generation → Summary viewer: saves result
README.md - Upload dashboard → Chat setup: starts chat
app/(logged-in)/dashboard/DashboardClient.tsx - Chat setup → Async PDF processing: queues processing
README.md - Async PDF processing → Inngest service: runs durable job
README.md - PDF user → PDF chat UI: asks question
README.md - PDF chat UI → Chat API and retrieval: sends message
README.md - Chat API and retrieval → Chat and vector helpers: retrieves chunks
app/api/chat/[id]/route.ts - Chat API and retrieval → Gemini models: embeds and answers
app/api/chat/[id]/route.ts - Chat API and retrieval → Postgres and pgvector: stores messages
README.md - Chat and vector helpers → Postgres and pgvector: searches vectors
README.md - PDF user → Unified vault: opens saved work
README.md - Summary viewer → PDF user: exports insights
README.md - Clerk identity → Postgres and pgvector: syncs identity
README.md - PDF user → Credits and usage limits: uses plan quota
README.md - PDF user → Polar billing: manages subscription
README.md - Polar billing → Polar service: opens billing portal
- Polar billing → Postgres and pgvector: loads customer id