Package Exports
- @bonginkan/maria
- @bonginkan/maria/package.json
- @bonginkan/maria/services/internal-mode
- @bonginkan/maria/services/internal-mode-v2
Readme
π― MARIA v3.1.9
AI Orchestration Documentation & Reference - Enterprise AI platform with comprehensive orchestration specs, security guidelines, and multi-tenant architecture patterns. Features 3 core services plus advanced telemetry and complete production documentation.
π Homepage: https://bonginkan.ai/
π¨ Beautiful CLI Experience
When you run maria
, you'll see:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ββββ ββββ ββββββ βββββββ βββ ββββββ β
β βββββ ββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββ β
β βββ βββ ββββββ ββββββ βββββββββ βββ β
β βββ ββββββ ββββββ βββββββββ βββ β
β AI-Powered Development Platform β
β (c) 2025 Bonginkan Inc. β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
MARIA CODE v3.1.9 β Ready
/help for commands | Providers: 8/8 OK
Available AI Providers:
βοΈ Cloud AI: OpenAI, Anthropic, Google, Groq, xAI
π» Local AI: Ollama, LM Studio, vLLM
β‘ Installation
# Global installation (recommended)
npm install -g @bonginkan/maria
# Or with pnpm
pnpm add -g @bonginkan/maria
π Quick Start - Telemetry (v3.1.6+)
# Start monitoring stack (optional)
docker-compose -f docker-compose.monitoring.yml up -d
# Access dashboards
open http://localhost:3000 # Grafana (admin/admin)
open http://localhost:9091 # Prometheus
π― What is MARIA?
MARIA revolutionizes AI development with 3 powerful services, advanced telemetry, and beautiful CLI experience:
Core Services
- π§ IntelligentRouterService - Smart command routing and analysis
- π§© DualMemoryEngine - System 1 & System 2 cognitive memory
- π FileSystemService - Safe, atomic file operations
π Telemetry System (v3.1.6+)
- π Prometheus/Grafana Integration - Real-time metrics & dashboards
- π€ ML Anomaly Detection - Isolation Forest, Autoencoder, LSTM models
- π Predictive Analytics - ARIMA, Prophet, Transformer forecasting
- π― Custom Metrics Framework - Flexible metric collection & alerts
π AI Orchestration Docs (v3.1.9+)
- π Reference Specifications - Complete technical documentation
- π Security Guidelines - Authentication, authorization, multi-tenant
- π Metrics Schema - Standardized telemetry format
- π§ͺ Golden Test Standards - Production-ready test criteria
- πΊοΈ Implementation Roadmap - Prioritized feature planning
π» Programmatic API
Core Services Example
import {
IntelligentRouterService,
DualMemoryEngine,
FileSystemService
} from '@bonginkan/maria';
// π§ Intelligent Routing
const router = new IntelligentRouterService({
confidenceThreshold: 0.85,
enableLearning: true,
enableConfirmation: false
});
const result = await router.route('optimize my database queries');
console.log('Route:', result.command);
console.log('Confidence:', result.confidence);
// π§© Dual Memory System
const memory = new DualMemoryEngine({
system1: { maxKnowledgeNodes: 1000, accessDecayRate: 0.01 },
system2: { maxReasoningTraces: 100, qualityThreshold: 0.7 },
coordinator: {
syncInterval: 1000,
conflictResolutionStrategy: 'balanced',
learningRate: 0.1
}
});
await memory.store('project_context', {
language: 'typescript',
framework: 'react',
patterns: ['hooks', 'components']
});
const insights = await memory.query('best practices for React hooks');
// π Safe File Operations
const fs = new FileSystemService({
enableBackup: true,
enableSafeMode: true
});
π Telemetry Example (v3.1.6+)
import { startTelemetry } from '@bonginkan/maria';
// Initialize advanced telemetry
const telemetry = await startTelemetry({
prometheusPort: 9090,
enableAnomalyDetection: true,
enablePredictiveAnalytics: true,
enableCustomMetrics: true,
alertWebhook: process.env.SLACK_WEBHOOK_URL
});
// Record telemetry
await telemetry.recordTelemetry({
provider: 'openai',
intent: 'CODE_REQUEST',
latency: 342,
satisfaction: 0.95,
tokens: { input: 100, output: 200 }
});
// Get ML-powered insights
const insights = await telemetry.generateInsights();
console.log('Anomalies:', insights.anomalies);
console.log('Forecasts:', insights.forecasts);
console.log('Trends:', insights.trends);
await fs.writeFile('/path/to/file.ts', content);
await fs.copy('/src', '/backup');
ποΈ Architecture
Minimal API Philosophy
MARIA v3.0.0 follows Minimal API, Maximum Power:
βββββββββββββββββββββββββββββββββββββββββββ
β MARIA v3.0.0 β
βββββββββββββββββββββββββββββββββββββββββββ€
β π§ IntelligentRouterService β
β βββ Smart command routing β
β βββ Context-aware analysis β
β βββ Learning capabilities β
βββββββββββββββββββββββββββββββββββββββββββ€
β π§© DualMemoryEngine β
β βββ System 1: Fast, intuitive β
β βββ System 2: Deliberate, analytical β
β βββ Cross-session learning β
βββββββββββββββββββββββββββββββββββββββββββ€
β π FileSystemService β
β βββ Atomic operations β
β βββ Backup management β
β βββ Safety validation β
βββββββββββββββββββββββββββββββββββββββββββ
Key Features
Feature | Description | Status |
---|---|---|
Beautiful CLI | Professional startup with AI provider selection | β |
Dynamic Version | Auto-sourced from package.json | β |
3 Core Services | Essential AI development capabilities | β |
Type Safety | 100% TypeScript with strict mode | β |
Zero Config | Works out of the box | β |
8 AI Providers | OpenAI, Anthropic, Google, Groq, xAI, Ollama, LM Studio, vLLM | β |
π Performance
Metrics
- Startup Time: < 1000ms cold start
- Memory Usage: < 256MB heap maximum
- Bundle Size: 192KB (optimized)
- API Response: < 100ms for core operations
Benchmarks
# Run performance benchmarks
pnpm perf:bench
π οΈ Development
Requirements
- Node.js 20.10.0+
- pnpm v10.10.0 (recommended)
- TypeScript 5.0+
Build Commands
# Install dependencies
pnpm install
# Build the project
pnpm build
# Run tests
pnpm test
# Type checking
pnpm type-check
# Lint code
pnpm lint
Command Registry
MARIA v3.0.0 includes a revolutionary command registry with:
- 68+ Commands: Full enterprise command suite
- Type Safety: Runtime validation with TypeScript support
- Fuzzy Search: Smart typo tolerance (
/hlp
β/help
) - Auto-Generation: Automated type generation
- 7 Categories: From core commands to AI coding agent
# Generate command types
pnpm gen:cmd-types
# Test registry integrity
pnpm test:registry
π± AI Provider Support
Cloud Providers
- OpenAI - GPT models with vision and reasoning
- Anthropic - Claude models with advanced reasoning
- Google - Gemini models with multimodal capabilities
- Groq - Ultra-fast inference
- xAI - Grok models with real-time data
Local Providers
- Ollama - Local LLM runner
- LM Studio - Local model management
- vLLM - High-performance inference server
π Multi-Language Support
MARIA supports development in multiple languages:
- πΊπΈ English - Primary language
- π―π΅ Japanese - ζ₯ζ¬θͺγ΅γγΌγ
- π¨π³ Chinese - δΈζζ―ζ
- π°π· Korean - νκ΅μ΄ μ§μ
- π»π³ Vietnamese - Hα» trợ tiαΊΏng Viα»t
π Documentation
API Documentation
- IntelligentRouterService: API Reference
- DualMemoryEngine: API Reference
- FileSystemService: API Reference
Guides
- Quick Start: Getting Started Guide
- CLI Usage: Command Line Interface
- Configuration: Configuration Guide
π€ Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
# Clone repository
git clone https://github.com/bonginkan/maria.git
cd maria
# Install dependencies
pnpm install
# Run development build
pnpm dev
# Run tests
pnpm test
# Submit pull request
π License
Dual License Model:
- Personal Use: MIT License - Free for individual developers
- Enterprise Use: Commercial License - Contact for enterprise pricing
See LICENSE for full details.
π Links
- NPM Package: https://www.npmjs.com/package/@bonginkan/maria
- GitHub Repository: https://github.com/bonginkan/maria
- Documentation: https://docs.maria-ai.dev
- Support: https://github.com/bonginkan/maria/issues
π What's New in v3.1.9
π AI Orchestration Documentation
- Reference Specification: 396-line comprehensive technical reference
- Security Guidelines: Multi-tenant, authentication, authorization specs
- Metrics Standard Schema: 7 required categories, extensible format
- Golden Test Standards: Coverage requirements and performance criteria
- Implementation Roadmap: P0-P4 prioritized features with estimates
π Security & Multi-Tenant Architecture
- API Key Management: Rotating keys with configurable expiry
- JWT Authentication: RS256 signed tokens with refresh
- Tenant Isolation: Per-tenant circuit breakers and quotas
- Audit Logging: Complete request/response tracking
- RBAC Support: Role-based access control patterns
π Production-Ready Specifications
- Component Responsibility Matrix: Clear separation of concerns
- Terminology Clarity: Decision Table vs Model Router explained
- Performance Benchmarks: P95 < 2.5s, error rate < 2%
- Test Coverage Requirements: Unit 90%+, Integration 80%+
π Previous Releases
v3.1.8 - Zero Hardcoding
- Centralized Configuration: All defaults in
config/defaults.ts
- Dynamic Version Management: Auto-pulled from package.json
- Simplified Environment: Just
.env
and.env.example
v3.1.6 - Advanced Telemetry
- Prometheus/Grafana: Real-time metrics & dashboards
- ML Anomaly Detection: Isolation Forest, Autoencoder, LSTM
- Predictive Analytics: ARIMA, Prophet, Transformer models
- Custom Metrics: Flexible collection framework
β¨ Core Features
- 3 Core Services: Router, Memory, FileSystem
- 8 AI Providers: Cloud & Local support
- Beautiful CLI: Professional experience
π¨ Breaking Changes from v2.x
- API Simplification: Many internal services no longer exposed
- New CLI Interface: Updated startup and provider selection flow
- Configuration Changes: Streamlined config format
π Migration Guide
# Update to v3.0.0
npm update @bonginkan/maria
# Update imports
// Before (v2.x)
import { ComplexService, InternalAPI } from '@bonginkan/maria';
// After (v3.0.0)
import { IntelligentRouterService, DualMemoryEngine } from '@bonginkan/maria';
Experience the power of minimal design. Experience MARIA v3.0.0.
Β© 2025 Bonginkan Inc. - AI-Powered Development Platform