# spookylukey/django-htmx-patterns

Pattern repository for Django and htmx with full example code

Repository: https://github.com/spookylukey/django-htmx-patterns
Canonical: https://ross.abutalabs.com/products/django-htmx-patterns
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: django, html, htmx, hypermedia, web
Last push: 2026-01-11T19:11:40+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 61, release rhythm 35, longevity 100
- inputs: {"age_days": 1461, "days_push": 234, "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 1065, forks 46 (observed 2026-08-28T04:03:26.713386+00:00)

## What it is
A pattern repository documenting how to combine Django with htmx, complete with runnable example code. It is explicitly not a library - the code is released into the public domain for developers to copy-paste into their own projects.

## Use cases
- learn how to use htmx with Django
- implement inline partials in Django templates
- add field-by-field form validation with htmx
- build modal dialogs with Django and htmx
- structure Django views for partial rendering
- find copy-paste patterns for hypermedia-driven Django apps

## When to choose
- You are building a Django project with htmx and want proven patterns rather than a packaged dependency
- You want locality of behaviour with inline partials and minimal view-code changes
- You prefer copy-paste public-domain code you fully control over adding libraries like django-htmx

## When to avoid
- You need an installable pip package with an API - this is documentation and example code, not a library
- You are not using Django or htmx
- You need a complete tutorial from scratch rather than pattern-level guidance

## Facets
- artifact type: learning-resource
- maturity: active
- function: web-framework, templating, documentation, form-handling, ui-components
- domain: web-development, frontend, backend, documentation, tutorials
- platform: python, browser, cross-platform
- tags: django, htmx, hypermedia, patterns, example-code, copy-paste, partials, inline-partials, modal-dialogs, form-validation, no-library, web-server

## Member repositories
- spookylukey/django-htmx-patterns (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:26.713386+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-30T06:55:31.733744+00:00, confidence not recorded.
  - readme: https://github.com/spookylukey/django-htmx-patterns (fetched 2026-08-28T04:03:26.713386+00:00, sha 1ce9de64cc2e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
