Skip to content
Breeze

Breeze

An ai powered chat and pdf assistant

Created on 20th January 2026

β€’

Breeze

Breeze

An ai powered chat and pdf assistant

The problem Breeze solves

AI Chat Platform
A full-stack AI chat and pdf application

πŸ” Authentication using NextAuth

πŸ’¬ Real-time AI chat with OpenAI

🧠 Chat session auto-generation

πŸ—„οΈ Supabase DB storage for chats/messages

⭐ Favourites & history

🚫 Rate limiting per user

⚑ Server Actions for backend logic

🎨 Modern UI with Tailwind + ShadCN

CategoryTech
FrameworkNext.js 14 (App Router)
AIOpenAI (AI SDK)
DBSupabase / PostgreSQL
AuthNextAuth
StylingTailwind CSS, ShadCN
DeploymentVercel

app/
β”œβ”€β”€ (auth)/
β”œβ”€β”€ api/
β”‚ └── v1/
β”‚ └── chat/
β”‚ β”œβ”€β”€ route.ts
β”‚ β”œβ”€β”€ rate-limit/route.ts
β”‚ └── favourite/route.ts
β”œβ”€β”€ actions/
β”‚ └── chatSession.ts
components/
lib/
supabase/
.env.local

NEXTAUTH -------------------------

NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your-secret-key

OPENAI ---------------------------

OPENAI_API_KEY=your-openai-key

SUPABASE -------------------------

SUPABASE_URL=https://xxxxx.supabase.co
SUPABASE_ANON_KEY=your-public-anon-key
SUPABASE_SERVICE_KEY=your-service-role-key

RATE LIMIT -----------------------

RATE_LIMIT=5

Local Development
npm install
npm run dev

DEPLOYMENT

git add .
git commit -m "Deploying to Vercel"
git push origin main

  1. Import repo into Vercel
  2. Add all environment variables

From .env.local

  1. After deployment, update:
  2. NEXTAUTH_URL=https://your-

Challenges I ran into

There are some challenges that come in building this application

  1. Architecture & System Design Challenges
    πŸ”Ή Server vs Client Components (Next.js App Router)
    Deciding what runs on Server Components, Client Components, or Edge
    AI calls often require secrets β†’ must stay server-side
    Overusing client components can hurt performance
    Challenge: Clean separation of concerns without duplicating logic
    πŸ”Ή API Layer Design
    Choosing between:
    Next.js Route Handlers
    Separate backend (NestJS, FastAPI, etc.)
    AI workloads can be long-running or streaming
    Challenge: Avoid blocking requests and manage async AI workflows
  2. Performance & Scalability
    πŸ”Ή AI Latency
    LLM calls are slow (1–10+ seconds)
    Streaming responses complicate UI logic
    Users expect instant feedback
    Challenge: Maintaining good UX despite slow AI responses
    Mitigations:
    Token streaming
    Skeleton loaders
    Background jobs + polling
    πŸ”Ή Cold Starts & Serverless Limits
    Serverless functions may cold-start
    AI SDKs increase bundle size
    Edge runtime has limited Node APIs
    Challenge: Choosing the right runtime (Node vs Edge)
    πŸ”Ή Caching Complexity
    AI responses are often:
    Non-deterministic
    User-specific
    Contextual
    Challenge: Traditional caching strategies often don’t apply
  3. Data & State Management
    πŸ”Ή Prompt Engineering at Scale
    Prompts evolve frequently
    Hard-coded prompts become unmaintainable
    Challenge: Versioning, testing, and managing prompts like code

Tracks Applied (1)

AOPS

This project fits well into this track as it focuses on building an AI-powered developer-facing application that leverag...Read More

Discussion

Builders also viewed

See more projects on Devfolio