Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ TENDERFLOW AI

Next-Gen Autonomous Government Tender & Procurement Automation Suite

Next.js 15 TypeScript Tailwind CSS Google Gemini Groq OpenAI Firebase PWA Ready


Transform 4 hours of tedious government tender paperwork into a 60-second automated workflow.
One-Click Multi-Document Generation • Firm Letterhead Engine • Bilingual Hindi-English Transliteration • AI-Driven Procurement Drafting • Print-Ready A4 PDF Engine • 100% Offline-First (IndexedDB) + Cloud Sync (Firestore)

Key FeaturesSystem WorkflowDocument PipelineArchitectureAI EngineQuickstartNaming OptionsDocumentation Hub

separator

🌟 Executive Overview

TenderFlow AI is an enterprise-grade procurement automation platform engineered specifically for government contractors, vendors, and administrative departments.

By entering core tender specifications and line items just once, TenderFlow instantly orchestrates, drafts, and renders an entire synchronized package of official documents — complete with firm-specific letterheads, custom legal conditions, localized Hindi transliterations, dynamic GST calculations, and pixel-perfect A4 print-ready layouts.


🔄 System Workflow

flowchart TD
    subgraph INPUT ["📝 Unified Single-Entry Input"]
        T["<b>Tender Specifications & Line Items</b><br/>Tender ID • Budget • Quantities • Rates • GST % • Department"]
    end

    subgraph ENGINE ["⚡ TenderFlow Automation Core"]
        O["<b>Orchestration Engine</b><br/>AI Prompt Stacks • Purpose Dictionary • A4 Layout System"]
    end

    subgraph OUTPUTS ["📑 Synchronized Document Generation"]
        D1["📜 <b>Vigyapti (NIT)</b><br/>Public Tender Notice"]
        D2["📄 <b>Quotation (L1)</b><br/>Primary Firm Letterhead"]
        D3["📑 <b>Quotations (L2/L3)</b><br/>Alternate Competing Quotes"]
        D4["📋 <b>Supply Order</b><br/>Work Award Sanction"]
        D5["🧾 <b>Firm Tax Bill</b><br/>GST & Bank Invoice"]
    end

    subgraph EXPORT ["🖨️ Precision Output"]
        P["<b>A4 Print-Ready PDF with Margins & Signatures</b>"]
    end

    T --> O
    O --> D1
    O --> D2
    O --> D3
    O --> D4
    O --> D5
    D1 & D2 & D3 & D4 & D5 --> P
Loading

🚀 Key Features

🏛️ 1-Click Multi-Document Generation

  • Generate Vigyapti, Quotations (Main & Alternate Rates), Supply Orders, and Firm Bills in one synchronized step.
  • Eliminates duplicate manual entries, mismatched dates, and calculation mistakes.
  • Instant document versioning snapshot engine with rollback support.

🎨 Precision A4 Letterhead Engine

  • Dynamic background letterhead integration with contain, cover, and stretch fit modes.
  • Print-safe margin boundaries, live safe-zone guides, and overflow detection.
  • Drag-and-drop firm digital signatures and official seals.

🤖 Multi-LLM Bilingual Intelligence

  • Native support for Google Gemini, Groq (Llama 3), NVIDIA NIM, and OpenAI.
  • Domain-tuned for formal Hindi government procurement terminology.
  • Automated English-to-Hindi item catalog transliteration cache.

⚡ Local-First + Cloud-Ready Hybrid

  • 100% Offline Capable: Instant client-side IndexedDB database.
  • Cloud Sync: Real-time Firestore synchronization with namespace isolation.
  • PWA support with service worker asset caching.

📋 Document Pipeline

flowchart LR
    A["📝 Input Specs"] --> B["⚙️ Core Orchestrator"]
    B --> C["📜 1. Vigyapti / NIT"]
    B --> D["📄 2. Main Quotation L1"]
    B --> E["📑 3. Alternate Quotes L2/L3"]
    B --> F["📋 4. Supply Order"]
    B --> G["🧾 5. GST Tax Bill"]
    
    C & D & E & F & G --> H["🖨️ A4 Print-Safe PDF"]
