How pixelpilot5/cardsplit works
CardSplit is a marketplace for shoppers to find bank-card discounts through cardholders, register cards, and coordinate a deal with escrow-style progress and messaging. The main flow starts in the React app: product input is analyzed by the server, offers and matching cardholders are presented, and a selected deal is managed through the deal room. Server state appears in-memory in the sampled routes; no persistent database or payment-provider integration is evidenced. README content was empty, so capability coverage follows the supplied source index and excerpts.
Main entry points: App.tsx App orchestrator · server.ts HTTP API · offerCalculator.ts Offer calculator · CardholderMarketplace.tsx Cardholder marketplace
Components 16
Shopper experience
- App orchestrator
src/App.tsx - Product input
src/components/ProductInputHero.tsx - Product analysis
src/components/ProductAnalysisCard.tsx - Header
src/components/Header.tsx
Offers and marketplace
- Offer matrix
src/components/CardOffersMatrix.tsx - Offer calculator
src/utils/offerCalculator.ts - Cardholder marketplace
src/components/CardholderMarketplace.tsx - Card registration
src/components/RegisterCardModal.tsx - Sample profiles
src/data/mockData.ts
Deal coordination
- Deal room
src/components/DealEscrowModal.tsx - Safety guide
src/components/SafetyGuideSection.tsx
Application services
- HTTP API
server.ts - Domain models
src/types/index.ts
Other components
- Shopper
- Google GenAI
- Shopping platform
Connections 29
- Shopper → App orchestrator: uses
- App orchestrator → Header: renders
src/App.tsx - App orchestrator → Product input: renders
src/App.tsx - App orchestrator → Product analysis: renders
src/App.tsx - App orchestrator → Offer matrix: renders
src/App.tsx - App orchestrator → Cardholder marketplace: renders
src/App.tsx - App orchestrator → Deal room: renders
src/App.tsx - App orchestrator → Card registration: renders
src/App.tsx - App orchestrator → Safety guide: renders
src/App.tsx - Product input → App orchestrator: submits query
src/components/ProductInputHero.tsx - App orchestrator → HTTP API: requests analysis
server.ts - HTTP API → Offer calculator: calculates offers
server.ts - App orchestrator → Offer calculator: initializes offers
src/App.tsx - App orchestrator → Sample profiles: loads samples
src/App.tsx - App orchestrator → Product analysis: passes product
src/App.tsx - App orchestrator → Offer matrix: passes offers
src/App.tsx - App orchestrator → Cardholder marketplace: passes profiles
src/App.tsx - Offer matrix → Offer calculator: formats amounts
src/components/CardOffersMatrix.tsx - Cardholder marketplace → Offer calculator: formats amounts
src/components/CardholderMarketplace.tsx - Product analysis → Offer calculator: formats amounts
src/components/ProductAnalysisCard.tsx - Card registration → HTTP API: registers holder
src/components/RegisterCardModal.tsx - Cardholder marketplace → App orchestrator: selects holder
src/App.tsx - Deal room → App orchestrator: submits deal actions
src/components/DealEscrowModal.tsx - App orchestrator → HTTP API: creates deal
src/App.tsx - HTTP API → Offer calculator: calculates offers
server.ts - HTTP API → Domain models: uses domain models
server.ts - App orchestrator → Domain models: uses domain models
src/App.tsx - HTTP API → Google GenAI: analyzes product
- HTTP API → Shopping platform: supports listings