Skip to main content

Ecosystem Overview

The Toto ecosystem consists of multiple interconnected projects, each serving specific purposes while maintaining a clean architecture and unified technology stack.

πŸ“˜ Integration Guide: For detailed integration patterns and cross-project communication, see Ecosystem Integration Guide.

πŸ— Core Projects​

ProjectPurposeTechnologyURL
toto-appMain applicationNext.js + API Routes + App Hostinghttps://app.betoto.pet
toto-boBackoffice managementNext.js + API Routes + App Hostinghttps://bo.betoto.pet
toto-ai-hubAI-powered assistanceMulti-agent AI systemIntegrated with main app
toto-walletPayment processingReact + Stellar blockchainStandalone component

πŸ— Architecture Highlights​

Clean Architecture Implementation​

  • Separation of Concerns: Core data in main app, backoffice-specific data locally
  • API-First Design: All data access through well-defined APIs
  • Unified Technology Stack: Next.js API Routes + App Hosting across all projects
  • Security by Design: JWT + Session-based authentication with role-based access

Technology Stack​

  • Frontend: Next.js with TypeScript
  • Backend: Next.js API Routes (current implementation)
  • Deployment: Firebase App Hosting
  • Database: Firestore with security rules
  • Authentication: Firebase Auth + NextAuth.js
  • AI: Multi-agent AI system (toto-ai-hub)
  • Payments: Stellar blockchain integration (toto-wallet)

πŸ”— Integration Features​

Cross-Project Communication​

  • API Integration: RESTful APIs for data exchange
  • Authentication: Cross-project token sharing
  • Real-time Updates: Firestore listeners for live data
  • Event-Driven Architecture: Event bus for component communication

Data Architecture​

  • Main App (toto-f9d2f): Core business data (cases, users, donations)
  • Backoffice (toto-bo): Administrative data (audit logs, analytics)
  • Shared Knowledge Base: Centralized KB in toto-bo for all environments

Security & Access​

  • Role-Based Access Control: Permission-based data access
  • Cross-Project Authentication: JWT token validation across projects
  • Isolated Projects: Separate Firebase projects for security

πŸ“š Documentation​

πŸ“Š Key Features​

Main Application​

  • βœ… Interactive pet rescue feed
  • βœ… Secure donation system
  • βœ… Guardian tools in backoffice
  • βœ… Social sharing integration
  • βœ… Real-time updates and notifications
  • βœ… Role-based access control

Backoffice​

  • βœ… Comprehensive backoffice dashboard
  • βœ… Analytics and reporting
  • βœ… User management
  • βœ… Payment processing
  • βœ… AI agent analysis
  • βœ… Audit logging

AI Agent System​

  • βœ… Multi-agent architecture
  • βœ… Conversational AI
  • βœ… Intelligent recommendations
  • βœ… Case assistance
  • βœ… User support automation

Wallet System​

  • βœ… Blockchain integration
  • βœ… Secure payment processing
  • βœ… Component library
  • βœ… Balance management

πŸš€ Quick Navigation​

For Users​

For Developers​

For DevOps​