django-htmx VS shoelace-css

Compare django-htmx vs shoelace-css and see what are their differences.

django-htmx

Extensions for using Django with htmx. (by adamchainz)

shoelace-css

A collection of professionally designed, every day UI components built on Web standards. SHOELACE IS BECOMING WEB AWESOME 👇👇👇 (by claviska)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
django-htmx shoelace-css
18 73
1,404 12,057
- 2.2%
8.6 9.5
10 days ago 13 days ago
JavaScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

django-htmx

Posts with mentions or reviews of django-htmx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-29.
  • Django + Htmx package for simple integration
    2 projects | /r/htmx | 29 May 2023
  • Disabling HTMX Urls
    1 project | /r/django | 25 May 2023
    If you don't already, you should use django-htmx. This will allow you to check if the request was made with HTMX. You can then do something like this:
  • HTMX and Wagtail
    3 projects | /r/djangolearning | 2 May 2023
    To make things easier, install the django-htmx package. Then, in your Page model's serve(), you can do things like if request.htmx: and return an HTML snippet instead of the full page in that case.
  • Htmx
    10 projects | news.ycombinator.com | 14 Dec 2022
    The great thing about HTMX is it fits really nicely with templated server-rendered frameworks like Django.

    You can have a page with a list of items. The page is one template, and it includes a sub-template which is just the

  • items. Then you have a separate view for "get list fragment" which just returns the updated/sorted/filtered
  • . If you toggle the ordering, or filter the list, HTMX will automatically call the fragment renderer and replace just the
  • items, without reloading the page.

    See this example: https://github.com/adamchainz/django-htmx/blob/8054f049f53f0...

    This approach solves the common interactivity use-cases requiring JS in a server-rendered app, without having to write any JS, and without having to build a REST API. Instead you just render HTML, which your framework is excellent at.

  • Building a fullstack app with Flask and HTMx
    6 projects | news.ycombinator.com | 29 Mar 2022
    If you use django-htmx, it's pretty simple to get the "this HTTP request came from HTMX" flag and branch accordingly in your view. The docs give a simple example of the logic here:

    https://django-htmx.readthedocs.io/en/latest/middleware.html...

    The examples give a fleshed-out version: https://github.com/adamchainz/django-htmx/blob/main/example/...

    Though that's very slightly different than how I described it above, but it's basically the same idea; in this case you commonize the `main` block between the two contexts.

  • Django Contrib Messages + HTMX ?
    1 project | /r/django | 22 Mar 2022
    HTMX has a HX-Trigger response header that enables you to trigger events in the browser that Javascript code can listen for. Assuming you already have Django-HTMX library set up, you could write a middleware like this:
  • What are your favorite 3rd party packages that you often use with Django?
    3 projects | /r/django | 8 Feb 2022
    Nice. I've written some less complete, less consistent variant of this a couple times now. That alone may be worth taking the dependency.
  • Is HTMX a Django-supported equivalent of Rails Hotwire / Turbo?
    1 project | /r/django | 2 Feb 2022
    Full URL for django-htmx: https://github.com/adamchainz/django-htmx (creator here)
  • Frontend with Django
    1 project | /r/django | 1 Feb 2022
    I think it's fair to clarify that Adam Johnson (aka adamchainz on Reddit and GitHub) didn't create HTMX but did write the django-htmx app to make it easier to use HTMX in Django.
  • Django and hx-delete request verb
    1 project | /r/htmx | 5 Jan 2022
    django-htmx also comes with it's own version of HttpResponseHtmxRedirect (called HttpResponseClientRedirect).

shoelace-css

