How hoed/gajahmada works
Gajahmada is a sovereign AI system presented through a React dashboard. Users enter the dashboard to chat with the system or provide knowledge through training, files, web/Wikipedia crawling, and RSS; the shared context coordinates knowledge aggregation and retrieval around the AI brain. RAG, multilingual support, image generation, and Web3/DeFi are additional documented or surfaced capabilities. The graph combines excerpted imports and calls with README-documented capabilities; several UI-to-service and optional integration links are therefore marked unverified rather than asserted as observed calls.
Main entry points: Index.tsx Dashboard Page · GajahmadaContext.tsx System Context · Documentation.tsx Documentation Page · Web3ServerArchitecture.tsx Web3 Architecture
Components 34
Application UI
- React App
src/App.tsx - Dashboard Page
src/pages/Index.tsx - Documentation Page
src/pages/Documentation.tsx - Dashboard Interface
src/components/DashboardSection.tsx - Chat Interface
src/components/ChatInterface.tsx
AI and Knowledge
- System Context
src/contexts/GajahmadaContext.tsx - AI Brain
src/lib/gajahmada-brain.ts - RAG Search
src/lib/rag.ts - Knowledge Aggregation
src/lib/knowledge-aggregator.ts - Autonomous Retrieval
src/lib/autonomous-retriever.ts - Knowledge Training
src/lib/knowledge-trainer.ts - Training Tools
src/components/KnowledgeTrainer.tsx - File Training
src/components/FileUploadTrainer.tsx - Crawler Interface
src/components/WebCrawlerInterface.tsx - Web Crawler
src/lib/web-crawler.ts - Wikipedia Interface
src/components/WikipediaInterface.tsx - Wikipedia Scraper
src/lib/wikipedia-scraper.ts - RSS Ingestion
src/components/RSSFeedIngestion.tsx - RSS Discovery
src/components/RSSDiscoveryManager.tsx
Persistence and Integrations
- Database Adapter
src/lib/database-adapter.ts - Database Configuration
src/config/database.config.ts - Supabase Client
src/integrations/supabase/client.ts - Configured Database
- Supabase Service
Extended Capabilities
- Multilingual Engine
src/lib/multilingual-engine.ts - Image Generation
supabase/functions/image-generation/index.ts - Search Function
supabase/functions/gajahmada-search/index.ts - Blockchain Node Manager
supabase/functions/blockchain-node-manager/index.ts - Web3 Architecture
src/components/Web3ServerArchitecture.tsx - Smart Contracts
src/components/SmartContractInteraction.tsx - Token Swap
src/components/TokenSwapInterface.tsx - Transaction History
src/components/TransactionHistory.tsx - Portfolio Dashboard
src/components/PortfolioDashboard.tsx
Other components
- User
Connections 43
- User → React App: opens
src/App.tsx - React App → System Context: provides state
src/App.tsx - React App → Dashboard Page: routes to
src/App.tsx - React App → Documentation Page: routes to
src/App.tsx - Dashboard Page → Dashboard Interface: renders
src/pages/Index.tsx - Dashboard Page → Training Tools: renders
src/pages/Index.tsx - Dashboard Page → File Training: renders
src/pages/Index.tsx - Dashboard Page → Crawler Interface: renders
src/pages/Index.tsx - Dashboard Page → Wikipedia Interface: renders
src/pages/Index.tsx - Dashboard Page → RSS Ingestion: renders
src/pages/Index.tsx - Dashboard Page → Web3 Architecture: renders
src/pages/Index.tsx - Dashboard Interface → Chat Interface: renders
src/components/DashboardSection.tsx - System Context → AI Brain: uses
src/contexts/GajahmadaContext.tsx - System Context → RAG Search: uses
src/contexts/GajahmadaContext.tsx - System Context → Knowledge Aggregation: initializes
src/contexts/GajahmadaContext.tsx - System Context → Autonomous Retrieval: initializes
src/contexts/GajahmadaContext.tsx - Autonomous Retrieval → Knowledge Training: uses
src/lib/autonomous-retriever.ts - System Context → Configured Database: persists state
src/contexts/GajahmadaContext.tsx - Training Tools → System Context: uses state
- File Training → System Context: uses state
src/components/FileUploadTrainer.tsx - File Training → Knowledge Training: submits knowledge
- Crawler Interface → Web Crawler: uses
- Wikipedia Interface → Wikipedia Scraper: uses
- RSS Ingestion → System Context: uses state
src/components/RSSFeedIngestion.tsx - System Context → Supabase Client: uses
src/contexts/GajahmadaContext.tsx - Database Adapter → Database Configuration: reads config
src/lib/database-adapter.ts - Database Adapter → Supabase Client: uses
src/lib/database-adapter.ts - Database Adapter → Configured Database: reads and writes
- Supabase Client → Supabase Service: connects optionally
src/integrations/supabase/client.ts - System Context → Multilingual Engine: supports languages
- Dashboard Page → RSS Discovery: offers discovery
- Dashboard Page → Image Generation: offers generation
- Dashboard Page → Search Function: offers search
- Dashboard Page → Blockchain Node Manager: offers node management
- Documentation Page → Multilingual Engine: documents
src/pages/Documentation.tsx - Documentation Page → Smart Contracts: documents
src/pages/Documentation.tsx - Documentation Page → Transaction History: documents
src/pages/Documentation.tsx - Documentation Page → Portfolio Dashboard: documents
src/pages/Documentation.tsx - Documentation Page → Token Swap: documents
src/pages/Documentation.tsx - Web3 Architecture → Smart Contracts: presents
- Web3 Architecture → Token Swap: presents
- Web3 Architecture → Transaction History: presents
- Web3 Architecture → Portfolio Dashboard: presents