LexiGen AI is a professional, AI-powered legal document automation platform designed for small businesses, freelancers, and individuals. It leverages the power of Google's Gemini AI to instantly draft high-quality, legally sound documents such as Non-Disclosure Agreements (NDAs), Freelance Contracts, and more.
- 🤖 AI-Powered Drafting: Generate comprehensive legal documents in seconds using Google Gemini 3 Flash.
- 📄 Professional PDF Export: Download multi-page, professionally formatted PDFs complete with watermarks, official seals, and signature blocks.
- 🔐 Secure Authentication: Seamless Google Sign-In integration via Firebase Authentication.
- 📂 Document History: Securely save, view, and manage your previously generated documents using Cloud Firestore.
- 💬 Legal AI Assistant: Built-in chatbot to help answer basic questions and guide you through the platform.
- 🌍 Multi-Language Support: Generate documents in English, formal Hindi, and other supported languages.
- 🛡️ Full-Stack Security: Custom Express backend ensures your Gemini API keys remain completely hidden from the client browser.
- Frontend: React 19, Vite, Tailwind CSS, Framer Motion, Lucide Icons
- Backend: Node.js, Express.js
- AI Integration: Google GenAI SDK (
@google/genai) - Database & Auth: Firebase (Firestore, Google Auth)
- PDF Generation: jsPDF, html2canvas
- Node.js (v18 or higher)
- A Google Gemini API Key
- A Firebase Project (with Google Authentication and Firestore enabled)
-
Clone the repository:
git clone https://github.com/yourusername/lexigen-ai.git cd lexigen-ai -
Install dependencies:
npm install
-
Environment Variables: Create a
.envfile in the root directory and add your Gemini API key:GEMINI_API_KEY=your_gemini_api_key_here
-
Firebase Configuration: Ensure your
firebase-applet-config.jsonis present in the root directory with your Firebase project details. -
Run the Development Server:
npm run dev
The app will be available at
http://localhost:3000.
LexiGen AI is configured to be easily deployed to platforms like Render.
- Connect your GitHub repository to Render (as a Web Service).
- Set the Build Command to:
npm install && npm run build - Set the Start Command to:
npm start - Add your
GEMINI_API_KEYto the Environment Variables in the Render dashboard. - Important: Ensure your Render URL (e.g.,
your-app.onrender.com) is added to the Authorized Domains in your Firebase Authentication settings.
LexiGen AI is a tool designed to assist with document drafting and is NOT a replacement for professional legal counsel. The documents generated by this application are for informational purposes and should be reviewed by a qualified attorney in your jurisdiction before execution. The creators of LexiGen AI assume no liability for any legal issues arising from the use of these documents.