Loading
Document Type Official Hindi Title Letterhead Applied? Description
vigyapti निविदा सूचना (NIT) ❌ Plain (Public) Official public procurement notice detailing line items, earnest money, and deadlines
quotation_main मुख्य कोटेशन (L1) ✅ Yes (Branded) Lowest-rate compliant bid generated on selected primary firm's letterhead
quotation_alt_1 वैकल्पिक कोटेशन 1 (L2) ✅ Yes (Branded) Alternate quotation on secondary firm's letterhead for price comparison
quotation_alt_2 वैकल्पिक कोटेशन 2 (L3) ✅ Yes (Branded) Third competitive rate quote for statutory departmental compliance
supply_aadesh आपूर्ति आदेश / कार्यादेश ✅ Yes (Branded) Official supply award sanction letter with contractual conditions
firm_bill फर्म टैक्स बिल ✅ Yes (Branded) Complete GST tax invoice with bank details, IFSC, and HSN breakdown

🏛️ Architecture & Tech Stack

graph TB
    subgraph UI ["🖥️ PRESENTATION LAYER"]
        P1["Next.js 15 App Router"]
        P2["Tailwind CSS + Lucide Icons"]
        P3["TipTap WYSIWYG Rich Editor"]
        P4["Live A4 Canvas & Layout Engine"]
    end

    subgraph SERVICES ["⚙️ BUSINESS SERVICE LAYER"]
        S1["<b>documentService</b><br/>Generation & Version Snapshots"]
        S2["<b>aiDraftService</b><br/>Prompt Stacks & LLM Orchestration"]
        S3["<b>layoutEngine</b><br/>A4 Margins, Bleeds & Letterhead"]
        S4["<b>mappingService</b><br/>Purpose & Transliteration Dictionaries"]
        S5["<b>governmentTemplates</b><br/>Standardized Legal Layouts"]
    end

    subgraph AI_LAYER ["🤖 MULTI-LLM AI ENGINE"]
        A1["Google Gemini 1.5"]
        A2["Groq Llama 3"]
        A3["OpenAI GPT-4o"]
        A4["NVIDIA NIM"]
    end

    subgraph STORAGE ["🗄️ DUAL-ENGINE STORAGE LAYER"]
        DB1["<b>Client-Side IndexedDB</b><br/>Local-First • Instant • 100% Offline"]
        DB2["<b>Firebase Firestore</b><br/>Multi-Device Cloud Sync & Backup"]
    end

    UI --> SERVICES
    SERVICES <--> AI_LAYER
    SERVICES <--> STORAGE
Loading

🧠 Bilingual & AI Intelligence

TenderFlow bridges standard English commercial terminology with formal Hindi administrative procurement standards.

1. Purpose Library Engine

Transforms simple categories into legally sound administrative purpose statements:

flowchart LR
    C["Category: <b>fire_fighting</b>"] --> E["⚡ Purpose Mapping Engine"]
    E --> H1["🇮🇳 <b>Hindi:</b> 'अग्निशमन एवं आपातकालीन जल आपूर्ति कार्य हेतु आवश्यक सामग्री'"]
    E --> H2["🇬🇧 <b>English:</b> 'Materials required for fire fighting and emergency water supply'"]
Loading

2. Automated Transliteration Cache

English line items are automatically translated/transliterated and cached in IndexedDB for instantaneous future queries:

flowchart LR
    IN["Input: 'Fire Hose Nozzle 63mm'"] --> AI["🤖 Multi-LLM Transliteration"]
    AI --> OUT["Output: 'अग्निशमन होज नोज़ल 63 मि.मी.'"]
    OUT --> CACHE["💾 Saved to Master Dictionary"]
Loading

📂 Documentation Center

All technical documentation is organized inside the docs/ directory:

