Package Exports
- @bonginkan/maria
- @bonginkan/maria/package.json
- @bonginkan/maria/services/internal-mode
- @bonginkan/maria/services/internal-mode-v2
Readme
π MARIA v3.1.6
Advanced Telemetry & Analytics - Enterprise AI platform with ML-powered monitoring, predictive analytics, and real-time insights. Features 3 core services plus comprehensive telemetry system.
π 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.6 β 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 (New in 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
π» 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 lintCommand 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.6
π Advanced Telemetry System
- Prometheus/Grafana Integration: Real-time metrics visualization
- ML Anomaly Detection: 3 algorithms (Isolation Forest, Autoencoder, LSTM)
- Predictive Analytics: 4 forecasting models (LSTM, ARIMA, Prophet, Transformer)
- Custom Metrics Framework: Flexible metric types with alerts
- Docker Compose Setup: One-command monitoring deployment
π Monitoring Features
- 9 Core Metrics: Response times, error rates, token usage, satisfaction
- Pre-built Dashboards: Beautiful Grafana visualizations
- Alert System: Slack integration with severity levels
- Trend Analysis: Direction, strength, and seasonality detection
- Export Formats: JSON, Prometheus, CSV
β¨ Core Features (from v3.0.0)
- Minimal API Surface: 3 core services + telemetry
- Beautiful CLI Experience: Professional startup screen
- Performance Optimized: 192KB bundle, < 1s startup
π¨ 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