AI-Powered Error Monitoring & Automated Code Fixes
Features β’ Quick Start β’ Documentation β’ Architecture β’ Contributing
VigilAI is an intelligent error monitoring and automated code fixing platform that combines real-time application monitoring with AI-powered diagnostics and automatic pull request generation. When your application encounters an error, VigilAI not only detects it but also analyzes the root cause and generates code fixes automatically.
- π Real-time Monitoring: Capture errors, performance metrics, and system health
- π€ AI-Powered Diagnosis: AWS Bedrock analyzes errors and suggests fixes
- π§ Automated Fixes: Generate code fixes and create GitHub pull requests automatically
- π Beautiful Dashboard: Brutalist-designed UI with dark/light mode
- π Privacy-First: Built-in PII redaction and data retention policies
- β‘ Non-Blocking: Minimal performance impact on your application
- Automatic error capture with full stack traces
- HTTP request/response monitoring
- System metrics (CPU, memory, response times)
- Anomaly detection using statistical analysis
- Custom metric tracking
- Root cause analysis using AWS Bedrock (Claude)
- Context-aware error diagnosis
- Confidence scoring for suggested fixes
- Historical pattern recognition
- Automatic code fix generation
- GitHub pull request creation
- File path resolution from stack traces
- Multi-framework support (Express, Next.js, Django, FastAPI)
- Beautiful brutalist UI with dark/light mode
- Real-time incident dashboard
- Pull request tracking
- Application management
- API key management
- Comprehensive SDK documentation
- Node.js 16+ (for platform and TypeScript SDK)
- Python 3.8+ (for Python SDK)
- PostgreSQL database
- AWS account (for Bedrock AI)
- GitHub account (for PR creation)
git clone https://github.com/Kpreya/vigilAI.git
cd vigilai# Platform (Next.js backend)
cd platform
npm install
# Frontend (HTML/CSS/JS)
cd ../frontend
npm install
# TypeScript SDK
cd ../typescript
npm install
# Python SDK
cd ../python
pip install -e .Create platform/.env:
# Database
DATABASE_URL="postgresql://user:password@localhost:5432/vigilai"
# Authentication
NEXTAUTH_SECRET="your-secret-key"
JWT_SECRET="your-jwt-secret"
NEXTAUTH_URL="http://localhost:3000"
# Frontend URL
FRONTEND_URL="http://localhost:5500"
# GitHub Integration
GITHUB_TOKEN="your-github-token"
# AWS Bedrock
AWS_ACCESS_KEY_ID="your-aws-key"
AWS_SECRET_ACCESS_KEY="your-aws-secret"
AWS_REGION="us-east-1"cd platform
npx prisma migrate dev
npx prisma generate# Start Next.js backend
cd platform
npm run dev
# In another terminal, serve the frontend
cd frontend
npx live-server --port=5500Visit:
- Frontend Dashboard: http://localhost:5500/dashboard.html
- Backend API: http://localhost:3000
- Documentation: Open
docs/index.htmlin browser
- Quick Start Guide - Get started with VigilAI
- API Reference - Complete API documentation
- SDK Documentation - Framework integration guides
- Architecture - System architecture and design
- TypeScript SDK - TypeScript/JavaScript SDK
- Python SDK - Python SDK
VigilAI consists of four main components:
- REST API for incident management
- Authentication & authorization
- Database management (Prisma + PostgreSQL)
- AI integration (AWS Bedrock)
- GitHub integration (Octokit)
- Brutalist-designed dashboard
- Real-time incident monitoring
- Pull request tracking
- Application & API key management
- Dark/light mode support
- TypeScript/JavaScript: Express, Next.js support
- Python: Django, FastAPI support
- Automatic error capture
- Custom metric tracking
- Non-blocking operation
- AWS Bedrock (Claude) for analysis
- Root cause diagnosis
- Code fix generation
- Confidence scoring
See ARCHITECTURE.md for detailed architecture documentation.
import express from 'express';
import { VigilAI } from '@vigilai/sdk';
const app = express();
const vigilai = new VigilAI({
apiKey: process.env.VIGILAI_API_KEY,
});
await vigilai.initialize();
app.use(vigilai.expressMiddleware());
app.listen(3000);// middleware.ts
import { VigilAI } from '@vigilai/sdk';
const vigilai = new VigilAI({
apiKey: process.env.VIGILAI_API_KEY,
});
export async function middleware(request: NextRequest) {
return vigilai.nextMiddleware(request, async (req) => {
return NextResponse.next();
});
}# settings.py
from vigilai import VigilAI, VigilAIConfig
vigilai = VigilAI(VigilAIConfig(
api_key=os.environ.get('VIGILAI_API_KEY'),
))
MIDDLEWARE = [
# ... other middleware
vigilai.django_middleware(),
]from fastapi import FastAPI
from vigilai import VigilAI, VigilAIConfig
vigilai = VigilAI(VigilAIConfig(
api_key=os.environ.get('VIGILAI_API_KEY'),
))
app = FastAPI()
app.middleware("http")(vigilai.fastapi_middleware())
@app.on_event("startup")
async def startup():
await vigilai.initialize()- Real-time incident monitoring
- System health metrics
- Application overview
- Quick actions
- Detailed error information
- Stack trace analysis
- AI-powered diagnosis
- Status tracking
- Automatic PR creation
- Code fix suggestions
- GitHub integration
- Review workflow
- Professional dark theme
- Smooth transitions
- Consistent across all pages
- Theme persistence
vigilai/
βββ platform/ # Next.js backend
β βββ app/ # Next.js app router
β βββ prisma/ # Database schema
β βββ lib/ # Utilities
βββ frontend/ # HTML/CSS/JS dashboard
β βββ js/ # JavaScript modules
β βββ css/ # Stylesheets
β βββ assets/ # Images and assets
βββ typescript/ # TypeScript SDK
β βββ src/ # Source code
β βββ examples/ # Integration examples
β βββ dist/ # Compiled output
βββ python/ # Python SDK
β βββ src/vigilai/ # Source code
β βββ examples/ # Integration examples
β βββ tests/ # Test suite
βββ docs/ # Documentation site
# TypeScript SDK
cd typescript
npm test
# Python SDK
cd python
pytest
# Platform (if tests exist)
cd platform
npm test# TypeScript SDK
cd typescript
npm run build
# Python SDK
cd python
python setup.py sdist bdist_wheel
# Platform
cd platform
npm run buildWe welcome contributions! Please see our contributing guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style
- Write tests for new features
- Update documentation
- Ensure all tests pass
- Keep commits atomic and well-described
This project is licensed under the MIT License - see the LICENSE file for details.
- AWS Bedrock for AI-powered analysis
- Octokit for GitHub integration
- Prisma for database management
- Next.js for the backend platform
- Tailwind CSS for styling
- Documentation: docs/index.html
- Issues: GitHub Issues
- Email: support@vigilai.dev
- Slack/Discord notifications
- Multi-language support
- Custom AI models
- Advanced analytics
- Team collaboration features
- Self-hosted option
- Kubernetes integration
- More framework support
Built with β€οΈ by the VigilAI Team
Website β’ Documentation β’ GitHub
