# django-compressor/django-compressor

Compresses linked and inline javascript or CSS into a single cached file.

Repository: https://github.com/django-compressor/django-compressor
Canonical: https://ross.abutalabs.com/products/django-compressor
Homepage: https://django-compressor.readthedocs.io
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-08-25T07:02:51+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 6053, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2870, forks 606 (observed 2026-08-28T04:07:27.061620+00:00)

## What it is
A Django app that combines and minifies linked and inline JavaScript and CSS in templates into single cacheable static files. It supports compilers like LESS and SASS, extensible filters, and offline compression via a management command.

## Use cases
- combine and minify css and javascript in django templates
- speed up django page load by bundling static assets
- precompile sass or less in a django project
- serve static files with far-future cache expiration
- run offline asset compression with manage.py compress

## When to choose
- you use Django and want template-level asset bundling with minimal setup
- you need extensible minification with support for compilers like SASS, LESS, or Closure Compiler
- you want content-hashed filenames for safe long-term browser caching

## When to avoid
- you are not using Django
- you use a modern frontend build pipeline like Webpack, Vite, or esbuild
- you need bundling for frameworks outside Django templates

## Facets
- artifact type: library
- maturity: stable
- function: web-framework, build-tool, caching, middleware
- domain: web-development, frontend, performance, developer-tools
- platform: python, cross-platform
- tags: django, asset-pipeline, minification, css, javascript, static-files, template-tags, web-server

## Member repositories
- django-compressor/django-compressor (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:27.061620+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-30T07:35:52.778643+00:00, confidence not recorded.
  - readme: https://github.com/django-compressor/django-compressor (fetched 2026-08-28T04:07:27.061620+00:00, sha f356d014bc9c)
  - registry_pypi: https://pypi.org/pypi/django-compressor/json (fetched 2026-08-29T09:52:04.241629+00:00, sha dded7129b3bd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
