DocFlowAI is a sophisticated document chat platform that enables intelligent conversations with your documents using advanced AI capabilities. Built with modern web technologies, it offers a premium, enterprise-grade experience for document analysis and interaction.
- Real-time chat with AI about your documents
- Persistent chat history with Supabase integration
- Markdown support for rich text formatting
- Collapsible sidebars for optimal workspace utilization
- Professional UI with smooth animations
- Intuitive file explorer
- Document upload capabilities
- File preview support
- Organized file structure
- Modern three-column layout
- Responsive design with smooth animations
- Professional color scheme with gradients
- Clean typography and spacing
- Framer Motion animations
- Secure document handling
- Efficient state management
- Optimized file processing
- Supabase backend integration
- Node.js 18+ installed
- Supabase account and project
- Environment variables configured
- Clone the repository:
git clone https://github.com/RaheesAhmed/.git
cd AIDocFlow- Install dependencies:
npm install- Set up environment variables:
Create a
.env.localfile with the following:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_key- Run the development server:
npm run devVisit http://localhost:3000 to see the application.
- Framework: Next.js 14
- Styling: Tailwind CSS
- Animations: Framer Motion
- State Management: React Hooks
- UI Components: Radix UI
- Markdown: react-markdown
- Database: Supabase
- API Routes: Next.js API Routes
- File Processing: Custom processing pipeline
- @radix-ui/* - UI components
- date-fns - Date formatting
- react-markdown - Markdown rendering
- framer-motion - Animations
- @supabase/supabase-js - Database integration
docflowai/
├── app/ # Next.js app directory
│ ├── api/ # API routes
│ ├── dashboard/ # Dashboard page
│ └── upload/ # File upload functionality
├── components/ # React components
│ ├── ui/ # Reusable UI components
│ └── ... # Feature components
├── lib/ # Utility functions
└── public/ # Static assets
The project uses a custom Tailwind configuration with:
- Custom color schemes
- Typography plugin
- Extended theme properties
Required tables:
chat_sessions: Stores chat historychat_messages: Individual chat messagesfiles: Document storage
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js team for the amazing framework
- Supabase team for the backend infrastructure
- Radix UI for accessible components
- All contributors and users of DocFlowAI
Made with ❤️ by Rahees Ahmed