Skip to content

Radically simplify architecture: Remove auth, database, and external …#29

Open
sign-u-p wants to merge 1 commit into
Nutlope:mainfrom
sign-u-p:claude/simplify-app-architecture-011CUQpJNMsZcBK2As2LEFSX
Open

Radically simplify architecture: Remove auth, database, and external …#29
sign-u-p wants to merge 1 commit into
Nutlope:mainfrom
sign-u-p:claude/simplify-app-architecture-011CUQpJNMsZcBK2As2LEFSX

Conversation

@sign-u-p

Copy link
Copy Markdown

…services

This commit transforms the application into a lightweight, self-contained Next.js app:

What's New:

  • Document selection page to choose PDFs from /public/documents/
  • Session-based in-memory vector storage (no database)
  • Simplified chat interface with page-level citations
  • Support for multiple document selection
  • Dynamic PDF viewer with document tabs

What's Removed:

  • Clerk authentication (no auth required)
  • PostgreSQL + Prisma (no database)
  • Pinecone/MongoDB vector stores (in-memory only)
  • Bytescale file uploads (local PDFs)
  • Together AI (switched to OpenAI)

New Architecture:

  • /lib/document-scanner.ts - Scans /public/documents/
  • /lib/pdf-processor.ts - Processes and embeds PDFs
  • /lib/session-manager.ts - In-memory session storage
  • /app/page.tsx - Document selection UI
  • /app/chat/page.tsx - PDF viewer + chat interface
  • /app/api/documents/ - List available PDFs
  • /app/api/process/ - Process selected documents
  • /app/api/session/ - Get session info
  • /app/api/chat/ - Simplified RAG chat endpoint

Setup:

  1. Add PDFs to /public/documents/
  2. Set OPENAI_API_KEY in .env.local
  3. npm install && npm run dev

Sessions expire after 1 hour. Everything runs in Next.js with minimal resources.

🤖 Generated with Claude Code

…services

This commit transforms the application into a lightweight, self-contained Next.js app:

## What's New:
- Document selection page to choose PDFs from /public/documents/
- Session-based in-memory vector storage (no database)
- Simplified chat interface with page-level citations
- Support for multiple document selection
- Dynamic PDF viewer with document tabs

## What's Removed:
- Clerk authentication (no auth required)
- PostgreSQL + Prisma (no database)
- Pinecone/MongoDB vector stores (in-memory only)
- Bytescale file uploads (local PDFs)
- Together AI (switched to OpenAI)

## New Architecture:
- /lib/document-scanner.ts - Scans /public/documents/
- /lib/pdf-processor.ts - Processes and embeds PDFs
- /lib/session-manager.ts - In-memory session storage
- /app/page.tsx - Document selection UI
- /app/chat/page.tsx - PDF viewer + chat interface
- /app/api/documents/ - List available PDFs
- /app/api/process/ - Process selected documents
- /app/api/session/ - Get session info
- /app/api/chat/ - Simplified RAG chat endpoint

## Setup:
1. Add PDFs to /public/documents/
2. Set OPENAI_API_KEY in .env.local
3. npm install && npm run dev

Sessions expire after 1 hour. Everything runs in Next.js with minimal resources.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 23, 2025

Copy link
Copy Markdown

@claude is attempting to deploy a commit to the Together AI Team on Vercel.

A member of the Team first needs to authorize it.

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.

2 participants