HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
hmpl-language
hmpl
TypeScript2024–2025
hmpl-language / hmpl

hmpl

🐜 HMPL.js is a lightweight server-oriented template language for JavaScript. Fetch HTML, render it safely, and keep apps dynamic, modern, and small.

6Distinct people
20Mentions
0Explicit recommenders
970GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

🐜 HMPL.js is a lightweight server-oriented template language for JavaScript. Fetch HTML, render it safely, and keep apps dynamic, modern, and small.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:03:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by month20 dated mentions

Observed mentions: 2024-12-04 20:15:08 UTC to 2025-11-30 08:17:53 UTC.

0123452024-12-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 commentsDec 20242025-01-01 00:00:00 UTC to 2025-02-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-02-01 00:00:00 UTC to 2025-03-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 comments2025-03-01 00:00:00 UTC to 2025-04-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2025-04-01 00:00:00 UTC to 2025-05-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-05-01 00:00:00 UTC to 2025-06-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsMay 20252025-06-01 00:00:00 UTC to 2025-07-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-07-01 00:00:00 UTC to 2025-08-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-08-01 00:00:00 UTC to 2025-09-01 00:00:00 UTC (exclusive): 4 mentions; 4 submissions, 0 comments2025-09-01 00:00:00 UTC to 2025-10-01 00:00:00 UTC (exclusive): 5 mentions; 5 submissions, 0 comments2025-10-01 00:00:00 UTC to 2025-11-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 comments2025-11-01 00:00:00 UTC to 2025-12-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 commentsNov 2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Dec 20242024-12-01 00:00:00 UTC2025-01-01 00:00:00 UTC220
Jan 20252025-01-01 00:00:00 UTC2025-02-01 00:00:00 UTC000
Feb 20252025-02-01 00:00:00 UTC2025-03-01 00:00:00 UTC220
Mar 20252025-03-01 00:00:00 UTC2025-04-01 00:00:00 UTC211
Apr 20252025-04-01 00:00:00 UTC2025-05-01 00:00:00 UTC000
May 20252025-05-01 00:00:00 UTC2025-06-01 00:00:00 UTC110
Jun 20252025-06-01 00:00:00 UTC2025-07-01 00:00:00 UTC000
Jul 20252025-07-01 00:00:00 UTC2025-08-01 00:00:00 UTC000
Aug 20252025-08-01 00:00:00 UTC2025-09-01 00:00:00 UTC440
Sep 20252025-09-01 00:00:00 UTC2025-10-01 00:00:00 UTC550
Oct 20252025-10-01 00:00:00 UTC2025-11-01 00:00:00 UTC220
Nov 20252025-11-01 00:00:00 UTC2025-12-01 00:00:00 UTC220

What Hacker News says

20 sources

Show HN: New major version 3.2.0 of hmpl

Hi, HN! We're continuing to build the perfect tool for HATEOAS apps, and in this version, we've added some truly extensive functionality that will make the development process significantly easier. We've added bindings between the request status and the tag attribute. This will allow you to create dynamic indicators and more without using the indicator helper block. We took the code from the old Cample project. I think its speed will be very useful for users. I would appreciate your feedback ^ ^
2 points · Open discussion

Show HN: I'm building HMPL – server-oriented templating for lightweight web-apps

I got tired of shipping megabytes of JS just to render small bits of dynamic UI. So I built HMPL.js — a tiny (~24 KB) server-oriented templating language for JavaScript. It lets you send UI directly from the server with a simple block syntax, no framework overhead. Example: <div> <button id="btn">Click!</button> Clicks: {{#request src="/api/clicks" after="click:#btn"}}{{/request}} </div> It’s fetch-based (not XHR), supports events/forms, integrates JSON5, and sanitizes HTML via DOMPurify. Think of it as a smaller alternative to HTMX/Alpine.js when you just want server-driven interactivity with minimal JS. Docs: hmpl-lang.dev Would love feedback on where this could actually replace heavier setups ^ ^
3 points · Open discussion

Show HN: 23KB Template Language

Hello everyone! With this comment, as a starting point, I would like to mark a new stage in the development of the product and show the whole Hacker News, and the world in general, what we have done in the last 6 months of work! Working like ants, efforts were made on a product that made it easier to work with the server and clients on the web. It is a open-source template language that extends the capabilities of HTML. The main tasks that it solves are: - Creating web applications with the same interface as if they were written on modern frameworks, but with a significantly smaller bundle size, which will allow you to load sites faster. - Building a server-oriented application structure that is almost independent of the client. This will allow you to share components across multiple sites without using the Microfrontend methodology and g
Read the rest
enerally not depend on files on the server (in repositories, for example). - Unlike similar ones, this module is easily integrated into other web applications, and also has extensive customization, which will allow you to send requests to the server not pre-prepared by the module, but completely custom, with the use of fetch! The essence of the module is simplicity. It combines different approaches to working with the server and provides a kind of middle ground when you are working with either javascript or HTML markup. This principle allows you to combine code with other architectures without building your own completely on it. It can be implemented both in the Vue application and in Angular, Wordpress, self-written sites and much more! Examples: https://hmpl-lang.dev/examples Demo Sandbox: https://codesandbox.io/p/sandbox/basic-hmpl-example-dxlgfg
4 points · Open discussion

Show HN: HMPL – Small Template Language for Rendering UI from Server to Client

Hi HN! Together with contributors, we've been making a small template language for a year now, which, in our opinion, can replace HTMX and Alpine.js. It is a mix between EJS and Handlebars, that is, you can make a request with a familiar syntax to the server in HTML right in the markup. Requests are made via fetch and are configured via javascript almost entirely, which is what is needed today to work with the server. The very essence of the template language comes down to minimizing the size of the bundle of the original web application by moving the components to the server and then storing them there. Thus, on the client we get a framework, where we insert components from the server brick by brick. We showed this template language a long time ago, but it was not so mature then, so people had a lot of questions: https://news.ycombinator
Read the rest
.com/item?id=41204552 Thank you very much to everyone for your attention! Please tell me what you think about the project? It will be interesting to know!
17 points · Open discussion
Hi! Today, I would like to introduce to HackerNews a relatively new template language called HMPL, which can help to significantly reduce the size of your web applications. It has been in the works for almost a year, since the old repositories, but now I think it is really worth paying attention to. https://github.com/hmpl-language/hmpl First of all, when talking about reducing the size, we need explicit tests. This repository has examples of what advantages the module has over other ways of creating a web application. Also, unlike the much talked about HTMX, the module uses the modern fetch standard, and the requests to the server are fully customized, which is necessary for normal operation today. It is also safe, because it has functionality that sanitize incoming HTML from XSS attacks. It is fully tested, so the number of errors assoc
Read the rest
iated with its operation will be minimal. But if you find any flaw, it would be cool if you share it in the comments or in the community discord, as the project is Open-Source and open for contributions from the entire community! I hope this project will help you to apply SSR, SSG and other server-oriented methods on any site, but without indexing by robots. Thank you all very much for your attention! It will be very interesting to read your opinion about this template language! In my opinion, it is not bad, but what do you think?
In Show HN: Server-Oriented Customizable Templating

Showing the 15 most recent of 20 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.