Skip to content

feat: DocuFlow AI - Enterprise SaaS Document Management Platform#1

Open
kiro-agent[bot] wants to merge 1 commit into
mainfrom
feat/docuflow-ai-saas
Open

feat: DocuFlow AI - Enterprise SaaS Document Management Platform#1
kiro-agent[bot] wants to merge 1 commit into
mainfrom
feat/docuflow-ai-saas

Conversation

@kiro-agent

@kiro-agent kiro-agent Bot commented May 18, 2026

Copy link
Copy Markdown

This pull request was generated by @kiro-agent 👻

Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro autonomous agent


DocuFlow AI - Full-Stack SaaS Platform

A complete enterprise-grade SaaS application for AI-powered document management, designed as a portfolio piece demonstrating advanced full-stack development skills.

What's Included

Architecture & Infrastructure:

  • Next.js 14 App Router with TypeScript (strict)
  • Multi-tenant PostgreSQL database with Prisma ORM + pgvector
  • AWS S3 file storage with presigned URLs
  • Stripe billing integration with webhooks

Authentication & Security:

  • NextAuth.js v5 with Google, GitHub, and Credentials providers
  • JWT-based sessions with role-based access control (RBAC)
  • Middleware-protected routes
  • Complete audit trail with user, timestamp, IP, and metadata

AI Features:

  • GPT-4o-mini document analysis (classification, summarization, entity extraction)
  • Vector embeddings (text-embedding-3-small, 1536 dimensions)
  • Semantic search with cosine similarity via pgvector
  • Document Q&A chat with contextual AI answers
  • Auto-tagging and language detection

Frontend:

  • Professional dashboard with collapsible sidebar
  • Dark/light theme toggle
  • Drag & drop multi-file upload with progress tracking
  • Grid/list view toggle for documents
  • Real-time search with filters
  • Responsive landing page (hero, features, pricing, testimonials)

Billing:

  • Stripe Checkout integration
  • Webhook handling (subscription lifecycle)
  • Customer Portal for self-service
  • Three-tier pricing (Free/Pro/Enterprise) with usage limits

Tech Stack

Layer Technology
Framework Next.js 14 (App Router)
Language TypeScript
Database PostgreSQL + Prisma + pgvector
Auth NextAuth.js v5
AI OpenAI GPT-4o-mini + Embeddings
Storage AWS S3
Billing Stripe
UI Tailwind CSS + Lucide Icons
State TanStack Query + Zustand

Pages & Routes

  • / - Marketing landing page
  • /login, /register - Auth pages (split-screen design)
  • /documents - Document list (grid/list, filters, search)
  • /documents/:id - Document detail + AI panel
  • /folders - Folder management
  • /search - Semantic AI search
  • /dashboard - Analytics dashboard
  • /billing - Plans & subscription management
  • /audit-log - Activity trail
  • /settings - Workspace settings

How to Run

cd docuflow-ai
pnpm install
cp .env.example .env  # Fill in your keys
pnpm prisma generate
pnpm prisma db push
pnpm dev

A complete enterprise-grade SaaS application for AI-powered document management.

Tech Stack:
- Next.js 14 (App Router) + TypeScript
- PostgreSQL + Prisma + pgvector (vector embeddings)
- NextAuth.js v5 (OAuth + Credentials, RBAC)
- OpenAI GPT-4o (classification, summarization, Q&A, embeddings)
- AWS S3 (file storage with presigned URLs)
- Stripe (billing, webhooks, customer portal)
- Tailwind CSS + Lucide Icons

Key Features:
- Multi-tenant architecture with organization workspaces
- AI document analysis (auto-classify, summarize, tag, extract entities)
- Semantic vector search with cosine similarity ranking
- Document Q&A chat with AI-powered contextual answers
- Drag & drop multi-file upload with progress tracking
- Smart folder organization with nested hierarchy
- Granular RBAC permissions per document/folder
- Complete audit trail with metadata
- Stripe billing (Free/Pro/Enterprise plans)
- Professional landing page and dashboard UI
- Dark/light theme with responsive design

Co-authored-by: joegauto <275356360+joegauto@users.noreply.github.com>
@netlify

netlify Bot commented May 18, 2026

Copy link
Copy Markdown

Deploy Preview for curious-sunshine-d52fd4 failed.

Name Link
🔨 Latest commit eefb94e
🔍 Latest deploy log https://app.netlify.com/projects/curious-sunshine-d52fd4/deploys/6a0b46ee27fa5d00094e57a5

@netlify

netlify Bot commented May 18, 2026

Copy link
Copy Markdown

Deploy Preview for meek-starburst-a6b07d failed.

Name Link
🔨 Latest commit eefb94e
🔍 Latest deploy log https://app.netlify.com/projects/meek-starburst-a6b07d/deploys/6a0b46ee91dd030008bf18c9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant