{"id":13416077,"url":"https://github.com/torchbox/django-pattern-library","last_synced_at":"2025-05-16T02:08:17.625Z","repository":{"id":38084635,"uuid":"241545103","full_name":"torchbox/django-pattern-library","owner":"torchbox","description":"UI pattern libraries for Django templates","archived":false,"fork":false,"pushed_at":"2025-04-08T16:34:34.000Z","size":4923,"stargazers_count":392,"open_issues_count":36,"forks_count":50,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-05-10T03:24:54.568Z","etag":null,"topics":["django","pattern-library","patternlab"],"latest_commit_sha":null,"homepage":"https://torchbox.github.io/django-pattern-library/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torchbox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-19T06:00:33.000Z","updated_at":"2025-05-09T06:50:42.000Z","dependencies_parsed_at":"2023-02-01T08:16:56.100Z","dependency_job_id":"ffb243c1-95b5-4290-aa9a-d008ce3cfd4f","html_url":"https://github.com/torchbox/django-pattern-library","commit_stats":{"total_commits":447,"total_committers":23,"mean_commits":"19.434782608695652","dds":0.6196868008948546,"last_synced_commit":"3fad362e1da0580c60dc3032893806f9d56b3d43"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchbox%2Fdjango-pattern-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchbox%2Fdjango-pattern-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchbox%2Fdjango-pattern-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchbox%2Fdjango-pattern-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torchbox","download_url":"https://codeload.github.com/torchbox/django-pattern-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453655,"owners_count":22073617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","pattern-library","patternlab"],"created_at":"2024-07-30T21:00:54.105Z","updated_at":"2025-05-16T02:08:17.566Z","avatar_url":"https://github.com/torchbox.png","language":"Python","readme":"# [django-pattern-library](https://torchbox.github.io/django-pattern-library/)\n\n[![PyPI](https://img.shields.io/pypi/v/django-pattern-library.svg)](https://pypi.org/project/django-pattern-library/) [![PyPI downloads](https://img.shields.io/pypi/dm/django-pattern-library.svg)](https://pypi.org/project/django-pattern-library/) [![Build status](https://github.com/torchbox/django-pattern-library/workflows/CI/badge.svg)](https://github.com/torchbox/django-pattern-library/actions)\n\n\u003e UI pattern libraries for Django templates. Try our [online demo](https://torchbox.github.io/django-pattern-library/demo/).\n\n![Screenshot of the pattern library UI, with navigation, pattern rendering, and configuration](https://raw.githubusercontent.com/torchbox/django-pattern-library/main/.github/pattern-library-screenshot.webp)\n\n## Features\n\nThis package automates the maintenance of UI pattern libraries or styleguides for Django projects, and allows developers to experiment with Django templates without having to create Django views and models.\n\n- Create reusable patterns by creating Django templates files as usual.\n- All patterns automatically show up in the pattern library’s interface.\n- Define data as YAML files for the templates to render with the relevant Django context.\n- Override Django Templates tags as needed to mock the template’s dependencies.\n- Document your patterns with Markdown.\n- Experimental: support for Jinja templates.\n\n## Why you need this\n\nPattern libraries will change your workflow for the better:\n\n- They help separate concerns, both in code, and between members of a development team.\n- If needed, they make it possible for UI development to happen before models and views are created.\n- They encourage code reuse – defining independent UI components, that can be reused across apps, or ported to other projects.\n- It makes it much simpler to test UI components – no need to figure out where they’re used across a site or app.\n\nLearn more by watching our presentation – [Reusable UI components: A journey from React to Wagtail](https://www.youtube.com/watch?v=isrOufI7TKc).\n\n## Online demo\n\nThe pattern library is dependent on Django for rendering – but also supports exporting as a static site if needed. Try out our online demo:\n\n- For a component, [accordion.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/molecules/accordion/accordion.html)\n- For a page-level template, [person_page.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/pages/people/person_page.html)\n\n## Documentation\n\nDocumentation is available at [torchbox.github.io/django-pattern-library](https://torchbox.github.io/django-pattern-library/), with source files in the `docs` directory.\n\n- **[Getting started](https://torchbox.github.io/django-pattern-library/getting-started/)**\n- **Guides**\n  - [Defining template context](https://torchbox.github.io/django-pattern-library/guides/defining-template-context/)\n  - [Overriding template tags](https://torchbox.github.io/django-pattern-library/guides/overriding-template-tags/)\n  - [Customizing template rendering](https://torchbox.github.io/django-pattern-library/guides/customizing-template-rendering/)\n  - [Usage tips](https://torchbox.github.io/django-pattern-library/guides/usage-tips/)\n- **Reference**\n  - [API \u0026 settings](https://torchbox.github.io/django-pattern-library/reference/api/)\n  - [Known issues and limitations](https://torchbox.github.io/django-pattern-library/reference/known-issues/)\n\n## Contributing\n\nSee anything you like in here? Anything missing? We welcome all support, whether on bug reports, feature requests, code, design, reviews, tests, documentation, and more. Please have a look at our [contribution guidelines](https://github.com/torchbox/django-pattern-library/blob/main/CONTRIBUTING.md).\n\nIf you want to set up the project on your own computer, the contribution guidelines also contain all of the setup commands.\n\n### Nightly builds\n\nTo try out the latest features before a release, we also create builds from every commit to `main`. Note we make no guarantee as to the quality of those pre-releases, and the pre-releases are overwritten on every build so shouldn’t be relied on for reproducible builds. [Download the latest `django_pattern_library-0.0.0.dev0-py3-none-any.whl`](http://torchbox.github.io/django-pattern-library/dist/django_pattern_library-0.0.0.dev0-py3-none-any.whl).\n\n## Credits\n\nView the full list of [contributors](https://github.com/torchbox/django-pattern-library/graphs/contributors). [BSD](https://github.com/torchbox/django-pattern-library/blob/main/LICENSE) licensed.\n\nProject logo from [FxEmoji](https://github.com/mozilla/fxemoji). Documentation website built with [MkDocs](https://www.mkdocs.org/), and hosted in [GitHub Pages](https://pages.github.com/).\n","funding_links":[],"categories":["Third-Party Packages"],"sub_categories":["Testing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorchbox%2Fdjango-pattern-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorchbox%2Fdjango-pattern-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorchbox%2Fdjango-pattern-library/lists"}