The same clothing product overview page, built four ways, to find which shadcn/ui block library gives the cleanest generated code and the better free blocks.
Each page shows the same content with a similar layout, built from the free blocks of one library that can be used commercially. Every page:
- passes the shadcn lint rules (
@shadcn/lint) - loads its product the way a Vendure store would
- confirms Add to bag with a toast
- saves with interior.dev's Like Burst
- uses skeletons in place of product images
The home page (/) links to each page, shows the measured comparison tables and the conclusion, and ends with a setup guide and a prompt template for the final pick.
| Route | Library |
|---|---|
/shadcnspace |
Shadcnspace |
/shadcnstudio |
Shadcnstudio |
/ui-shadcn |
UI Shadcn (built by hand from native components) |
/shadcnblocks |
Shadcnblocks |
- Node.js 20.9 or newer (required by Next.js 16)
- npm (a
package-lock.jsonis committed; other package managers work but are untested) - Internet access on first install
- Optional: a Vendure server with the Shop API enabled and
authOptions.tokenMethod: 'bearer', only to try the live cart
Stack: Next.js 16 (App Router, Cache Components), React 19, Tailwind CSS 4, shadcn/ui on Base UI, Sonner.
npm install
npm run devOpen http://localhost:3000.
Without any configuration the pages load a built-in sample product (lib/vendure/sample-product.ts). To use a real Vendure store, create .env.local:
VENDURE_SHOP_API_URL=http://localhost:3000/shop-apiAdjust the URL and port to your Vendure server. If it also uses port 3000, start this app on another one with npm run dev -- -p 3001. The session token is kept in an httpOnly vendure-session cookie.
| Script | What it does |
|---|---|
npm run dev |
Start the development server |
npm run build |
Create a production build |
npm run start |
Serve the production build (run build first) |
npm run lint |
Run ESLint, including the shadcn lint rules |
To type-check without building, run npx tsc --noEmit.
| Path | Contents |
|---|---|
app/page.tsx |
Home page: libraries, conclusion, comparison, method, setup, prompt |
app/<library>/page.tsx |
One product page per library |
app/actions/ |
Server actions for the cart and saving |
components/ |
Shared components, including components/ui from shadcn/ui |
lib/evaluation.ts |
Measured results and conclusion shown on the home page |
lib/libraries.ts |
Library names, blocks, licences and links |
lib/guide.ts |
Setup steps and the prompt template |
lib/product*.ts |
Shared product content used by every page |
lib/vendure/ |
Vendure Shop API client, sample product and cart hook |
The measurements are reproducible from these points in history:
| Ref | What it has |
|---|---|
eval/raw (branch) |
Every block exactly as the shadcn CLI installed it |
eval-normalized |
The four pages with the same content, shared data and no lint errors, before any backend work. A good starting point for a NestJS or other custom API |
eval-vendure |
Adds the Vendure test |
eval-toast |
Adds the Add to bag toast |
eval-like-burst |
Adds Like Burst |
Lines changed are counted with git diff between these points, ignoring line-ending changes.
- Each library is judged on one or two free blocks, so treat the results as a guide, not a verdict on the whole catalog.
- This Next.js version has breaking changes from older releases. See
AGENTS.mdandnode_modules/next/dist/docs/before changing framework code.