Seeking an Answer: Why can't HTML alone do includes?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. WHATWG HTML Standard

    HTML Standard

    HTML Imports went in a similar direction but they are not what the blog post is about. HTML should be imported and displayed in a specific place of the document. HTML imports cannot/could not do this without JavaScript.

    See https://github.com/whatwg/html/issues/2791#issuecomment-3112... for details.

  2. SurveyJS

    JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor. Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.

    SurveyJS logo
  3. Now you can include HTML in HTML, see https://include.franzai.com/ - a quick Chrome Polyfill based on the discussion here. MIT License

    Github: https://github.com/franzenzenhofer/html-include-polyfill-ext...

  4. xsl-website

    XSL Rendering Example

    You can get client-side include functionality if you're willing to use XSL. Here is a demo:

    https://github.com/Evidlo/xsl-website

  5. htmx

    </> htmx - high power tools for HTML

    I've become a fan of https://htmx.org for this reason.

    A small 10KB lib that augments HTML with the essential good stuff (like dynamic imports of static HTML)

  6. HTMLInclude

    A tiny 1kb script that brings includes to HTML

    Someone else made the same - https://github.com/Paul-Browne/HTMLInclude - but it's not been updated in 7 years, leaving questions. I'll try yours and theirs in due course.

  7. include.js

    easy javascript and html templating

    I created something like this relatively recently. The downside is of course that it requires JavaScript.

    https://github.com/benstigsen/include.js

  8. datastar

    The hypermedia framework.

    If you want it more straight-forward and simple hypermedia approach, then check out https://data-star.dev (highly recommended, there are great youtube video's where the maintainers discuss their insights). Following up where htmx took things.

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Simple interactive browsergame: Python backend but which frontend tool?

    2 projects | /r/webdev | 4 Feb 2023
  • HATEOAS: An Alternative Explaination

    4 projects | news.ycombinator.com | 22 Nov 2021
  • Cromponent new features

    3 projects | dev.to | 11 Jul 2025
  • Why hx-boost is actually the most important feature of htmx

    1 project | dev.to | 19 Jun 2025
  • Show HN: HyperTemplates, a pure-HTML templating system and static site generator

    2 projects | news.ycombinator.com | 12 Jun 2025

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?