Hydrogen · Headless · Shopify

A Shopify Hydrogen starter for developers who bill real clients.

Tests, docs and a theme contract are already in place. You pay once and use it on every project the license covers.

TypeScript strictTailwind v4axe-core tested

The problem

You’ve built this cart before.
Probably more than once.

Most Shopify projects start from scratch, so the same architecture decisions get made again and the same boilerplate gets written again, mistakes included. On client work, that time gets billed as discovery the client never asked for.

  • Cart, wishlist and search logic written from zero on every new project
  • No enforced test coverage until a bug turns up in production
  • Theme decisions made on the fly, then made again for the next client
  • Accessibility patched in after launch because nobody built it in

The solution

Four constraints, enforced.

Groundwork is a set of rules about where code goes and what has to pass before it ships. The rules run as code, so they actually get enforced.

  • app/lib/CI Enforced

    Logic stays out of components

    app/lib/ is plain TypeScript with no JSX, so it’s tested without rendering a page. That’s why the coverage threshold is scoped there.

    Checked bytest/conventions.test.ts

  • app/**CI Enforced

    Colors only come from tokens

    Every color resolves through --sb-*. A hardcoded hex in a component is a theme that breaks on install.

    Checked bytest/conventions.test.ts

  • app/lib/**CI Enforced

    Coverage fails the build

    A pull request that drops below the threshold doesn’t merge, so the number can’t quietly slide.

    Checked byvitest.config.ts

  • Every routeCI Enforced

    So does accessibility

    axe-core checks every route in both themes against WCAG 2.1 AA. A single violation fails the run.

    Checked bye2e/accessibility.spec.ts

Engineering proof

Numbers from real runs.

Every number below is read from a real run: the coverage summary, the test reports and a Lighthouse audit of the live site. CI regenerates them on each push.

groundwork/app/config/foundation.ts
// Groundwork foundation contract. This is real code.
export default defineFoundation({
  architecture: 'modular',
  rendering:    'hydrogen-ssr',
  tokens:       'semantic',
  accessibility: {
    target: 'WCAG 2.2 AA',
    keyboardComplete: true,
    reducedMotion: true,
  },
  quality: {
    typescript: 'strict',
    consoleErrors: 0,
  },
});

$ npm run verify

Running CI on 2026-12-04…

lighthouse70/100performance, home page, shopgroundwork.com, mobile, Lighthouse 13.4.1

coverage97%statements across app/lib/; CI fails below 85% branches / 75% lines / 75% statements / 70% functions

tests893unit, plus 102 end-to-end across 13 specs

accessibility0axe violations, WCAG 2.1 A/AA, 14 routes, both color modes

4 checks · regenerated by CI on every push

What you can check

Each of these is a number you can reproduce.

Clone the repo, run the same commands CI runs, and you should land on the same figures. If a number needs context to be honest, the context sits right next to it.

893 unit tests, 102 end-to-end
Vitest across 75 files and Playwright across 13 specs. Both run on every push; a red suite blocks the merge.
97% statements, 93.6% branches
Measured over app/lib/, the framework-light layer where the logic lives. CI fails below 85% branches / 75% lines / 75% statements / 70% functions, so treat those as a floor.
Zero axe violations, WCAG 2.1 A/AA
Scanned across 14 routes, both color modes. The second half matters: the light theme here once carried 279 contrast violations while only the dark one was being scanned.
Lighthouse 70/100 on the home page
Audited on shopgroundwork.com, mobile with Lighthouse 13.4.1 on 2026-12-04. 3 routes are audited in total.
31 components, 30 routes, 11 docs
A script counts these from Groundwork’s own file tree, so nobody types them in by hand. Adding a component fails the template’s build until the manifest is regenerated.

Theming power

Change the look.
Leave the code alone.

A theme is a set of token values. Swap them and the whole storefront changes how it looks, while the components, routes and data layer stay exactly as they were.

Next step

Buy it once. Use it on every client project after.

The license doesn’t expire, and neither does the code you build on it.