# mtrudel/bandit

Bandit is a pure Elixir HTTP server for Plug & WebSock applications

Repository: https://github.com/mtrudel/bandit
Canonical: https://ross.abutalabs.com/products/mtrudel-bandit
Language: Elixir
License: MIT
License Family: permissive
Topics: elixir, elixir-phoenix, http, https, http2, http-server, http2-server, h2spec, elixir-plug, rfc-7540, rfc-2616, rfc-6455, websocket, rfc-9112, rfc-9110, rfc-9113
Last push: 2026-08-26T13:35:49+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 2488, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1915, forks 117 (observed 2026-08-28T04:05:53.761556+00:00)

## What it is
Bandit is a pure Elixir HTTP server for Plug and WebSock applications, supporting HTTP/1.x, HTTP/2, and WebSockets over HTTP and HTTPS. It is the default HTTP server for Phoenix since 1.7.11 and emphasizes correctness, clarity, and performance.

## Use cases
- serve a Phoenix or Plug web application in Elixir
- replace Cowboy with a faster HTTP server for Elixir apps
- serve WebSocket connections from an Elixir backend
- host an HTTP/2-compliant API server
- run an HTTPS server with strong RFC conformance
- build a lightweight Elixir web server without Erlang Cowboy

## When to choose
- you are building a Plug or Phoenix application in Elixir
- you need HTTP/1.x, HTTP/2, and WebSocket support with high conformance
- you want better HTTP performance than Cowboy in benchmarks
- you value an approachable, well-tested codebase

## When to avoid
- you need a general-purpose HTTP server outside the Plug/WebSock ecosystem
- your stack is not Elixir/Erlang
- you require extensive HTTP-level configuration or proxy features

## Facets
- artifact type: library
- maturity: stable
- function: http-server, websocket, routing
- domain: web-development, backend, apis
- platform: elixir
- tags: plug, phoenix, http2, http1, cowboy-alternative, thousand-island, web-server

## Member repositories
- mtrudel/bandit (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:53.761556+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:10:24.082585+00:00, confidence not recorded.
  - readme: https://github.com/mtrudel/bandit (fetched 2026-08-28T04:05:53.761556+00:00, sha a8bb4f9cea73)
- Data as of 2026-08-30T08:39:29.467469+00:00.
