Project 21 of 84
Cart Kit
A copyable Shopify cart kit for Next.js 16 on the Hydrogen developer preview, plus a gallery of 321 themed demo storefronts that can be exported as standalone Next.js stores for client sites.
- Status
- Shipped
- Last activity
- 2026
- Stack
- Next.js
- React
- TypeScript
- Shopify Storefront API
- Shopify Customer Account API
- Shopify Admin API
- Tailwind CSS
- shadcn/ui
Highlights
- Built Cart Kit, a Shopify cart component kit on Next.js 16, React 19 and the Hydrogen 2026.10 developer preview (cart page, accessible drawer, discount and gift card codes, shipping estimate), in 301 commits from 2026-10-10 to 2026-11-16.
- Generated 321 storefront themes (65 extracted from legacy HTML templates by a deterministic token pipeline, 256 original designs) with storefront data, design profiles and Store, Shop and Product preview pages bridged to Tailwind v4 and shadcn/ui tokens.
- Added a live Shopify catalogue adapter and pnpm export-theme, so any theme becomes a standalone Next.js store wired to a real Storefront API catalogue and cart.
- Shipped customer accounts, order history and line-level returns on the Shopify Customer Account API, with sessions in an AES-256-GCM sealed HttpOnly cookie so Vercel serverless cold starts no longer sign customers out; verified sign-in, checkout and a return on production.
- Implemented gift card redemption through a hardened POST /api/cart-gift-cards route (same-origin guard, cookie-only cart id, zod validation, per-client rate limit) after confirming the Hydrogen preview had no gift-card cart path.
- Delivered SEO (Product JSON-LD, canonical, Open Graph, sitemap, robots), consent, analytics, Markets, predictive search with a no-JS /search fallback, per-variant selling plans and booking, rental, subscription and order-ahead patterns across an eight-phase production-readiness plan.
- Cut serious axe violations from 44 to 0 and theme page server CPU from about 14 ms to about 1 ms per request; documented why mobile LCP (about 3.9 s) could not reach 2.5 s by trimming JavaScript.
- Ran an opt-in Shopify integration suite that passed 8 of 8 cases on a development store, and set up GitHub Actions CI on self-hosted macOS ARM64 runners gating typecheck, lint, vitest regression ratchets, theme validation and a bundle size budget.