Skip to main content

phago_web/
lib.rs

1//! # Phago Web Dashboard
2//!
3//! Real-time visualization and interaction for Phago colonies.
4//!
5//! ## Quick Start
6//!
7//! ```bash
8//! # Start the web server
9//! cargo run -p phago-web -- --port 3000
10//!
11//! # Open http://localhost:3000 in your browser
12//! ```
13//!
14//! ## API Endpoints
15//!
16//! | Method | Path | Description |
17//! |--------|------|-------------|
18//! | GET | `/api/stats` | Colony statistics |
19//! | GET | `/api/nodes` | All graph nodes |
20//! | GET | `/api/edges` | All graph edges |
21//! | GET | `/api/agents` | Active agents |
22//! | GET | `/api/snapshot` | Full colony snapshot |
23//! | POST | `/api/query` | Hybrid query |
24//! | POST | `/api/ingest` | Ingest document |
25//! | POST | `/api/tick` | Run simulation tick(s) |
26//! | POST | `/api/run` | Run N ticks |
27//! | WS | `/ws/events` | Real-time event stream |
28
29pub mod routes;
30pub mod state;
31
32pub use state::AppState;