{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/2"}],"enrichment":{"capability":"Daphne is an ASGI server that handles HTTP, HTTP/2, and WebSocket protocols for Django Channels applications, with automatic protocol negotiation and support for multiple binding modes.","skillfed_tags":["asgi-server","websocket","django-channels"],"use_cases":["Running Django Channels applications that need to handle real-time WebSocket connections alongside standard HTTP requests.","Deploying ASGI applications with HTTP/2 support when TLS is enabled and modern OpenSSL is available.","Binding to UNIX sockets for inter-process communication with a reverse proxy or load balancer.","Using automatic TLS certificate provisioning via txacme endpoint syntax for Let's Encrypt integration.","Running inside process managers (systemd, supervisord) that pass file descriptors to the application."],"what_it_does":"Daphne is an ASGI server purpose-built for Django Channels that terminates HTTP, HTTP/2, and WebSocket connections. It automatically negotiates which protocol to use based on client requests, eliminating the need for URL-based routing to distinguish WebSocket from HTTP endpoints. The server is configured via command-line flags or Twisted endpoint description strings, supporting multiple binding modes: TCP ports, UNIX sockets, file descriptors passed from process managers, and TLS endpoints.\n\nThe package depends on asgiref, autobahn, and twisted. It supports Python 3.9 through 3.13 and is actively maintained as part of the Django Channels project. HTTP/2 support is available when Twisted's http2 and tls extras are installed and TLS is enabled; the server logs whether HTTP/2 support is active on startup. Daphne is typically deployed behind a reverse proxy for static file serving or as a standalone application server in containerized environments.","worth_installing":"Yes. Daphne is the reference ASGI server for Django Channels with active maintenance, no known vulnerabilities, low install friction, and permissive licensing. Install it if you are building a Django Channels application or need an ASGI server with native WebSocket and HTTP/2 support. The only gotcha is the HTTP/2 requirement for OpenSSL 1.0.2+, which is standard on modern systems."},"id":"daphne","links":{"html":"https://skillfed.io/packages/daphne","md":"https://skillfed.io/packages/daphne.md","pypi":"https://pypi.org/project/daphne/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-21","license_spdx":null,"license_treatment":"permissive","name":"daphne","python_support":"supports_current","summary":"Django ASGI (HTTP/WebSocket) server"},"popularity":{"monthly_downloads":6048311,"position":1977,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"4.2.3"}
