How vizzaq23/tcg works
One Piece TCG Shelf is a collector platform: collectors browse a card catalog, build and value private collections, then share public shelves and connect socially. Its distinct branches include portfolio/trade features, the Journey experience, price caching, and a seller storefront with Stripe checkout. The README establishes the broad capabilities and Supabase/Stripe integrations; sampled source confirms selected catalog, authentication, and checkout/webhook relationships. Several feature pages and services were not sampled, so their internal links are omitted rather than inferred.
Main entry points: checkout/route.ts Checkout API · webhook/route.ts Payment Webhook · repository.ts Price Repository · page.tsx Browse Catalog
Components 22
Catalog and Journey
- Browse Catalog
app/browse/page.tsx - Catalog Search
lib/catalog-query.ts - Journey Explorer
app/journey/page.tsx
Collection and Profiles
- Collection Dashboard
app/collection/page.tsx - Portfolio
app/collection/portfolio/page.tsx - Public Shelf
app/u/[username]/page.tsx - Collector Showcase
components/collection/ShowcaseGlassCase.tsx
Community Features
- Trade Offers
app/collection/trades/page.tsx - Social and Follows
app/social/page.tsx - Creator Studio
app/creator-studio/page.tsx
Shop and Orders
- Shop Storefront
app/shop/page.tsx - Cookie Cart
app/cart/page.tsx - Checkout API
app/api/shop/checkout/route.ts - Order Lifecycle
lib/shop/checkout.ts - Payment Webhook
app/api/shop/webhook/route.ts
Platform Services
- Price Sync
app/api/admin/prices/refresh/route.ts - Price Repository
lib/prices/repository.ts
Other components
- Collector
- JustTCG
- Supabase
- Stripe
- Supabase Auth
Connections 25
- Collector → Browse Catalog: browses
README.md - Browse Catalog → Catalog Search: searches via
- Collector → Collection Dashboard: tracks cards
README.md - Collection Dashboard → Supabase: reads collection
app/collection/page.tsx - Collector → Portfolio: views value
README.md - Collector → Public Shelf: shares shelf
README.md - Public Shelf → Collector Showcase: shows showcase
app/u/[username]/page.tsx - Collector → Trade Offers: offers trades
README.md - Collector → Social and Follows: follows collectors
README.md - Collector → Creator Studio: creates content
README.md - Collector → Journey Explorer: explores journey
- Collector → Shop Storefront: shops listings
README.md - Shop Storefront → Cookie Cart: adds to cart
app/shop/page.tsx - Cookie Cart → Checkout API: starts checkout
app/cart/page.tsx - Checkout API → Order Lifecycle: reserves order
app/api/shop/checkout/route.ts - Checkout API → Supabase: stores order
app/api/shop/checkout/route.ts - Checkout API → Stripe: creates session
app/api/shop/checkout/route.ts - Stripe → Payment Webhook: sends events
README.md - Payment Webhook → Order Lifecycle: finalizes payment
app/api/shop/webhook/route.ts - Payment Webhook → Supabase: updates order
app/api/shop/webhook/route.ts - Price Sync → Price Repository: syncs prices
- Price Repository → JustTCG: matches provider data
lib/prices/repository.ts - Price Repository → Supabase: caches prices
README.md - Collector → Supabase Auth: signs in
README.md - Supabase Auth → Supabase: authenticates with
README.md