Package Exports
- @bonginkan/maria
- @bonginkan/maria/package.json
- @bonginkan/maria/services/internal-mode
- @bonginkan/maria/services/internal-mode-v2
Readme
๐ MARIA v3.3.0
Graph RAG Intelligence & Enhanced /init Commands - Revolutionary AI development platform with Graph RAG technology, intelligent codebase analysis, and dynamic guideline generation. Features advanced AST parsing, knowledge graphs, and state-of-the-art incremental learning capabilities.
๐ Homepage: https://bonginkan.ai/
๐ง Revolutionary Graph RAG Technology
MARIA v3.3.0 introduces cutting-edge Graph RAG (Retrieval Augmented Generation) capabilities that transform how AI understands and works with your codebase:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ AST PARSING โ ๐ KNOWLEDGE GRAPH โ ๐ค AI GUIDE โ
โ โ
โ TypeScript/JS โ Neo4j Relationships โ Dynamic โ
โ Code Analysis โ Semantic Connections โ Guidelines โ
โ Dependencies โ Vector Embeddings โ Smart Recs โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ What's New in v3.3.0
- ๐งช Graph RAG Engine: Deep codebase understanding through knowledge graphs
- ๐ Smart /init Command: Complete project analysis with AST parsing
- ๐ /update Command: Intelligent incremental updates with delta detection
- ๐จ Enhanced CLI UX: Progress bars, spinners, and TTY/JSON output modes
- ๐ Provenance Tracking: Full transparency in AI recommendations
- โก State Persistence: Efficient change tracking with SHA-256 hashing
๐จ Beautiful CLI Experience
When you run maria
, you'll see:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โโโโ โโโโ โโโโโโ โโโโโโโ โโโ โโโโโโ โ
โ โโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโ โโโ โโโโโโ โโโโโโ โโโโโโโโโ โโโ โ
โ โโโ โโโโโโ โโโโโโ โโโโโโโโโ โโโ โ
โ AI-Powered Development Platform โ
โ (c) 2025 Bonginkan Inc. โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
MARIA CODE v3.3.0 โ Graph RAG Ready
/help for commands | Providers: 8/8 OK | Graph RAG: Enabled
Available AI Providers:
โ๏ธ Cloud AI: OpenAI, Anthropic, Google, Groq, xAI
๐ป Local AI: Ollama, LM Studio, vLLM
๐ง Graph RAG: Knowledge Graphs, Vector Search, AST Analysis
โก Installation
# Global installation (recommended)
npm install -g @bonginkan/maria
# Or with pnpm
pnpm add -g @bonginkan/maria
๐งฌ Graph RAG Quick Start
Initialize Your Project with Graph RAG
# Full codebase analysis with knowledge graph construction
maria
/init
# Output:
# ๐ง Initializing Graph RAG analysis...
# ๐ Scanning project files...
# ๐ Parsing AST structures...
# ๐ Building knowledge graph...
# โจ Generating MARIA.md guidelines...
Incremental Updates
# Smart incremental updates with delta detection
/update
# With specific change detection
/update --since git:HEAD~3
/update --since 2025-08-20
/update --since state
๐ฏ Core Features
๐ง Graph RAG Intelligence
- AST Parsing: Deep TypeScript/JavaScript code analysis
- Knowledge Graphs: Neo4j-powered semantic relationships
- Vector Search: Hybrid search with RRF ranking
- Delta Detection: Three methods (git, time, state-based)
- Provenance: Full explanation of AI recommendations
๐ค AI Provider Support
8 AI Providers with automatic failover:
Provider | Models Available | Status |
---|---|---|
๐ค OpenAI | GPT-5, GPT-4o, o1-preview/mini | โ Active |
๐ง Anthropic | Claude 3.5 Sonnet, Haiku | โ Active |
๐ฎ Google | Gemini 2.0 Flash, 1.5 Pro | โ Active |
โก Groq | Llama 3.1, Mixtral | โ Active |
๐ xAI | Grok Beta, Vision | โ Active |
๐ป Ollama | Local Models | ๐ Local |
๐ฏ LM Studio | Local Models | ๐ Local |
โ๏ธ vLLM | Local Models | ๐ Local |
๐จ Advanced CLI Features
# Enhanced slash commands with Graph RAG
/init # Full project analysis with knowledge graphs
/update # Incremental updates with delta detection
/memory # View Graph RAG memory statistics
/status # System health with Graph RAG metrics
/help # Enhanced help with visual diagrams
๐ Graph RAG Visualization
Knowledge Graph Structure:
โโโ ๐ Project Root
โ โโโ ๐ Dependencies
โ โ โโโ External Packages
โ โ โโโ Internal Modules
โ โโโ ๐งฉ Components
โ โ โโโ React Components
โ โ โโโ Utility Functions
โ โโโ ๐ฏ Types & Interfaces
โ โ โโโ API Contracts
โ โ โโโ Domain Models
โ โโโ ๐ Data Flow
โ โโโ State Management
โ โโโ Event Handlers
๐ Advanced Usage
Custom Delta Detection
# Git-based changes
/update --since git:HEAD~5
# Time-based changes
/update --since 2025-08-20T10:00:00Z
# State-based changes (SHA-256)
/update --since state
Output Modes
# TTY mode (interactive)
maria
# JSON mode (CI/CD)
MARIA_OUTPUT=json maria
Budget Control
// Budget-aware processing
{
"budget": {
"maxFiles": 1000,
"maxTimeMs": 300000,
"maxTokens": 100000
}
}
๐๏ธ Architecture
Graph RAG Pipeline
Input โ AST Parser โ Knowledge Graph โ Vector Store โ AI Analysis โ Guidelines
โ โ โ โ โ โ
Files โ Structures โ Relationships โ Embeddings โ Insights โ MARIA.md
Memory Systems
- System 1: Fast pattern recognition, code snippets
- System 2: Deep reasoning, architectural analysis
- Graph Store: Persistent knowledge relationships
- Vector Store: Semantic similarity search
Safety & Privacy
- Local Processing: AST parsing runs locally
- Gradual Degradation: Works without external services
- Budget Controls: Prevents resource exhaustion
- Safe Defaults: Non-destructive operations
๐ Graph RAG Configuration
Neo4j Integration
{
"graphRAG": {
"neo4j": {
"uri": "bolt://localhost:7687",
"user": "neo4j",
"password": "your-password"
},
"vectorDB": {
"provider": "qdrant",
"collection": "maria-knowledge"
}
}
}
AST Analysis Settings
{
"astParser": {
"languages": ["typescript", "javascript"],
"includePatterns": ["src/**/*.ts", "src/**/*.tsx"],
"excludePatterns": ["node_modules/**", "dist/**"],
"maxDepth": 10
}
}
๐ฏ Use Cases
๐ข Enterprise Development
- Code Review: AI-powered analysis with Graph RAG insights
- Architecture Planning: Relationship mapping and dependency analysis
- Knowledge Transfer: Dynamic guideline generation for teams
- Legacy Migration: Deep codebase understanding for modernization
๐จโ๐ป Individual Developers
- Project Onboarding: Instant understanding of new codebases
- Code Quality: Intelligent suggestions based on project patterns
- Documentation: Auto-generated guidelines that evolve with code
- Learning: Explore code relationships through knowledge graphs
๐ API Reference
Core Services
import {
IntelligentRouterService, // Graph RAG routing
DualMemoryEngine, // System 1 & 2 memory
FileSystemService // Safe file operations
} from '@bonginkan/maria';
Graph RAG Services
import {
GraphRAGService, // Main Graph RAG orchestrator
ASTAnalyzer, // Code structure analysis
KnowledgeGraphService, // Neo4j graph management
DeltaDetectorService // Change detection
} from '@bonginkan/maria/graph-rag';
๐ Changelog v3.3.0
โจ New Features
- Graph RAG Engine: Complete implementation with Neo4j integration
- Enhanced /init Command: AST parsing + knowledge graph construction
- New /update Command: Intelligent incremental updates
- Delta Detection: Git/time/state-based change tracking
- Advanced CLI UX: Progress bars, spinners, TTY/JSON modes
- Provenance System: Full transparency in AI recommendations
๐ง Improvements
- Build System: Fixed 870+ TypeScript syntax errors
- Import Paths: Cleaned up all module resolution issues
- Dependencies: Added Neo4j driver and Babel traverse support
- Memory Efficiency: Optimized AST parsing and graph operations
- Error Handling: Enhanced error reporting with suggestions
๐ฆ Dependencies
- Added:
neo4j-driver
for graph database operations - Added:
@babel/traverse
for AST parsing capabilities - Updated: All provider integrations with improved stability
๐ค Contributing
We welcome contributions to MARIA's Graph RAG capabilities!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-graph-rag
) - Commit your changes (
git commit -m 'Add amazing Graph RAG feature'
) - Push to the branch (
git push origin feature/amazing-graph-rag
) - Open a Pull Request
๐ License
MIT License - see LICENSE file for details.
๐ Support
- ๐ง Email: support@bonginkan.ai
- ๐ Issues: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
- ๐ Documentation: docs.bonginkan.ai
MARIA v3.3.0 - Revolutionizing AI development with Graph RAG intelligence ๐