High-Performance AI-Driven SaaS Optimization and Strategic Lead Intelligence Engine
Audit AI is a sophisticated, full-stack intelligence platform designed to revolutionize how businesses perceive and manage their SaaS ecosystems. By merging the analytical power of Google's Generative AI with a robust TypeScript-driven architecture, Audit AI provides organizations with an automated, high-fidelity audit engine. It doesn't just list tools; it evaluates spend, identifies inefficiencies, and transforms raw operational data into strategic growth opportunities.
Modern enterprises struggle with "SaaS sprawl"βan unmanaged proliferation of software subscriptions that leads to budget leakage, redundant functionality, and security vulnerabilities. Manually auditing these stacks is a labor-intensive process, often resulting in outdated reports and missed optimization opportunities. Furthermore, converting the interest in these audits into high-quality business leads remains a fragmented and inefficient process.
Audit AI eliminates the manual burden of software stack evaluation through a coordinated full-stack architecture:
-
Interactive Frontend: Provides a high-performance React-based interface where users can submit their current software stack for immediate, real-time analysis.
-
Robust Backend Orchestration: Built on Node.js and Express, the server manages the entire data workflow, ensuring seamless communication between the client and the processing engine.
-
Multi-Layered Security: Implements rigorous protection including Zod-based data validation, honeypot anti-spam triggers, and rate limiters to defend against automated abuse and DOS attacks.
-
AI-Powered Intelligence: Leverages the Gemini AI engine to analyze user inputs and generate deep-context summaries that identify cost-saving opportunities and stack optimizations.
-
Actionable Visualization: Delivers a comprehensive Results Dashboard that transforms raw data into immediate business value and clear visual insights.
-
Lead Optimization: Closes the loop by capturing and nurturing high-intent leads through integrated email services and automated lead management systems.
Built on a Component-based Architecture (Frontend) and a RESTful API (Backend), ensuring modularity && scalability.
- Frontend: A Vite-powered React application focusing on high-performance rendering and a seamless user journey.
- Backend: A TypeScript Express server emphasizing type-safe operations, secure middleware integration, and AI service orchestration.
Transform complex software lists into actionable insights. The core engine analyzes SaaS spend and tool utility, providing users with a clear path toward optimization.
- User Benefit: Stop wasting budget on redundant tools and identify gaps in your tech stack in seconds.
A high-fidelity visualization interface that presents audit findings in a clear, professional format. It breaks down complex AI-generated data into digestible metrics.
- User Benefit: Gain immediate executive-level clarity on your operational efficiency without sifting through spreadsheets.
Audit AI is fortified with enterprise-grade security protocols, including custom rate limiting, honeypot fields to trap malicious bots, and HCaptcha integration.
- User Benefit: Ensure your data and the platform remain secure from automated attacks and spam.
Integrated lead management systems capture user information via conversion-optimized modals and deliver immediate value through automated email responses.
- User Benefit: Seamlessly transition from a casual audit to a deep-dive business relationship with zero manual overhead.
Leveraging the @google/generative-ai package, the system generates human-like summaries of audit results, providing context that standard algorithmic tools miss.
- User Benefit: Receive personalized recommendations that understand the nuance of your specific business needs.
Audit AI utilizes a modern, type-safe stack designed for reliability and developer productivity.
| Technology | Purpose | Why it was Chosen |
|---|---|---|
| TypeScript | Primary Language | Provides robust type safety across the entire stack, reducing runtime errors. |
| React | Frontend Framework | Enables a reactive, component-based UI for complex state management in the dashboard. |
| Express | Backend Framework | A lightweight, flexible Node.js framework ideal for building high-performance REST APIs. |
| Mongoose | Database ODM | Simplifies data modeling and interaction with MongoDB for audit and lead persistence. |
| Google Generative AI | AI Orchestration | Harnesses Gemini for advanced natural language processing and audit summarization. |
| Zod | Schema Validation | Ensures 100% data integrity for all incoming API requests and internal configurations. |
| Resend | Email Service | Provides reliable, developer-friendly transactional email delivery for lead alerts. |
vikasingh0897-AuditAI-5c502ca/
βββ π frontend/ # React Client Application
β βββ π public/ # Static assets (Logos, Icons)
β β βββ π AuditAI-Logo.svg # Primary Brand Identity
β β βββ π favIcon.svg # Browser favicon
β βββ π src/ # Frontend source code
β β βββ π components/ # Shared UI components
β β β βββ π Footer.tsx # Global footer navigation
β β β βββ π Header.tsx # Global header and brand bar
β β βββ π pages/ # View-level components
β β β βββ π AuditForm.tsx # SaaS data entry interface
β β β βββ π AuditSummary.tsx # AI result visualization
β β β βββ π LandingPage.tsx # Conversion-optimized entry point
β β β βββ π LeadModal.tsx # Lead capture interface
β β β βββ π ResultsDashboard.tsx # Data visualization hub
β β βββ π App.tsx # Main application router
β β βββ π main.tsx # Application entry point
β β βββ π index.css # Global styling
β βββ π vite.config.ts # Vite build configuration
β βββ π package.json # Frontend dependencies
β
βββ π backend/ # Node.js Express Server
β βββ π src/ # Backend source code
β β βββ π controllers/ # Request handling logic
β β β βββ π audit.controller.ts # Audit processing logic
β β β βββ π lead.controller.ts # Lead management logic
β β β βββ π pricing.controller.ts # Pricing data logic
β β βββ π middlewares/ # Express request interceptors
β β β βββ π honeypot.middleware.ts # Anti-spam security
β β β βββ π rateLimiter.ts # DOS protection
β β β βββ π validator.middleware.ts # Zod validation logic
β β βββ π models/ # Database schemas
β β β βββ π audit.model.ts # Audit data structure
β β β βββ π pricing.model.ts # Tool pricing structure
β β βββ π routes/ # API endpoint definitions
β β β βββ π audit.route.ts # Audit-related endpoints
β β β βββ π lead.route.ts # Lead-related endpoints
β β βββ π utils/ # Shared utility functions
β β β βββ π apiResponse.ts # Standardized response wrapper
β β β βββ π captcha.ts # HCaptcha verification
β β β βββ π emailService.ts # Resend/SMTP integration
β β β βββ π summaryEngine.ts # AI-logic wrapper
β β βββ π db.ts # Database connection logic
β β βββ π app.ts # Express app configuration
β β βββ π index.ts # Server entry point
β βββ π test/ # Backend testing suite
β β βββ π auditEngine.test.ts # Core engine unit tests
β βββ π jest.config.js # Test runner configuration
β βββ π package.json # Backend dependencies
β
βββ π .env.example # Environment template
βββ π PRICING_DATA.md # Curated SaaS pricing reference
βββ π DEVLOG.md # Project evolution and updates
The application requires several environment variables to function correctly. These should be defined in a .env file in the respective directories or at the root level as per your deployment strategy.
| Variable | Description | Required |
|---|---|---|
VITE_API_URL |
Base URL for the backend API (Frontend) | Yes |
VITE_HCAPTCHA_SITE_KEY |
Site key for HCaptcha integration | Yes |
MONGO_URI |
Connection string for MongoDB | Yes |
PORT |
The port the backend server listens on | Yes |
BREVO_API_KEY |
API Key for email service delivery | Yes |
EMAIL_FROM |
The sender email address for notifications | Yes |
SMTP_HOST |
Host for SMTP fallback services | Yes |
CLIENT_URL |
The URL of the frontend application (for CORS) | Yes |
APP_URI |
The primary application URI | Yes |
NODE_ENV |
Environment state (development/production) | Yes |
Audit AI uses Mongoose to interact with MongoDB.
- Action: Create a cluster on MongoDB Atlas.
- Configuration: Obtain your connection string. Ensure the network access whitelist includes your deployment IP.
- Environment: Assign this to
MONGO_URI.
Automated lead notifications and audit summaries are delivered via transactional email.
- Action: Sign up at Brevo or Resend.
- Configuration: Create an API Key and verify your sending domain.
- Environment: Assign the key to
BREVO_API_KEYand setEMAIL_FROM.
The @google/generative-ai package requires a valid Google AI SDK key.
- Action: Visit the Google AI Studio.
- Configuration: Generate an API Key for Gemini Pro.
- Environment: Ensure the backend has access to this key (standardized as a service key in
summaryEngine.ts).
- Node.js: v18.0.0 or higher
- TypeScript: v6.0.3+ (installed via devDependencies)
- MongoDB: A running instance or Atlas URI
-
Clone the Repository
git clone https://github.com/vikasingh0897/AuditAI.git cd AuditAI -
Backend Setup
cd backend npm install cp .env.example .env # Update with your verified API keys npm run build
-
Frontend Setup
cd ../frontend npm install # Ensure VITE_API_URL in .env points to your local backend
-
Running the Development Environment
- Start Backend:
cd backend npm run dev - Start Frontend:
cd frontend npm run dev
- Start Backend:
- Navigate to the
LandingPage. - Interact with the
AuditFormto input your current SaaS tools and estimated monthly spend. - Complete the HCaptcha challenge (verified by
captcha.ts). - The
summaryEngine.tswill process the input using Google Generative AI.
- Upon completion, you will be redirected to the
ResultsDashboard. - The dashboard displays a high-level
AuditSummary, highlighting potential savings and tool redundancies. - If the system detects high-value optimization opportunities, the
LeadModalwill appear to capture contact details for a professional consultation.
The backend exposes a health-check and primary orchestration endpoint:
GET /: Returns the current status of the Express API and ensures connectivity with the underlying Node.js runtime.
We welcome contributions to improve Audit AI! Your input helps make this project better for everyone.
-
Fork the repository - Click the 'Fork' button at the top right of this page
-
Create a feature branch
git checkout -b feature/amazing-feature
-
Make your changes - Improve code, documentation, or features
-
Test thoroughly - Ensure all functionality works as expected
npm test -
Commit your changes - Write clear, descriptive commit messages
git commit -m 'Add: Amazing new feature that improves AI summary accuracy' -
Push to your branch
git push origin feature/amazing-feature
-
Open a Pull Request - Submit your changes for review