An enterprise-grade, AI-native, cloud-native SaaS platform built with MACH principles, featuring clean/hexagonal architecture, event-driven microservices, and comprehensive AI integration.
- AI-Driven Self-Improvement: Platform learns from user behavior and errors to continuously optimize itself
- Event-Driven Architecture: Built on Apache Kafka with event sourcing, CQRS, and saga orchestration
- Modular Plugin System: Extensible Node.js-based plugin architecture
- Enterprise Security: Keycloak-based RBAC, OAuth, OIDC with compliance support
- Cloud-Native: Kubernetes deployment with AWS services integration
- Comprehensive Observability: OpenTelemetry, Prometheus, Grafana with AI-driven insights
The platform follows clean/hexagonal architecture principles with:
- Domain Layer: Core business logic
- Application Layer: Use cases and services
- Infrastructure Layer: External integrations
- Event-Driven Communication: Kafka-based messaging
- AI Integration: SageMaker, Comprehend, and Ollama
| Component | Technology | Purpose |
|---|---|---|
| Orchestration | Kubernetes (EKS) | Container management |
| Event Streaming | Apache Kafka | Event-driven communication |
| Workflow Engine | Temporal | Saga orchestration |
| API Layer | GraphQL (Apollo) | Unified API gateway |
| Security | Keycloak | Identity & access management |
| Databases | PostgreSQL, DynamoDB | Data persistence |
| AI/ML | SageMaker, Ollama | Machine learning services |
| Monitoring | Prometheus, Grafana | Observability stack |
ultimate-saas-base/
├── services/ # Microservices
│ ├── user-service/ # User management (TypeScript)
│ ├── tenant-service/ # Multi-tenant management (TypeScript)
│ ├── plugin-service/ # Plugin system (Node.js)
│ ├── ai-service/ # AI orchestration (Python)
│ ├── notification-service/ # Notifications (Go)
│ └── event-processor/ # Event processing (Go)
├── infrastructure/ # Infrastructure as Code
│ ├── kubernetes/ # K8s manifests
│ ├── terraform/ # AWS infrastructure
│ └── helm-charts/ # Helm deployments
├── docs/ # Documentation
├── tests/ # Test suites
├── scripts/ # Automation scripts
└── config/ # Configuration files
- Docker & Docker Compose
- Kubernetes cluster (local or AWS EKS)
- Node.js 18+
- Python 3.9+
- Go 1.21+
-
Clone and Setup
git clone <repository-url> cd ultimate-saas-base ./scripts/setup.sh
-
Local Development
docker-compose up -d ./scripts/dev-start.sh
-
Deploy to Kubernetes
./scripts/k8s-deploy.sh
Each service follows clean architecture principles:
service/
├── src/
│ ├── domain/ # Business logic
│ ├── application/ # Use cases
│ ├── infrastructure/ # External adapters
│ └── interfaces/ # API controllers
├── tests/ # Service tests
└── Dockerfile # Container definition
Create custom plugins using the Node.js plugin SDK:
// Example plugin
const { PluginBase } = require('@platform/plugin-sdk');
class CustomPlugin extends PluginBase {
async execute(context) {
// Plugin logic here
return { success: true, data: result };
}
}
module.exports = CustomPlugin;- Unit Tests:
npm run test:unit - Integration Tests:
npm run test:integration - E2E Tests:
npm run test:e2e - Security Tests:
npm run test:security
Access monitoring dashboards:
- Grafana: http://localhost:3000
- Prometheus: http://localhost:9090
- Jaeger: http://localhost:16686
- RBAC with Keycloak
- OAuth 2.0/OIDC authentication
- Data encryption at rest and in transit
- GDPR, HIPAA, SOC 2 compliance support
- Predictive Scaling: Auto-scaling based on usage patterns
- Anomaly Detection: Real-time system health monitoring
- Error Learning: Automated issue resolution
- User Behavior Analysis: Platform optimization insights
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Built with ❤️ for the future of AI-native SaaS platforms