structured-text VS htmx

Compare structured-text vs htmx and see what are their differences.

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
structured-text htmx
1 568
22 32,837
- 3.6%
6.1 9.6
16 days ago 8 days ago
TypeScript JavaScript
MIT License GNU General Public License v3.0 or later
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.

structured-text

Posts with mentions or reviews of structured-text. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-11.
  • Ask HN: Help me pick a front-end framework
    13 projects | news.ycombinator.com | 11 Sep 2022
    Can you elaborate a bit more on this part, please?

    > I'm thinking of building a text-annotation based app _alone in my spare time_. The core usage loop is about viewing and interacting with "visual markup" applied to a body of text. So lots of tooltips/hoverbars I guess.

    Or show us a mockup... doesn't have to be anything fancy, just like a pen and paper sketch or a simple Figma.

    I'm asking because it kinda sounds like you're wanting to do something like an online IDE or Google Docs, where you're manipulating a body of text in the style of a rich text editor. If that's the case, it's possible the HTML DOM model isn't quite the right fit for you... you may find it better to abstract over a Canvas or WebGL object instead of trying to shoehorn that experience into the raw DOM. That way you have full control over rendering, outside of the normal layout/styling/rendering loop. It might also make a good case for a single-page app (at least the majority of the editor itself would be, and the other stuff -- marketing, blog, etc. -- can be routed to individual pages).

    In that case, it wouldn't be so much a question of "framework" in the sense of React, Vue, etc., which traditionally work on the DOM. It might be more a question of "engine", like whether to use something like PixiJS to manipulate the graphics layer vs rolling your own. State management can be done with something like Redux (even without React), or if you choose to use a frontend framework for the rest of it, you can maybe use their state solution with your rendering engine.

    In addition to choosing a low-level graphics lib, you can also look at some existing rich text markup solutions. A CMS I used had a good blog post on this: https://www.datocms.com/docs/structured-text/dast#datocms-ab... along with their open-source editor: https://github.com/datocms/structured-text

    A more widespread one is the toast UI editor: https://ui.toast.com/tui-editor

    I know you're not just working in Markdown, but these give you an idea of what it's like to work with complex text trees in JS.

    Once you have the actual text editor part figured out, choosing the wrapper around it (again, just for marketing pages, etc.) is relatively trivial compared to the difficulty of your editor app. I really like Next.js myself (if you choose React), but I don't think you could really go wrong with any of the major choices today... React/Vue/Svelte/etc. And it looks to me like the complexity of your site wouldn't really be around that anyway, but the editor portion.

    Lastly: I don't think ANY JS tool or package is going to be maintained in 10 years. Frankly, 2 years is a long time in the JS ecosystem :( I'm not defending this phenomenon, I hate it too, but that's the reality of it. If long-term maintenance is a goal of yours, you might want to consider writing abstraction layers over third-party tools you use, so you can easily swap them out when future things come out (because they will). The web itself is changing too fast for libraries to keep up; instead, people just write new ones every few years. An example of this is the pathway from the Canvas to WebGL to workers to WASM (and how to juggle heavy computational vs rendering loops around)... a lot of the old Canvas-based renderers, which were super powerful in their time, are now too slow vs the modern alternatives. Nobody is going to port the old stuff over, they just make new libs. It's likely that trend will continue in the JS world (that whatever you write today will be obsoleted by a new web API in a few years).

    Lastly, as an aside, TypeScript is a superset of JS... if you find a JS project/lib/plugin that you want to use, there will often be types for it made by the community (https://github.com/DefinitelyTyped/DefinitelyTyped) , or you can write your own types for it. I don't really have an opinion about TypeScript vs writing in some other language and compiling to JS, but it would probably be easier to find help (especially frontend) in the future if you stick with TypeScript instead of convoluting your stack with multiple languages. Sounds like most of your app will be clientside anyway with limited backend needs.

    ---------

    Tech aside... have you considered partnering with a frontend dev for this? I know you said "alone", but just having someone set up the basic skeleton of such an app with you for the first month or two could be super helpful. Or a UX person to help you with some of the interactions before you start serious coding. They don't have to be with you the whole journey, but maybe they can help jumpstart your project so you can then work on adding features & polish in your spare time, instead of figuring out basic architecture? Unless, of course, that's the part you actually enjoy. In that case, don't let anyone rob of you that :)

    Have fun! Sounds like a cool project.

htmx

Posts with mentions or reviews of htmx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-07.
  • Hanami and HTMX - progress bar
    5 projects | dev.to | 7 May 2024
    Hi there! I want to show off a little feature I made using hanami, htmx and a little bit of redis + sidekiq.
  • Migrating Next.js App to GO + Templ & HTMX
    5 projects | dev.to | 5 May 2024
    Recently, I just rewrite one of my application Stashbin from Next.js to GO. Though my main motivation of this migration was to learn GO and experimenting with HTMX. I also aiming to reduce the resource usage of my application and simplify the deployment process. Initially, Stashbin codebase are split into two seperate repository, one for the frontend that uses Next.js and another for the backend that already uses GO. The backend repository is just a REST API responsible for storing and retreiving data from the database.
  • 🕸️ Web development trends we will see in 2024 👀
    3 projects | dev.to | 2 May 2024
    HTMX is another library that gained popularity due to its server-first approach to rendering data, although seeking a much simpler way of appealing to developers.
  • Reusable Input Datalist
    1 project | dev.to | 6 Apr 2024
    When I work with HTMX I need isolated component that can be reusable a form. So I create a PHP Function that generate the Input Datalist.
  • HTMZ inspired form subission
    2 projects | dev.to | 31 Mar 2024
    I was inspired by htmz (which was in turn inspired by htmx) and how the author got pretty close to a basic htmx-like experience just using an iframe. I wanted to push it a little further so whipped this demo together. My submission demonstrates progressive enhancement for the form - with js enabled the request targets an iframe that is inserted into the dom, meaning the page doesn't actually navigate (similar to event.preventDefault()). The iframe receives the html response from the request and on load triggers a function to swap out it's contents into the main page.
  • Example Java Application with Embedded Jetty and a htmx Website
    3 projects | dev.to | 28 Mar 2024
    As described on htmx.org: "htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext"
  • Show HN: ZakuChess, an open source web game built with Django, Htmx and Tailwind
    3 projects | news.ycombinator.com | 9 Mar 2024
    Apart from the source code itself, the repo's README also gives a bit more details about the various packages I used.

    1. htmx: https://htmx.org/

  • Show HN: Alpine Ajax – If Htmx and Alpine.js Had a Baby
    1 project | news.ycombinator.com | 4 Mar 2024
    Also, there’s some response header juggling you have to do when submitting forms that have a validation step before redirecting: https://github.com/bigskysoftware/htmx/issues/369

    I’ve tried to iron out any footguns or server requirements I’ve bumped into while using HTMX & Hotwire in my projects.

  • 🤓 My top 3 Go packages that I wish I'd known about earlier
    6 projects | dev.to | 1 Mar 2024
    ✨ In recent months, I have been developing web projects using GOTTHA stack: Go + Templ + Tailwind CSS + htmx + Alpine.js. As soon as I'm ready to talk about all the subtleties and pitfalls, I'll post it on my social networks.
  • FLaNK Stack 26 February 2024
    50 projects | dev.to | 26 Feb 2024

What are some alternatives?

When comparing structured-text and htmx you can also consider the following projects:

vitesse-modular-naiveui - If you are really into the "Vitesse" starter template created by Anthony Fu (Vue core team member) but want to use the clean architectural pattern instead of monolithic architecture, then you can clone this repo and use your own project. Have fun 🙂!

Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.

Svelte - Cybernetically enhanced web apps

Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

Mithril.js - A JavaScript Framework for Building Brilliant Applications

astro - The web framework for content-driven websites. ⭐️ Star to support our work!

DefinitelyTyped - The repository for high quality TypeScript type definitions.

unpoly - Progressive enhancement for HTML

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.

react-snap - 👻 Zero-configuration framework-agnostic static prerendering for SPAs

lexical - Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.

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