Posts with mentions or reviews of shoelace-css. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-12.
  • Htmx and the Rule of Least Power
    4 projects | news.ycombinator.com | 12 Apr 2024
    HTMX gets all the hype right now, but there are other tools in the same vain, my favorite being Unpoly (https://unpoly.com). Together with Shoelace (https://shoelace.style) you get nice GUIs real fast, without the burden of complicated dependency management and build steps. Also, you don't have to write a lot of JS, just what is needed for small enhancements, as it was meant to be. Some might say the main drawback is the tight coupling to your backend. In my case, this is also the main benefit as it integrates perfectly with the backend framework (Django).
  • Show HN: Hyperdiv – Reactive, immediate-mode web UI framework for Python
    9 projects | news.ycombinator.com | 20 Feb 2024
    Hello HN,

    I'm releasing Hyperdiv (https://hyperdiv.io), a framework for rapidly developing reactive browser UIs in Python, with immediate-mode syntax and using Shoelace (https://shoelace.style) as its built-in component system.

    This short coding video will give you a good idea of what it is: https://www.youtube.com/watch?v=4XJKfxaqvGE

    I wrote a brief article about the motivation and approach: https://hyperdiv.io/intro.html

    Hyperdiv doesn't aim to compete with serious full-stack frameworks. The core aim was to make it easy and fast to prototype apps and build UI-based tools. I was originally motivated by internal tools at work -- feeling the need to quickly put together UI-based tools to share with both technical and non-technical coworkers, without having to stand up and maintain a full internal stack.

    This is my first major open source release. I really appreciate your feedback and support. - Marius

  • Making Web Component properties behave closer to the platform
    9 projects | dev.to | 21 Jan 2024
    For example, all the following design systems can be used without tooling (some of them provide ready-to-use bundles, others can be used through import maps): Google's Material Web, Microsoft's Fluent UI, IBM's Carbon, Adobe's Spectrum, Nordhealth's Nord, Shoelace, etc.
  • Shadcn: Beautifully designed components that you can copy-paste into your apps
    15 projects | news.ycombinator.com | 12 Jan 2024
  • Shoelace: A forward-thinking library of web components
    3 projects | news.ycombinator.com | 10 Jan 2024
    1 project | news.ycombinator.com | 7 Oct 2023
  • Stream Updates to Your Users with LiteCable for Ruby on Rails
    4 projects | dev.to | 10 Jan 2024
    Here's what this looks like - note that I'm using Shoelace components for styling purposes.
  • Ask HN: Is there something like shadcn/UI for vanilla HTML and JavaScript?
    1 project | news.ycombinator.com | 15 Nov 2023
  • Lit 3 Release Announcement
    9 projects | news.ycombinator.com | 10 Oct 2023
    There are lots of open-source design systems built with Lit. Shoelace is a popular component set that you might check out: https://github.com/shoelace-style/shoelace There are many others...

    Would it help if we listed more open source projects on our site?

    Because of our focus on components and the fact that you really can use just about any libraries and scaffolding for apps, we don't really have an app starter kit, but it's something we've talked about.

  • Framework Interoperable Component Libraries Using Lit Web Components.
    8 projects | dev.to | 8 Oct 2023
    I'm really excited about all this, and it makes me have some faith in the web again. I think that Lit is a step in the right direction especially the ability to do SSR / SSG and hydrate a web page. Hopefully 🤞 Shoelace can get SSR running, which is currently one hurdle, but I think it is achievable.

What are some alternatives?

When comparing django-htmx and shoelace-css you can also consider the following projects:

django-unicorn - The magical reactive component framework for Django ✨

carbon-components-svelte - Svelte implementation of the Carbon Design System

htmx - </> htmx - high power tools for HTML

ng-bootstrap - Angular powered Bootstrap

django-tailwind-alpine-htmx - Simple Task app using Django, Tailwind CSS, Alpine.js and HTMX

storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.

reactor - Phoenix LiveView but for Django

material - Material design for AngularJS

django-tailwind - Django + Tailwind CSS = 💚

stencil - A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.

clerk - Website used by new Anika clients to enter the facts of their case (backend)

spectrum-web-components - Spectrum Web Components