Rocket

Modern SSG by Modern Web. Web Components-first, lit-html.

VISIT ROCKET

Key takeaway: Web Components are the reason to look at Rocket and the only reason. If your organisation has standardised on Lit and custom elements and wants a generator that treats them as first-class rather than an afterthought, it fits. If not, Astro renders Lit components too and has an enormously larger ecosystem behind it.

Quick facts

  • LanguageJavaScript
  • CategoryJS / TS plain
  • LicenseMIT
  • Created2020
  • GitHub stars0.5k
  • Statusactive

Templating: Lit Markdown MDX

What it is

Rocket is a Web Components-first SSG by the Modern Web team. Lit-based, opinionated towards web standards. Niche but well-built.

Best for

  • Web Components-first teams
  • Teams aligned with the Modern Web project conventions

When not to pick it

For most teams, Astro will be a stronger pick with a much larger community.

My take

Niche tool with a specific philosophical alignment. Astro covers the same shape with broader adoption.

Standards-first, from the Modern Web team

Rocket comes out of the Modern Web project, which holds a consistent position: use the platform, prefer browser standards to framework abstractions, and keep the build step thin. In practice that means Markdown pages with JavaScript layouts and components, Lit as the component layer, and static HTML as the default output. The detail worth knowing is that component loading is a per-component decision: you pick server rendering, browser-only loading, or hydration for each one rather than accepting a single site-wide policy. The philosophy is coherent and the engineering is careful. It suits design-system teams that already ship a Lit component library and want their documentation and marketing pages built from those exact components rather than a parallel React copy that drifts. For that situation the alignment is worth something real, because the components you document are the components you render.

The project-size risk you are accepting

Rocket is a small project with a small community, and that is what to weigh rather than any particular feature gap. Small means few plugins, few worked examples, few people you can hire who have used it, and a genuine chance that development slows while your site still needs to build every week. Check the repository's recent activity before committing anything with a multi-year life to it. Astro covers most of the same ground, renders Lit and other custom elements through its integrations, ships zero JavaScript by default, and has an ecosystem large enough that the boring problems are already answered. The case for Rocket therefore has to be a philosophical or organisational commitment to the Modern Web approach, not a feature-by-feature comparison, because that comparison does not go its way.

Frequently asked questions

Is Rocket production-ready?

It builds real sites and the code quality is good, but it is a small project with limited community activity, so check the repository before betting a long-lived site on it. For a low-stakes documentation or team site inside an organisation already using Lit, the risk is manageable. For client work you will hand over, the maintenance uncertainty is the problem, not the features.

Rocket or Astro?

Astro for almost everyone. It also ships zero JavaScript by default, renders web components including Lit, and has a far bigger ecosystem, more integrations, and more people who can maintain the result. Rocket makes sense only when the team is deliberately committed to the Modern Web toolchain and wants its conventions end to end rather than as one integration among many.

Does Rocket use Lit?

Yes, Lit is the component layer, and that is the point of the tool: interactive pieces ship as standard custom elements rather than framework components needing a runtime to interpret them. Pages are Markdown with JavaScript layouts, and you choose server rendering, browser-only loading, or hydration per component, so prose pages stay cheap while interactive examples use your real design system.

Links

Similar tools you should also consider

If Rocket is your pick, the next conversation is short

The 30-min call is where your project gets a real architecture, an SEO transport plan, and a price range you can take to your team. Describe your site, your timeline, your existing content. I tell you whether Rocket is genuinely the right call for you, and what the build actually looks like.