Product Hunt logo dark
  • Launches
    Coming soon
    Upcoming launches to watch
    Launch archive
    Most-loved launches by the community
    Launch Guide
    Checklists and pro tips for launching
  • Products
  • News
    Newsletter
    The best of Product Hunt, every day
    Stories
    Tech news, interviews, and tips from makers
    Changelog
    New Product Hunt features and releases
  • Forums
    Forums
    Ask questions, find support, and connect
    Streaks
    The most active community members
    Events
    Meet others online and in-person
  • Advertise
Subscribe
Sign in
Subscribe
Sign in
HMPL.js

HMPL.js

Template language for displaying UI from server to client

48 followers

Template language for displaying UI from server to client

48 followers

Visit website
Server-oriented customizable templating for JavaScript. It is based on customizable requests sent to the server via fetch and processed into ready-made HTML. The language is integrated with JSON5 and DOMPurify. Alternative to HTMX and Alpine.js.
  • Overview
  • Launches1
  • Reviews
  • Team
  • More
Company Info
hmpl-lang.devGitHub
HMPL.js Info
Launched in 2025View 1 launch
Forum
p/hmpl-js
  • Blog
  • •
  • Newsletter
  • •
  • Questions
  • •
  • Forums
  • •
  • Product Categories
  • •
  • Apps
  • •
  • About
  • •
  • FAQ
  • •
  • Terms
  • •
  • Privacy and Cookies
  • •
  • X.com
  • •
  • Facebook
  • •
  • Instagram
  • •
  • LinkedIn
  • •
  • YouTube
  • •
  • Advertise
© 2025 Product Hunt
HMPL.js gallery image
HMPL.js gallery image
HMPL.js gallery image
HMPL.js gallery image
HMPL.js gallery image
Free
Launch tags:
API•Open Source•Developer Tools
Launch Team
Anthony Max

What do you think? …

Anthony Max
Anthony Max
Maker
📌

Hey Product Hunt! 👋

I, Anthony Max, am pleased to introduce a templating language that can reduce the size of your applications by a significant amount while maintaining the same interface.

If you have ever worked with HTMX or Alpine.js, you may have noticed that these modules are quite limited. The idea behind them is brilliant, but the implementation is not extensible. With this template language, we tried to create something in between them and EJS or PUG.

👀 How this project can be useful for you

  • Apply Server-Side Rendering, but without indexing by robots, regardless of the platform (It is Client-Side Rendering, but completely server-oriented)

  • A small application is not only a plus for less memory in GitHub or GitLab, but also a fast loading of the page by the customer of the build that weighs a couple of megabytes

  • Don't depend on the current DOM like in other modules, you can put the code in a separate file with the .hmpl extension and work there

⚙️ Features

  • Customizable: Send a custom request to the server when receiving the UI

  • Memory Preserving: Reduce file sizes on the client by several times

  • Generate thousands of DOM nodes from a single template: Work with large components not only on the server but also on the client

  • Protected from XSS attacks: Enable incoming server HTML sanitization with DOMPurify and work with it safely

📌 Examples of use:

  • Live demo

  • Repository with real projects

  • Sandbox

👀 Why is this launch important to us?

We implemented the functionality together for almost a year. We found the right syntax by trial and error. Today we see that this really has serious practical application, which is why people's feedback is so important to us ❤️.

What do you think about this template language? It will be interesting to know your opinion 🌱!

Thank you all!

Report
2mo ago
Nevo David
Nevo David
Postiz

Postiz

Looking good, congrats on the launch!

Report
2mo ago
Anthony Max
Anthony Max
Maker

@nevo_david Thanks, Nevo! It took a long time to prepare, but I think it turned out well.

Report
2mo ago
Alex Ana
Alex Ana
Dryfta

Dryfta

Good launch!

I think this project is interesting. It looks like something like ejs, only somehow strange. Like, through blocks such as components. But maybe it's good.

Anyway, good luck!

Report
2mo ago
Anthony Max
Anthony Max
Maker

@alex_ana Thank you!

Report
2mo ago
Brand API
Brand API — Speed up your onboarding with 1 API call
Speed up your onboarding with 1 API call
Promoted

Do you use HMPL.js?

Pros
Cons
Reviews
Helpful
Review HMPL.js?Be the first to review HMPL.js