drf-spectacular-sidecar
Serve self-contained distribution builds of Swagger UI and Redoc with Django
What it is and what it does
drf-spectacular-sidecar packages pre-built distributions of Swagger UI (version 5.32.11) and Redoc (version 2.5.3) as Django static files. It eliminates the need to build these UI libraries from npm or manage Node.js tooling in your Django project—you install the package, add it to INSTALLED_APPS, and Django's static file system handles serving the documentation interface.
The package is designed as an optional companion to drf-spectacular but can be used independently. It updates monthly on the 1st, pulling fresh distributions from npm via jsdelivr, validating them, and publishing to PyPI. This means you get current versions of Swagger UI and Redoc without manual intervention, as long as you keep the package updated.
Use it for:
- Add interactive Swagger UI documentation to a Django REST API without Node.js build tooling.
- Serve Redoc-based API documentation alongside drf-spectacular schema generation.
- Deploy API docs as part of Django's collectstatic workflow for production environments.
- Reduce build complexity in CI/CD pipelines by eliminating npm dependencies for documentation UI.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Serves pre-built Swagger UI and Redoc distributions as Django static files, enabling API documentation display without requiring Node.js or additional build steps.
Yes. Low install friction, permissive licensing, active maintenance with monthly updates, no known vulnerabilities, and a clear single purpose: serve pre-built API documentation UIs. Install if you need Swagger UI or Redoc in a Django project and want to avoid npm/Node.js tooling. Skip only if you prefer to manage these distributions separately or have custom UI requirements.
Install
drf-spectacular-sidecar on PyPI
pip
pip install drf-spectacular-sidecaruv
uv add drf-spectacular-sidecarpoetry
poetry add drf-spectacular-sidecarInstalling drf-spectacular-sidecar
Before you install
Low friction: single runtime dependency on Django, wheel-only distribution, and active maintenance with releases every month. Last commit 2026-08-01 and release 13 days ago.
License in practice
Permissive BSD license on the package itself; includes Apache 2.0 (Swagger UI) and MIT (Redoc) licensed distributions. All three are permissive and compatible with most projects.
Quickstart
pip install drf-spectacular-sidecar
# In settings.py
INSTALLED_APPS = [
'drf_spectacular_sidecar',
]
# Then use with drf-spectacular or serve static files via runserver/collectstatic
Django >= 2.2 required; the package must be added to INSTALLED_APPS for Django to discover static files.
Verify before relying
- Whether this package works standalone or primarily as a companion to drf-spectacular (description says it can be used independently, but typical usage patterns are unclear).
- Performance characteristics when serving large API documentation or with many concurrent requests.
Package facts
| License | BSD (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — Django |
| Maintenance | actively maintained — 13 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,798,720/month — #3,546 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: drf_spectacular_sidecar-2026.8.1-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
drf-spectacularGenerates OpenAPI 3.0.3, 3.1, and 3.2 schemas…
permissive · top 5,000 on PyPI
fastapi-offlineReplaces FastAPI's CDN-dependent documentation…
permissive · top 15,000 on PyPI
ledoc-uiProvides static UI files for serving an OpenAPI…
permissive · top 15,000 on PyPI
drf-yasgGenerates Swagger/OpenAPI 2.0 specifications…
permissive · top 5,000 on PyPI
drf-spectacular-jsonapiGenerates OpenAPI 3 schemas for Django REST…
permissive · top 15,000 on PyPI
swagger-ui-bundlePackages Swagger UI's static files and…
permissive · top 5,000 on PyPI
swagger-ui-pyIntegrates Swagger UI documentation into Python…
permissive · top 15,000 on PyPI
CollectfastaCollectfasta speeds up Django's collectstatic…
permissive · top 5,000 on PyPI
mkdocs-render-swagger-pluginRenders Swagger and OpenAPI schemas as…
permissive · top 15,000 on PyPI
flask-openapi3-swaggerProvides Swagger UI integration for…
permissive · top 15,000 on PyPI