dj-design-system (DjDS) lets you write front-end components in Django the same way you write models or forms, then use them in your templates as template tags. It comes with a gallery that finds your components, renders live previews in sandboxed iframes, generates usage examples and builds a searchable navigation tree, all from your existing code and docstrings.

It was originally developed at the Department for Business and Trade, and it's now an MIT-licensed package on PyPI that I maintain with Marcel Kornblum. My work on it has mostly been fixes to the gallery and how component parameters are shown, plus CI and the release process.

This site is built on it too: its front end is made of DjDS components, and you can browse them in the site's own component gallery.