LegalFlow is an AI-powered legal document management system that helps legal professionals draft, extract information from, and analyze legal documents with ease.
- Multiple AI model support (Gemini Pro, OpenRouter models)
- Template-based document generation
- Custom instructions and context support
- Support for various legal document types:
- Writ Affidavit
- Shareholders' Agreement
- Share Subscription Agreement
- Board Resolution
- Memorandum of Association
- Articles of Association
- Non-Disclosure Agreement
- ROC Filling Forms
- Legal Notice
- Extract key information from legal documents:
- Dates and Events
- Timeline analysis
- Critical deadlines
- Legal requirements
- Multiple AI model support for accurate extraction
- Structured JSON output for easy integration
- AI-powered document analysis
- Multiple model support for diverse analysis capabilities
- Custom analysis instructions
- Frontend: Next.js 14, React, TypeScript, Tailwind CSS
- Backend: Next.js API Routes
- AI Integration:
- Google Gemini Pro (Direct API)
- OpenRouter API (Multiple Models)
- Database: Railway (PostgreSQL)
- Authentication: [To be implemented]
- Clone the repository:
git clone https://github.com/yourusername/legalflow.git
cd legalflow
- Install dependencies:
npm install
- Set up environment variables:
cp .env.example .env.local
Required environment variables:
GOOGLE_API_KEY
: For Gemini Pro APIOPENROUTER_API_KEY
: For OpenRouter API accessDATABASE_URL
: Railway PostgreSQL connection string
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser.
POST /api/draft
- Generate legal documents using AI models
- Supports multiple model types and templates
POST /api/extract
- Extract dates, events, and other key information
- Structured JSON output
- Multiple model support
POST /api/analyze
- AI-powered document analysis
- Custom analysis parameters
- 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.
- OpenAI for GPT models
- Google for Gemini Pro
- OpenRouter for model access
- All contributors and users of LegalFlow