{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/3"}],"enrichment":{"capability":"BrotliMiddleware adds Brotli compression to ASGI applications as a drop-in replacement for GZipMiddleware, offering denser compression with configurable quality and fallback to gzip when needed.","skillfed_tags":["compression","middleware","performance"],"use_cases":["Reduce bandwidth for JSON APIs and web services by compressing responses with Brotli instead of gzip","Serve static HTML and text content over the web with better compression density than gzip","Add compression to ASGI applications without writing custom middleware","Optimize WOFF 2.0 font delivery using Brotli's font-specific compression mode","Maintain gzip compatibility for older clients while preferring Brotli for modern browsers"],"what_it_does":"BrotliMiddleware is an ASGI middleware that automatically compresses HTTP responses using Brotli encoding. It integrates directly into Starlette and other ASGI frameworks, intercepting responses and applying compression before they reach the client. The middleware respects Accept-Encoding headers and can fall back to gzip for clients that don't support Brotli.\n\nYou configure it by adding it to your application's middleware stack, optionally tuning compression quality (0\u201311), mode (generic, text, or font), window size, block size, and minimum response size threshold. It skips responses that already have Content-Encoding set to avoid double-encoding, and it's designed as a direct replacement for the GZipMiddleware shipped with Starlette.","worth_installing":"Yes, if you're running an ASGI framework and want better compression than gzip. The package is lightweight, has no security vulnerabilities, and supports Python 3.9\u20133.14. Maintenance is aging but stable; the last release was 224 days ago and the repository remains active. Install it if bandwidth reduction matters for your workload and your clients support Brotli."},"id":"brotli-asgi","links":{"html":"https://skillfed.io/packages/brotli-asgi","md":"https://skillfed.io/packages/brotli-asgi.md","pypi":"https://pypi.org/project/brotli-asgi/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2026-01-02","license_spdx":null,"license_treatment":"permissive","name":"brotli-asgi","python_support":"supports_current","summary":"A compression AGSI middleware using brotli"},"popularity":{"monthly_downloads":678044,"position":5378,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.6.0"}
