frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

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

https://github.com/hmpl-language/hmpl
5•aanthonymax•2h ago
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.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!

Comments

tosh•1h ago
Reminds me of how facebook used to render html snippets on the backend and the frontend would just fetch that and update the DOM.

When you say it can replace htmx (which I’m using at the moment):

Isn’t this similar to htmx?

Like if I’m already using htmx, do I see benefits from switching?

Please correct me, but I’d rather frame HMPL, htmx and Alpine.js in the same camp?

So they are direct competitors and different flavors for the lightweight frontend approach.

But the main proposal of HMPL et al is to make people re-think if they need a huge and complex heavy frontend approach or if/when they should go for something lighter.

aanthonymax•1h ago
Hello! HMPL differs from HTMX quite seriously in that HTMX uses the outdated XMLHTTPRequest in requests, and is also almost not customizable at all. HMPL focuses on customization, which is done through more complete integration via JavaScript. It differs from Alpine.js in that it is a highly specialized tool, not a general one.

Alpine.js, HTMX and HMPL - represent the same idea (if we are talking about the server), but differ in details.

tosh•53m ago
Is there a problem with XMLHTTPRequest?

When you say customizable: how? Can you give an example?

I get paid more than Charles Dickens per word to write code

https://mrsteinberg.com/i-got-paid-more-than-charles-dickens/
1•jimhi•3m ago•0 comments

Repo Man (1984) – Iggy Pop Interview [video]

https://www.youtube.com/watch?v=IE7mvr0Id-o
1•karaokeyoga•4m ago•0 comments

Ask HN: Do you struggle with flow state when using AI assisted coding tools?

3•rasca•5m ago•1 comments

Show HN: YouTube to NotebookLM – Send YouTube channels to chat with content

https://chromewebstore.google.com/detail/youtube-to-notebooklm/kobncfkmjelbefaoohoblamnbackjggk
3•snipo•7m ago•0 comments

YORO Increases VR Frame Rates by Rendering One Eye and Synthesizing the Other

https://www.uploadvr.com/you-only-render-once-vr-frame-rate-improving-technique/
3•LorenDB•7m ago•0 comments

Show HN: Stop copy-pasting Google Maps data – scrape it in one click

https://listcrawling.online
1•combineimages•7m ago•0 comments

Electric bikes might just be the healthiest thing to ever happen to teenagers

https://electrek.co/2025/08/05/electric-bikes-might-just-be-the-healthiest-thing-to-ever-happen-to-teenagers/
7•harambae•10m ago•0 comments

It Sure Sounds Like Assassin's Creed Shadows Is Coming to Switch 2 This Year

https://kotaku.com/assassins-creed-shadows-switch-2-port-release-date-1851786749
1•PaulHoule•11m ago•0 comments

Google Labs Experiments

https://labs.google/experiments/
1•simonpure•11m ago•0 comments

Show HN: An Open-Source E-Book Reader for Conversational Reading with an LLM

https://github.com/shutootaki/bookwith
2•takigon•11m ago•0 comments

Show HN: AWS CodePipeline events via MQTT – with Tailscale support

https://www.npmjs.com/package/codepipeline-mqtt-notifier-cdk-construct
1•nkorai•12m ago•0 comments

In Defense of Describable Dating Preferences

https://www.astralcodexten.com/p/in-defense-of-describable-dating
2•andsoitis•14m ago•0 comments

Automated Browser Testing with Claude Code Agents and Browserbase

https://ritza.co/articles/automated-browser-testing-for-ai-development-with-browserbase-and-claude-code-agents/
1•sixhobbits•14m ago•0 comments

Palantir Won over Washington–and Pushed Its Stock Up 600%

https://www.wsj.com/tech/palantir-pltr-stock-success-government-contracts-f3b2d453
3•jgalt212•15m ago•0 comments

The Disturbing Implications of Jim Acosta's AI Interview

https://weaponizedspaces.substack.com/p/the-disturbing-implications-of-jim
1•rbanffy•16m ago•0 comments

As AI Changes Internet Search, Reddit Lies in a Sweet Spot

https://www.wsj.com/tech/ai/reddit-rddt-stock-ai-search-2dcc69a4
2•impish9208•17m ago•4 comments

Notion is putting ads in your Slack now

https://imgur.com/a/xHZcT20
2•bcardarella•18m ago•0 comments

Optimal Allocation

https://varietyiq.com/blog/allocation
1•efavdb•19m ago•0 comments

A review of the Julia language (2014/2022)

https://danluu.com/julialang/
1•Qem•19m ago•0 comments

303Gen – 303 acid loops generator

https://303-gen-06a668.netlify.app/
1•ankitg12•23m ago•0 comments

Show HN: Lebenslauf – A CV builder with Markdown, templates, and local storage

https://cvmd.vercel.app/
1•bimals•25m ago•0 comments

Forward Deployed Engineering Principles

https://builders.ramp.com/post/forward-deployed-engineering
2•memset•27m ago•0 comments

Vanishing Culture: Why Preserve Flash?

https://blog.archive.org/2025/08/06/vanishing-culture-why-preserve-flash/
2•TangerineDream•29m ago•0 comments

Information about the 1991 Münich Software Festival?

https://catless.ncl.ac.uk/Risks/11.19.html#subj1
2•dement•29m ago•1 comments

Deploy a Python Flask App to Render with Docker

https://blog.appsignal.com/2025/08/06/deploy-a-python-flask-app-to-render-with-docker.html
1•unripe_syntax•31m ago•0 comments

Accidentally turned a ChatGPT prompt into a startup.

https://magicnode.ai/
2•zuhaib-rasheed•34m ago•2 comments

Sync Secrets from K8s to Vault

https://github.com/danieldonoghue/vault-sync-operator
1•O5ten•34m ago•0 comments

I Spent $500 to Test Devin for Prompt Injection So That You Don't Have To

https://embracethered.com/blog/posts/2025/devin-i-spent-usd500-to-hack-devin/
3•kerng•35m ago•0 comments

Q&A: Algorithmic Tyranny – By Caroline Orr Bueno, PhD

https://weaponizedspaces.substack.com/p/q-and-a-algorithmic-tyranny
1•rbanffy•36m ago•0 comments

Grok generates fake Taylor Swift nudes without being asked

https://arstechnica.com/tech-policy/2025/08/grok-generates-fake-taylor-swift-nudes-without-being-asked/
21•juujian•36m ago•5 comments