http3-server

http3-server is a skill for Claude Code, Codex from sparq-org/sparq. It costs 48 tokens per session (1,599 once invoked), scanned A, original, MIT.

A Rust server component that adds an optional HTTP/3 listener over QUIC, an encrypted network protocol built on UDP, to an existing axum web server. It routes HTTP/3 requests through the same application router as HTTP/1.1 or HTTP/2.

In plain words
What is it for?
Use it in the internal sparq Rust project when an axum server needs an encrypted UDP listener, TLS 1.3, and HTTP/3 support.
Why use it?
It lets a server support HTTP/3 without replacing its existing HTTP listeners or duplicating its request-handling routes.

Skill for Claude CodeCodex

Part of the sparq plugin — 55 skills, 20 agents, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sparq-org/sparq/http3-server
Any agent
npx skills add sparq-org/sparq --skill http3-server
Clone the repo
git clone --depth 1 https://github.com/sparq-org/sparq

Made for: Claude Code, Codex.

Or install sparq, the plugin that ships this one along with the rest of its 55 skills, 20 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for http3-server

README.md
[![agentmods](https://agentmods.dev/badge/skills/sparq-org/sparq/http3-server.svg)](https://agentmods.dev/skills/sparq-org/sparq/http3-server)
Your own site
<a href="https://agentmods.dev/skills/sparq-org/sparq/http3-server"><img src="https://agentmods.dev/badge/skills/sparq-org/sparq/http3-server.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,599 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00048 $0.01599
Opus 5 $0.00024 $0.00800
Sonnet 5 $0.00010 $0.00320
Haiku 4.5 $0.00005 $0.00160

Measured yesterday against content hash 5d8a4bcfeddc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

http3-server scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/http3-server/SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sparq HTTP/3 server bridge

Use sparq-http3 when a sparq HTTP server needs a second, encrypted UDP listener that dispatches into the same axum::Router as its existing HTTP/1.1 or HTTP/2 listener. The crate is internal and unstable (publish = false), and its server feature is off by default so Quinn and the pre-1.0 h3 stack do not enter ordinary workspace builds.

Add the opt-in dependency

[features]
default = []
http3 = ["dep:sparq-http3"]

[dependencies]
sparq-http3 = { path = "../sparq-http3", optional = true, features = ["server"] }

The downstream crate owns certificate/key loading and runtime configuration. Build a rustls::ServerConfig with the aws-lc-rs provider, TLS 1.3, and the exact h3 ALPN token:

use std::sync::Arc;

let provider = Arc::new(rustls::crypto::aws_lc_rs::default_provider());
let mut tls = rustls::ServerConfig::builder_with_provider(provider)
    .with_protocol_versions(&[&rustls::version::TLS13])?
    .with_no_client_auth()
    .with_single_cert(certificates, private_key)?;
tls.alpn_protocols = vec![b"h3".to_vec()];

let quic = sparq_http3::quic_server_config(tls)?;
let endpoint = quinn::Endpoint::server(quic, udp_addr)?;
# Ok::<(), Box<dyn std::error::Error>>(())

quic_server_config fails closed when h3 is missing from ALPN or the provider lacks QUIC's required initial cipher suite. It also replaces Quinn's effectively unbounded default connection receive window with an owned finite bound; a caller may still replace the returned config's transport settings before binding the endpoint.

Serve the shared router

sparq_http3::serve_h3(endpoint, router.clone(), async move {
    shutdown_signal.await;
})
.await?;
# Ok::<(), std::io::Error>(())

The compatibility entry point is safe by default: it limits total concurrent connections, connections from one public IP, and concurrent requests on each connection. Internal addresses are exempt from the per-IP cap to avoid treating a proxy, container bridge, or conformance runner as one client, but the global cap still applies. Existing callers need no changes. To tune the caps, use the additive variant:

Read the full file on GitHub · 148 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 5d8a4bcfeddc
  2. 4d ago First seen · 148 lines · 48 tokens per session scan A 2df2d5e38c97

Subscribe to this mod's changes

http3-server is a skill published in the GitHub repository sparq-org/sparq (10 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,599 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.