blueprint-webhooks 0.2.0-alpha.4

Webhook producer for Blueprint SDK — trigger jobs from external HTTP events
docs.rs failed to build blueprint-webhooks-0.2.0-alpha.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

blueprint-webhooks

Webhook gateway for Blueprint SDK.

This crate exposes HTTP endpoints that authenticate inbound requests and inject JobCalls into a running Blueprint.

What it provides

  • WebhookGateway background service (axum)
  • WebhookProducer stream that converts verified webhook events into JobCalls
  • Per-endpoint route mapping (path -> job_id)
  • Auth modes:
    • none
    • bearer
    • hmac-sha256
    • api-key
  • Health endpoint:
    • GET /webhooks/health

Quick integration

use blueprint_webhooks::{WebhookConfig, WebhookGateway};
use blueprint_runner::BlueprintRunner;

let config = WebhookConfig::from_toml("webhooks.toml")?;
let (gateway, producer) = WebhookGateway::new(config)?;

BlueprintRunner::builder((), env)
    .router(router)
    .producer(producer)
    .background_service(gateway)
    .run()
    .await?;

Related links