flowchart LR
    DOCS["📂 <b>docs/ Hub</b>"]
    
    DOCS --> ARC["🏛️ <b>architecture/</b><br/>System design, roadmap & UI evolution"]
    DOCS --> AI["🤖 <b>ai/</b><br/>Multi-LLM prompts & bilingual dictionaries"]
    DOCS --> STO["🗄️ <b>storage/</b><br/>Firebase Firestore & IndexedDB setup"]
    DOCS --> GUI["📖 <b>guides/</b><br/>User manual & quick reference cards"]
    DOCS --> FIX["🛠️ <b>fixes-and-history/</b><br/>Changelogs, patch notes & bug fixes"]
Loading
Section Description Link
🏛️ Architecture System topology, roadmap, before/after comparison Explore ➔
🤖 AI & Transliteration Multi-LLM configuration, prompt engineering & dictionaries Explore ➔
🗄️ Storage & Cloud IndexedDB offline layer & Firestore cloud sync setup Explore ➔
📖 Guides & Manuals Comprehensive user manual, quick references & onboarding Explore ➔
🛠️ Fixes & Changelogs Implementation status, layout fixes & patch history Explore ➔

👉 View Complete Documentation Directory ➔


⚡ Quickstart Guide

📋 Prerequisites

  • Node.js: v18.17.0 or higher
  • Package Manager: npm, yarn, pnpm, or bun

🛠️ Installation & Setup

  1. Clone the repository:

    git clone https://github.com/your-username/tenderflow-ai.git
    cd tenderflow-ai
  2. Install dependencies:

    npm install
  3. Configure Environment:

    cp .env.example .env.local

    Configure your preferred AI provider and storage backend in .env.local:

    # AI Provider (gemini, openai, groq, nvidia, mock)
    NEXT_PUBLIC_AI_PROVIDER=gemini
    NEXT_PUBLIC_AI_API_KEY=your_api_key_here
    NEXT_PUBLIC_AI_MODEL=gemini-1.5-flash
    
    # Storage Mode (indexeddb or firestore)
    NEXT_PUBLIC_DATA_BACKEND=indexeddb
  4. Launch Development Server:

    npm run dev

    Navigate to http://localhost:3000.


🏷️ Recommended Project Names & Descriptions

If you are setting up or renaming the repository on GitHub, here are the top curated suggestions:

Name Short Description Recommended Tagline
🏆 TenderFlow-AI Autonomous Government Tender & Procurement Automation Suite with Multi-LLM Drafting, Letterhead Engine & Bilingual Transliteration. From Tender to Tax Bill in 60 Seconds.
🌟 GovDoc-Studio Intelligent Government Tender Document Engine & Firm Management Platform with Bilingual AI Transliteration & A4 Letterhead Layouts. The Smartest Way to Manage Government Contracts.
🌟 BidForge-AI Full-stack bilingual tender management suite: Auto-generate Vigyapti, Quotations, Supply Orders & GST Bills with AI-powered drafting. Craft Winning Government Bids with AI Precision.
🌟 Magra-Tender-Automation Complete government tender document automation system with firm-specific branding, bilingual Hindi support, and local-first architecture. Original Enterprise Brand.

🏷️ Suggested GitHub Topics

tender-automation • government-procurement • nextjs15 • typescript • tailwindcss • gemini-ai • groq • openai • tiptap • indexeddb • firestore • hindi-transliteration • document-generator • pwa • a4-pdf-layout

🤝 Contributing

Contributions, issues, and feature requests are welcome!

  1. Fork the repository
  2. Create your branch (git checkout -b feature/awesome-feature)
  3. Commit your changes (git commit -m 'feat: Add awesome feature')
  4. Push to the branch (git push origin feature/awesome-feature)
  5. Open a Pull Request

📄 License

This software is distributed under proprietary licensing. See LICENSE for details.

Crafted with ❤️ by the Magra Automation Team. Powered by Next.js, TypeScript & Advanced AI.

About

Next-Gen Autonomous Government Tender & Procurement Automation Suite. One-click multi-document drafting, precision A4 letterheads, bilingual Hindi/English AI engine, and offline-first dual storage.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages