POLIGAP is a comprehensive, multi-tenant, AI-powered compliance platform that helps organizations identify, analyze, and remediate compliance gaps across various regulatory frameworks including GDPR, HIPAA, ISO27001, SOC2, PCI-DSS, and CCPA.
- Multi-Framework Support: GDPR, HIPAA, ISO27001, SOC2, PCI-DSS, CCPA
- Document Upload & Analysis: Drag-and-drop interface with real-time processing
- AI-Powered Gap Analysis: Intelligent identification of compliance gaps
- Automated Remediation Plans: AI-generated action plans with timelines and resources
- Task Management: Comprehensive task tracking with assignments and deadlines
- Real-Time Reporting: Dynamic dashboards with compliance metrics and trends
- Multi-Tenant Architecture: Organization-based data isolation and management
- Dashboard: Real-time compliance overview with key metrics
- Document Upload: Secure file upload with format validation
- Compliance Analysis: AI-powered gap analysis with detailed results
- Task Management: Track remediation tasks with progress monitoring
- Reports: Generate and schedule compliance reports
- Authentication: OAuth integration with Google, GitHub, Microsoft
- Next.js 14.2.5 - React framework with App Router
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first CSS framework
- Radix UI - Accessible component primitives
- Recharts - Data visualization library
- Lucide React - Icon library
- Node.js - Runtime environment
- NextAuth.js - Authentication solution
- MongoDB - Primary database for user/org/task data
- AstraDB - Vector database for document storage and AI operations
- OpenAI GPT-4 - Natural language processing and analysis
- HuggingFace Transformers - Additional ML model support
- Custom NLP Pipeline - Compliance-specific text analysis
- OAuth 2.0 - Google, GitHub, Microsoft providers
- JWT - Secure session management
- RBAC - Role-based access control
- Data Encryption - End-to-end security
src/
βββ app/ # Next.js App Router
β βββ api/ # API routes
β β βββ auth/ # Authentication endpoints
β β βββ compliance/ # Compliance analysis APIs
β β βββ documents/ # Document management APIs
β β βββ remediation/ # Remediation plan APIs
β βββ dashboard/ # Dashboard pages
β β βββ compliance/ # Compliance analysis page
β β βββ documents/upload/ # Document upload page
β β βββ reports/ # Reports management
β β βββ tasks/ # Task management
β βββ auth/ # Authentication pages
βββ components/ # React components
β βββ ui/ # Base UI components
β βββ layout/ # Layout components
β βββ dashboard/ # Dashboard-specific components
βββ lib/ # Utility libraries
β βββ auth.ts # NextAuth configuration
β βββ database.ts # Database connections
β βββ api-client.ts # API client utilities
β βββ utils.ts # Helper functions
βββ types/ # TypeScript type definitions
βββ index.ts # Core type definitions
- Node.js 18+
- npm or yarn
- MongoDB instance
- AstraDB account
- OAuth app credentials (Google, GitHub, Microsoft)
Create a .env.local file with the following variables:
# Next.js
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your-nextauth-secret
# Database
MONGODB_URI=mongodb://localhost:27017/poligap
ASTRA_DB_APPLICATION_TOKEN=your-astra-token
ASTRA_DB_ID=your-astra-db-id
ASTRA_DB_REGION=your-astra-region
# OAuth Providers
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
MICROSOFT_CLIENT_ID=your-microsoft-client-id
MICROSOFT_CLIENT_SECRET=your-microsoft-client-secret
# AI Services
OPENAI_API_KEY=your-openai-api-key
HUGGINGFACE_API_KEY=your-huggingface-api-key-
Clone the repository
git clone <repository-url> cd poligap-kroolo
-
Install dependencies
npm install
-
Set up environment variables
cp .env.example .env.local # Edit .env.local with your actual values -
Run the development server
npm run dev
-
Open in browser Navigate to
http://localhost:3000
- Go to Google Cloud Console
- Create a new project or select existing
- Enable Google+ API
- Create OAuth 2.0 credentials
- Add authorized redirect URIs:
http://localhost:3000/api/auth/callback/google
- Go to GitHub Settings > Developer settings > OAuth Apps
- Create a new OAuth App
- Set Authorization callback URL:
http://localhost:3000/api/auth/callback/github
- Go to Azure Portal
- Register a new application
- Configure redirect URI:
http://localhost:3000/api/auth/callback/microsoft
- users: User profiles and authentication data
- organizations: Multi-tenant organization data
- documents: Uploaded document metadata
- compliance_analyses: Analysis results and gap data
- tasks: Compliance task management
- remediation_plans: AI-generated action plans
- reports: Generated compliance reports
- document_embeddings: Vector embeddings for document search
- compliance_knowledge: Framework-specific compliance knowledge base
- analysis_cache: Cached analysis results for performance
- Text Extraction: PDF/DOCX content extraction
- Preprocessing: Text cleaning and normalization
- Embedding Generation: Vector embeddings for semantic search
- Gap Identification: AI-powered compliance gap detection
- Remediation Planning: Automated action plan generation
- GDPR: Articles 30, 7, 15-22, 35, 28
- HIPAA: Security Rule, Privacy Rule, Breach Notification
- ISO27001: Information Security Management System
- SOC2: Trust Services Criteria
- PCI-DSS: Payment Card Industry Standards
- CCPA: California Consumer Privacy Act
POST /api/auth/signin- User sign inPOST /api/auth/signout- User sign outGET /api/auth/session- Get current session
POST /api/documents/upload- Upload documentsGET /api/documents- List documentsDELETE /api/documents/:id- Delete document
POST /api/compliance/analyze- Run compliance analysisGET /api/compliance/results/:id- Get analysis resultsGET /api/compliance/frameworks- List supported frameworks
POST /api/tasks- Create taskGET /api/tasks- List tasksPUT /api/tasks/:id- Update taskDELETE /api/tasks/:id- Delete task
POST /api/reports/generate- Generate reportGET /api/reports- List reportsGET /api/reports/:id/download- Download report
# Run unit tests
npm run test
# Run integration tests
npm run test:integration
# Run E2E tests
npm run test:e2e
# Generate coverage report
npm run test:coverage- Connect your GitHub repository to Vercel
- Configure environment variables in Vercel dashboard
- Deploy automatically on push to main branch
# Build Docker image
docker build -t poligap .
# Run container
docker run -p 3000:3000 --env-file .env.local poligap# Build for production
npm run build
# Start production server
npm startCustomize compliance frameworks in src/lib/frameworks/:
- Add new frameworks
- Modify existing requirements
- Configure analysis rules
- Theme configuration:
tailwind.config.js - Component styling:
src/components/ui/ - Custom branding:
src/styles/globals.css
- Caching: Redis for API response caching
- CDN: Static asset delivery via CDN
- Database Indexing: Optimized MongoDB indexes
- Lazy Loading: Component-level code splitting
- Image Optimization: Next.js automatic image optimization
- Data Encryption: AES-256 encryption at rest
- Secure Headers: CSRF, XSS protection
- Input Validation: Comprehensive input sanitization
- Audit Logging: Complete action audit trail
- Access Control: Role-based permissions
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: docs.poligap.com
- Issue Tracker: GitHub Issues
- Community: Discord Server
- Email: support@poligap.com
- β Core platform development
- β Multi-framework support
- β AI-powered gap analysis
- β Task management system
- π Advanced reporting features
- π API integrations (Slack, Teams)
- π Mobile application
- π Advanced analytics
- π Custom framework builder
- π Workflow automation
- π Third-party integrations
- π Enterprise features
- π Machine learning improvements
- π Predictive compliance
- π Global compliance support
- π Advanced security features
Built with β€οΈ by the POLIGAP Team
For more information, visit poligap.com