Skip to main content

Crate flow_server

Crate flow_server 

Source
Expand description

High-performance web server for Agent Flow task monitoring.

Built on axum with real-time updates via Server-Sent Events (SSE) and WebSocket connections. Watches the filesystem for task changes and broadcasts updates to all connected clients.

§Features

  • REST API for sessions, tasks, and features
  • SSE and WebSocket endpoints for live updates
  • File watcher using the notify crate
  • Optional SQLite database for feature management
  • Static file serving for the web UI

Re-exports§

pub use error::AppError;
pub use error::AppResult;
pub use state::AppState;
pub use state::MetadataCache;

Modules§

error
helpers
routes
sse
state
watcher
ws

Functions§

build_router
Build the axum router with all routes
run_server
Run the axum server with the given configuration