ccs-proxy 0.1.1

Local logging reverse-proxy + dashboard for Claude Code / Codex traffic
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Reverse-proxy app: matches every inbound HTTP request via a fallback
//! handler, forwards it to the configured upstream, and tees a copy of the
//! response byte stream into a background reassembler for capture.

pub mod forward;
pub mod sse_tap;

use crate::AppState;
use axum::Router;
use axum::routing::{any, get};

pub fn build_proxy_app(state: AppState) -> Router {
    Router::new()
        .route("/", get(|| async { "ccs-proxy: send requests here" }))
        .fallback(any(forward::forward))
        .with_state(state)
}