# Daphne

> HTTP, HTTP/2 and WebSocket server for ASGI apps, built to power Django Channels

Source: https://talira.ai/catalog/daphne-3f0xzz1q
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Infrastructure
- Categories: [web servers / application servers](https://talira.ai/categories/web-servers/application-servers), [languages / python](https://talira.ai/categories/languages/python)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Supports: [ASGI](https://talira.ai/standards/asgi.md)[^3]
- Backed by: [Django Software Foundation](https://talira.ai/orgs/django-software-foundation.md)
- Funding: non-profit[^4]

Daphne is an HTTP, HTTP/2 and WebSocket protocol server for ASGI and ASGI-HTTP applications, developed to power Django Channels and maintained as part of the Channels project under the Django Software Foundation. It negotiates protocols automatically, so WebSocket and HTTP endpoints need no URL prefixes. It can bind to a port, a UNIX socket or a file descriptor from a process manager, takes Twisted endpoint strings for TLS and other bindings, terminates HTTP/2 natively with Twisted's http2 and tls extras, and supports a root path like WSGI's SCRIPT_NAME.

## Links

- GitHub: https://github.com/django/daphne

## Problems it solves

- serve my Django Channels app with WebSockets
- run a Django ASGI app behind nginx over a UNIX socket
- terminate HTTP/2 for my Python ASGI app

## Features

- HTTP, HTTP/2 and WebSocket server for ASGI apps
- automatic protocol negotiation, with no URL prefixes for WebSockets
- binds to ports, UNIX sockets or inherited file descriptors
- Twisted endpoint strings for TLS and custom bindings
- root path setting like WSGI's SCRIPT_NAME

## Limitations

- HTTP/2 covers normal requests only, with no Server Push[^1]
- Needs Python 3.10 or later[^1]

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.45, adoption 0.69, momentum 0.40, community 0.76, backing 0.55, extensibility 0.00.

- last commit 3 months ago
- 2.7k GitHub stars
- 80 contributors
- backed by Django Software Foundation
- funding: non-profit

## Related

- Works with [Django](https://talira.ai/catalog/django-h3z1mj1k.md)
- Works with [Django Channels](https://talira.ai/catalog/django-channels-xjrcjsp5.md)

## Alternatives

- [Uvicorn](https://talira.ai/catalog/uvicorn-gjvahj1g.md): ASGI web server for Python with HTTP/1.1, HTTP/2 and WebSockets
- [Hypercorn](https://talira.ai/catalog/hypercorn-a8hkv9m4.md): ASGI and WSGI web server for Python with HTTP/2, WebSockets and optional HTTP/3
- [Gunicorn](https://talira.ai/catalog/gunicorn-apntafgc.md): Python WSGI HTTP server for UNIX

## Sources

[^1]: https://github.com/django/daphne#readme (checked 28 Nov 2026)
[^2]: https://github.com/django/daphne/blob/main/LICENSE (checked 28 Nov 2026)
[^3]: https://github.com/django/daphne (checked 28 Nov 2026)
[^4]: https://www.djangoproject.com/foundation/ (checked 20 Nov 2026)
