Architecture Overview

OmniFlux follows a modular client-server architecture:Directory Structure

β”œβ”€β”€ src/                   # Core source code
β”‚   β”œβ”€β”€ agents/            # Agent management and specialization
β”‚   β”œβ”€β”€ swarms/            # Swarm intelligence and optimization
β”‚   β”œβ”€β”€ blockchain/        # Solana blockchain interactions
β”‚   β”œβ”€β”€ dex/               # DEX operations (Raydium, Orca)
β”‚   β”œβ”€β”€ storage/           # Decentralized storage (Arweave, IPFS)
β”‚   └── api/               # HTTP API server and endpoints
β”œβ”€β”€ packages/              # TypeScript/JavaScript packages
β”‚   β”œβ”€β”€ cli/               # Interactive CLI implementation
β”‚   β”œβ”€β”€ python-wrapper/    # Python interface for OmniFlux
β”‚   └── wallets/           # Wallet integrations (Phantom, Solflare)
β”œβ”€β”€ server.js              # Main HTTP server (port 8052)
β”œβ”€β”€ .env                   # Environment variables (not committed)
β”œβ”€β”€ README.md              # This file
└── ...                    # Config, Docker files, etc.

Key Architecture Points

  • Modular Design: Separate modules for agents, swarms, blockchain, and DEX operations.

  • Client-Server Model: Node.js server (port 8052) with a TypeScript CLI and Python wrapper.

  • Solana Backend: Handles trading, blockchain interactions, and swarm optimization.

  • TypeScript CLI: User-friendly interface for managing trades and agents.

  • Python Wrapper: Provides programmatic access with AI integrations.

Last updated