Skip to content

Repository files navigation

⚖️ LexiGen AI

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.

LexiGen AI Preview

✨ Key Features

  • 🤖 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.

🛠️ Tech Stack

  • 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

🚀 Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • A Google Gemini API Key
  • A Firebase Project (with Google Authentication and Firestore enabled)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/lexigen-ai.git
    cd lexigen-ai
  2. Install dependencies:

    npm install
  3. Environment Variables: Create a .env file in the root directory and add your Gemini API key:

    GEMINI_API_KEY=your_gemini_api_key_here
  4. Firebase Configuration: Ensure your firebase-applet-config.json is present in the root directory with your Firebase project details.

  5. Run the Development Server:

    npm run dev

    The app will be available at http://localhost:3000.

📦 Deployment (e.g., Render)

LexiGen AI is configured to be easily deployed to platforms like Render.

  1. Connect your GitHub repository to Render (as a Web Service).
  2. Set the Build Command to: npm install && npm run build
  3. Set the Start Command to: npm start
  4. Add your GEMINI_API_KEY to the Environment Variables in the Render dashboard.
  5. Important: Ensure your Render URL (e.g., your-app.onrender.com) is added to the Authorized Domains in your Firebase Authentication settings.

⚠️ Legal Disclaimer

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.

About

⚖️ AI-powered legal document generator — draft contracts, NDAs & agreements in seconds via Google Gemini. PDF export with watermarks, Google Auth, Firestore history & legal chatbot. Built with React 19 + Node.js.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages