# django/daphne

Django Channels HTTP/WebSocket server

Repository: https://github.com/django/daphne
Canonical: https://ross.abutalabs.com/products/daphne
Language: Python
License: BSD-3-Clause
License Family: permissive
Last push: 2026-07-21T13:15:31+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 35, longevity 100
- inputs: {"age_days": 3906, "days_push": 43, "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 2679, forks 292 (observed 2026-08-28T04:07:09.954518+00:00)

## What it is
Daphne is an HTTP, HTTP/2, and WebSocket protocol server for ASGI applications, built to power Django Channels. It automatically negotiates protocols so WebSocket and HTTP endpoints can share the same port without URL prefixing.

## Use cases
- serve an ASGI Django application in production
- run websockets alongside HTTP on a single port
- terminate HTTP/2 connections with TLS
- run an ASGI server behind a reverse proxy over unix sockets
- deploy Django Channels realtime apps

## When to choose
- you need a production ASGI server for Django Channels or any ASGI app
- you need native WebSocket and HTTP protocol negotiation
- you need HTTP/2 termination with TLS

## When to avoid
- you run WSGI-only Django apps without async features
- you prefer uvicorn or hypercorn for a non-Django ASGI stack

## Facets
- artifact type: service
- maturity: stable
- function: http-server, websocket
- domain: web-development, backend
- platform: python, cross-platform, cli
- tags: asgi, django-channels, http2, twisted, async, real-time

## Member repositories
- django/daphne (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.954518+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-30T02:17:57.771874+00:00, confidence not recorded.
  - readme: https://github.com/django/daphne (fetched 2026-08-28T04:07:09.954518+00:00, sha 2c4dd6904f7b)
  - registry_pypi: https://pypi.org/pypi/daphne/json (fetched 2026-08-29T10:00:15.759952+00:00, sha 9e3daf6a4d92)
- Data as of 2026-08-30T08:39:29.467469+00:00.
