Copy the detailed ClipMart marketplace plan into docs/PLAN.md, covering
vision, product taxonomy, data schemas, routes, user flows, UI design,
installation mechanics, revenue model, tech architecture, and MVP scope.
Source: PAP-288
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Next.js requires consistent dynamic segment names within a route group.
The install route used [id] while the CRUD routes used [slug], causing
a build error. Consolidated under [id] with destructuring alias to
preserve slug-based lookups.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
- GET /api/listings: Browse with filters (type, category, price range),
pagination, sorting, and full-text search
- GET /api/listings/:slug: Listing detail with creator info and blueprint
- POST /api/listings: Create listing (authenticated creator only)
- PATCH /api/listings/:slug: Update listing (owner only)
- DELETE /api/listings/:slug: Soft delete (archives listing, owner only)
- POST /api/listings/:id/install: Install blueprint to Paperclip company
All protected routes require better-auth session.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sets up Drizzle ORM with Postgres, better-auth for authentication,
database schema (listings, creators, purchases, reviews, team_blueprints),
and basic layout shell with browse/about/pricing pages.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Implements the install flow that deploys a team blueprint to a Paperclip
company: validates purchase/free access, creates agents via Paperclip API,
sets reporting chains, creates projects, and returns a summary. Free
installs only for MVP.
Co-Authored-By: Claude Opus 4.6 <[email protected]>