Skip to main content

Crate phago_web

Crate phago_web 

Source
Expand description

§Phago Web Dashboard

Real-time visualization and interaction for Phago colonies.

§Quick Start

# Start the web server
cargo run -p phago-web -- --port 3000

# Open http://localhost:3000 in your browser

§API Endpoints

MethodPathDescription
GET/api/statsColony statistics
GET/api/nodesAll graph nodes
GET/api/edgesAll graph edges
GET/api/agentsActive agents
GET/api/snapshotFull colony snapshot
POST/api/queryHybrid query
POST/api/ingestIngest document
POST/api/tickRun simulation tick(s)
POST/api/runRun N ticks
WS/ws/eventsReal-time event stream

Re-exports§

pub use state::AppState;

Modules§

routes
HTTP and WebSocket routes for the web dashboard.
state
Application state for the web server.