25 pointsby amaury_bouchard8 hours ago5 comments
  • nattaylor18 minutes ago
    Reminds me a little of htmz

    htmz is a minimalist HTML microframework for creating interactive and modular web user interfaces with the familiar simplicity of plain HTML.

  • recursivedoubtsan hour ago
    heya amaury, great library!

    i have added it to the htmx alternatives page:

    https://htmx.org/essays/alternatives/#ujs

    • tagfowufe7 minutes ago
      Sneaking in real quick to thank you for your contributions and positive attitude you bring to the space.
  • ranger_danger15 minutes ago
    Does it automatically parse JSON responses from servers into objects? This is my one big gripe about htmx, even though the devs and other users keep telling me I shouldn't want that as a feature and that it "doesn't make sense".

    Sorry if I need to use existing APIs I cannot change.

  • ohghiZai2 hours ago
    Would love to see a comparison with Datastar too
    • amaury_bouchardan hour ago
      Thanks for the suggestion! I'm considering adding more libraries to the comparison page (Datastar and Unpoly are on my radar).

      That said, µJS and Datastar have quite different philosophies. µJS is a lightweight AJAX navigation library (~5 KB); it intercepts links and forms, swaps fragments, and stays out of your way. There's no client-side state: your server renders HTML, µJS delivers it.

      Datastar is more of a reactive hypermedia framework. It brings client-side signals (reactive state in HTML attributes, à la Alpine.js) and uses SSE as its primary transport: the server pushes updates rather than the client fetching them. It's a different mental model: Datastar manages state and reactivity, while µJS is purely about navigation and content replacement.

      Both are small, zero-build-step, and attribute-driven, so the comparison is definitely interesting. I'll look into adding it!