Blaze Next - Vision, Ideas, Tasks etc

Claude worked hard tonight, and the result is here. It’s an overview of templating and framework ideas, their pros and cons, and what Blaze could try to integrate maybe ?

2 Likes

Your brain is turning into mush. STOP IT!

Don’t give me free time and tokens :joy:

After some serious thought, I started an experimental re-write here… https://github.com/wreiske/blaze-ng

Goal is to be a Full, modern TypeScript rewrite of Meteor Blaze with 100% API parity, all 370+ original tests passing, superior performance, and minimal dependencies. Drop-in replacement for any Meteor app.

You can check out the plan and progress here: blaze-ng/PLAN.md at main · wreiske/blaze-ng · GitHub

I’ll report back when it’s further along and ready to test.

Woh @wreiske nice work!
A couple of thoughts from the Blaze modernization work I’ve been doing on the main repo (if it can help you) :

Use native <template> elements : Since you’re targeting ES2020+ and already dropped IE11 ( :partying_face: ), you could leverage document.createElement('template') in your materializer (Phase 3e). The .content property gives you a DocumentFragment directly, content inside doesn’t get parsed/executed (no rogue <img> loads or <script> execution), and template.content.cloneNode(true) is really fast for repeated rendering, which would pair well with {{#each}} over large lists. It’s cleaner than parseHTML(html) → DocumentFragment and aligns with your performance goals :+1:

Edge case from the jQuery removal : One gotcha I hit during PR #489: focus and blur events don’t bubble. jQuery silently aliases them to focusin/focusout for event delegation. Since you’re using native addEventListener in your event system (Phase 3g), you’ll want to handle that explicitly or your delegated focus/blur handlers won’t fire :grimacing:

And one thing though : full TypeScript might be overkill for a Blaze rewrite. The original codebase is plain JS and most Blaze users aren’t TypeScript shops. You could get the same benefits (typed APIs, IDE autocompletion) with JSDoc type annotations + a .d.ts file, without forcing contributors to write TypeScript. Just a thought :roll_eyes: :smiling_face:

4 Likes

So far pretty promising! The compilation takes a little longer, but the actual in-browser performance of running is better. Also SSR is working!!

https://blaze-ng.pages.dev/guide/performance.html#old-vs-new-head-to-head-comparison

@wreiske as long as this is non breaking for users we should consider this one for 3.1 as well. Against which branch did you compare the improvement?

1 Like

This will need a serious comb over and testing from the wider community before I would say it’s ready to be a “drop in replacement.” I had it run off main so probably missing any improvements that are living in branches :see_no_evil:

That is the goal of course, but with literally 0 lines of code touched by humans and 100% re-write by Claud Opus 4.6… I wouldn’t trust it without a code walkthrough. I have been fixing little things as I notice them and it seems to pass all the original tests / API, so it might be good. I’m going to test it out in one of my production apps and see who squawks :laughing: .

I’m also going to test out @blaze-ng/wasm | Blaze-NG which should provide even more performance improvements for sequence diffing and HTML tokenization.

Off-topic and unrelated to Blaze: I also notice that AI really, really likes to run npx meteor@latest run and it also put it in the documentation everywhere.

Meteor might consider making that work. I use npx all the time for other tools like wrangler, vite, etc…

2 Likes

Same for @wreiske :

As a user of Claude Code you should take a look into this package (actually the whole ecosystem):

“Greenhouse closes the last manual loop in the os-eco toolchain. It polls GitHub for pre-triaged issues, creates seeds tasks, dispatches overstory runs, and opens PRs when agents finish. The only human touchpoint is merging the PR.”

I’m using it extensively since a month and man, the speed of progress is huge.

Also watch this video which explains how we can manage open source packages way more effective and have a minimum of human intervention. This would speed up the work:

The Agentic Engineering Ladder

1 Like

Absolutely agree with that PoV

2 Likes

Blaze 3.1.0-alpha.0 is out

This is an early version that you can easily test with your dev/staging systems.
Please help us to test while we continue to work on 3.1.0.

You simple change blaze-html-templates to blaze-html-templates@3.1.0-alpha.0 in your .meteor/packages and run your Meteor app.

4 Likes

Your dedication to Blaze is truly astounding. Thank you and everybody for your efforts @dupontbertrand :clap:

3 Likes

One thing I didn’t find in this thread: syntax errors are only properly reported if .html files live in /client, in my experience. Templates that live in /imports get obscure failed to load module errors. It would be nice to fix this if possible.

2 Likes

Hi everyone :waving_hand:

This thread went quiet after the summer, so here is a catch-up: what happened in 2026, where 3.1 stands, what I think matters now (spoiler: AI changed my list), and three polls so you can weigh in in 30 seconds.

What happened this year

WhenWhat
Feb 19First Blaze user group meeting, @jkuester opens this thread
MarchES2015+ everywhere (#488), zero npm dependencies (#489), jQuery becomes optional with a native DOM backend (#493), fewer DOM writes on attribute updates (#478 by @wreiske), template exceptions on console.error (#495)
AprilBlaze 3.0.3 released, docs migrated to VitePress (#494), whole test suite running on both backends (#497). I also posted an SSG/SSR proof of concept for Blaze, split into blaze#507 and meteor#14355, now scheduled for Blaze 3.2 and Meteor 3.7+
Jun 4Second meeting (recording)
Jun 253.1.0-alpha.0 on Atmosphere
SeptemberI ran the alpha on 11 of my projects with and without jQuery (report), which caught a native backend bug (#512, fixed in #513). The two-year-old stale {{#each}} bug (#468) got fixed too (#501)
Sep 10meteor create --pwa lands in Meteor 3.6 (meteor#14473), and the PWA skeleton is a Blaze app. The offline data layer is the next step, requirements are being collected in this thread
Sep 233.1.0-beta.0 published by the core team (announcement)
Sep 30Lazy-loaded templates with Rspack were not lazy at all; @nachocodoner fixed it in meteor#14805 after a report from thomastraum
Oct 10@drone1 is moving a production app off jQuery and found three bugs in the native backend (#517, #519, #520), with fixes attached (#518, #521, #522). Exactly the kind of feedback a beta is for 🙏

13 PRs merged, 8 still open, and Meteor 3.6 now has its own end-to-end test group for Blaze apps plus a Blaze PWA skeleton. For a thread that started with “is Blaze still a thing?”, I’ll take it.

Where 3.1 stands today

  • 3.1.0-beta.0 is the current version to test. Meteor 3.6 (rc.1 right now) still comes with Blaze 3.0.3, and the plan on the release PR is to get a stable 3.1.0 into Meteor 3.7.
  • drone1’s three fixes are reviewed and green on both backends. Jan is bundling them on one branch, then we get a second beta or an RC.
  • The docs need a pass before the final: the migration guide still says jQuery was removed (it is optional), the API page says this.$() always returns a jQuery object (without jQuery it returns an array), and blazejs.org still serves the old Hexo site while the VitePress one sits on the release branch.
  • One more bug I found on the way: an async helper can keep a stale result when a slow promise resolves after a newer one (#514). It has been there since Blaze 2.7, the fix is agreed with Jan, PR coming.

Everything else (visual error indicator, Blaze.setExceptionLogLevel(), inline expressions, server-side rendering, oxlint) is parked on the 3.2 milestone, waiting for 3.1 to ship. Server rendering is the one I care most about in that list: the Blaze half (#507) only needs a rebase once 3.1 is out, and the Meteor half (meteor#14355) is on the 3.7 track.

What I think matters now

Back in February I wrote: invisible modernization first, then the foundation, then new capabilities. The first part is done. But something else happened this year: most of us now write code with an AI assistant sitting next to us (my own apps are mostly AI-written at this point, and I know I’m not alone here). That changed my priorities more than any Blaze PR did, so here is my updated list. Please disagree in the replies :slightly_smiling_face:

Things I would stop spending time on. An IDE extension for Blaze (syntax highlighting, snippets, go-to-helper). It was on Jan’s list in February and in the June meeting notes, and I understand why. But today Claude or Codex writes the template, the helper and the event map in one go, and they never use the extension. Same for scaffolding tools and generators.

Things I would spend time on instead.

  1. Make Blaze something AI gets right the first time. Blaze is tiny and predictable, which is a huge advantage here, but the rules live in our heads: what is allowed in an attribute, how async helpers behave, when Template.instance() is null after an await, how event delegation works without jQuery. Those rules need to be written down where an assistant can load them: an llms.txt on blazejs.org, the meteor-blaze skill in meteor/agent-skills kept in sync with every release (it exists, and it is exactly the right place for those rules), and compile errors that point at the file and the line (drone1’s point above about templates under /imports is a perfect example). The cheaper it is for an AI to produce correct Blaze, the more Blaze gets written.
  2. Performance. Blaze is fast enough for most pages and slow on big lists. On a test app I measured reversing 5,000 rows in {{#each}} at 11 seconds; with a patch on observe-sequence it drops to 3.4 seconds with identical callbacks, and there is more to gain in @index updates. I want benchmarks in the repo so every PR can show its numbers.
  3. Finish what is started. 3.1 final, then the 3.2 PRs that already exist, server rendering first. On the Meteor side, meteor create --pwa only scaffolds Blaze for now, so the offline layer will land on Blaze first. Expressions and single-file templates are nice to have for me, but they come after the two points above.

And keep the simplicity. It is still the reason I pick Blaze for new projects.

Your turn (30 seconds)

Where are you with Blaze 3.1 and jQuery?
  • Still on 3.0.x, have not tried 3.1 yet
  • On the 3.1 beta, kept jQuery
  • On the 3.1 beta, removed jQuery
  • Tried removing jQuery, went back
0 voters
What cost you time with Blaze this year? (pick up to 3)
  • Confusing compile or build errors
  • Async helpers and await in event handlers
  • Slow {{#each}} on big lists
  • Code splitting or lazy loading templates
  • jQuery plugins and their lifecycle
  • State management boilerplate
  • No expressions in templates
  • No scoped CSS or components
  • No server rendering
  • My AI assistant writes wrong Blaze code
  • Something else (tell us below)
0 voters
What should we work on next? (pick up to 3)
  • Performance and benchmarks
  • AI-ready docs, llms.txt and agent skills
  • Better error messages
  • Inline expressions
  • Single-file templates
  • Server rendering
  • Offline and PWA support
  • Finishing the jQuery-free backend
  • An IDE extension
  • TypeScript types
0 voters

If you have five more minutes: reply with the one thing that broke or annoyed you in Blaze this year. A link to an issue, a snippet or a sentence is perfect, no need for a full report. And if you can spare an hour for a code review, drone1’s PRs are small, tested on both backends, and a great place to start :smiling_face:

@jkuester, up for a Blaze meeting in November to go through the answers? I’ll summarize the polls and replies here before that :+1:

2 Likes

thank you very much @dupontbertrand for keeping this endeavor alive! I am currently on many parallel projects which is why it is hard to remain focused on a single thing at hand.

I am thinking we should short term provide some blaze skills for agents and a agents.md baseline in the repository. From there we might have much better review capabilities and better written Blaze code.

However I see this as a development baseline, independent of the above mentioned improvements.

I’m happy to arrange a meeting this month, preferably during the week though.

1 Like

Thanks Jan :slightly_smiling_face: No worries about the parallel projects, that is exactly why I wanted a written checkpoint before any meeting.

Agreed on the agent baseline, and I would make it the first concrete thing we ship. Two pieces, both small:

  1. An AGENTS.md at the root of meteor/blaze: how to run the tests on both backends, where things live (blaze, spacebars-compiler, templating-runtime…), the conventions a PR must follow, and what a reviewer checks. That gives Claude or Codex the same checklist we use in reviews. I can open that PR next week.
  2. The meteor-blaze skill in meteor/agent-skills already exists for app developers (Spacebars and async, lifecycle, build and testing, PWA scaffold). It needs a 3.1 pass once the final is out: native backend, this.$() returning an array without jQuery, event delegation. So two documents with two audiences: AGENTS.md for contributing to Blaze, the skill for writing Blaze apps.

For the meeting: the previous two were on a Thursday at 15:00 UTC and that worked well, so Thursday November 19 or November 26, same time? Pick the one you prefer, I will post a summary of the polls and replies here a few days before :+1: Cc @storyteller

1 Like

Both days work for me.

@jkuester Thursday November 19 @ 15:00 UTC ok for you as well ?