very fast at protocol indexer with flexible filtering, xrpc queries, cursor-backed event stream, and more, built on fjall
rust fjall at-protocol atproto indexer
Something went wrong. Try again.
Rust
12345678910use crate::control::Hydrant;use axum::{Json, extract::State, http::StatusCode, response::IntoResponse, response::Response};
pub async fn get_stats(State(hydrant): State<Hydrant>) -> Response { match hydrant.stats().await { Ok(stats) => Json(stats).into_response(), Err(e) => (StatusCode::INTERNAL_SERVER_ERROR, e.to_string()).into_response(), }}