JSPM

@bonginkan/maria

3.1.9
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 391
  • Score
    100M100P100Q122226F
  • License SEE LICENSE IN LICENSE

🎯 MARIA v3.1.9 - AI Orchestration Documentation & Reference. Enterprise AI platform with comprehensive orchestration specs, security guidelines, and multi-tenant architecture patterns.

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/

TypeScript Node.js npm Bundle Size API Surface

🎨 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

Guides

🀝 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.

πŸŽ‰ 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