US Custom Caps
Wholesale Tenant Platform with Dynamic Profit Margins
Wholesale platform with
dynamic profit margins
A white-label wholesale platform operating as a tenant of Custom Cap BD, featuring a sophisticated profit margin system that enables wholesalers to set custom pricing with real-time calculations.
US Custom Caps operates as a tenant within the Custom Cap BD ecosystem, sharing the master product catalog while maintaining complete pricing independence. The platform features a sophisticated profit margin system allowing wholesalers to set global or per-category margins with real-time price previews.
Global & Per-Category
RLS Isolation
6 Quantity Tiers
Invoicing & Accounting
Project Details
US Custom Caps
Custom Cap BD
2025
2 months
Web Development
Platform Scale
The metrics that demonstrate the capability and scope of this wholesale tenant platform.
Pricing Categories
Independent profit margin configuration for base caps, fabrics, closures, accessories, logo methods, delivery, and customizations.
Dynamic Profit Margins
Set profit margins globally or per-category with real-time price previews. The system automatically calculates selling prices based on factory costs.
Pricing Mode
Different margins for each category
Per-Category Profit Margins
Volume Pricing Tiers
Each tier can have different base prices, and your profit margins are applied on top.
Wholesale Powerhouse
Features designed for wholesale operations, from dynamic pricing to comprehensive financial management.
Dynamic Profit Margins
Flexible pricing with real-time calculations
Set global or per-category profit margins with instant price previews. Support for 6 quantity tiers with automatic recalculation when factory prices change.
Multi-Tenant Architecture
Isolated tenant within shared infrastructure
Single Supabase database with Row-Level Security policies ensuring complete data isolation. Independent branding, pricing, and customer management.
Wholesale Dashboard
Complete B2B management suite
Comprehensive wholesaler portal with orders, customers, pricing management, template ordering, inventory tracking, and performance analytics.
Financial Management
Complete accounting and invoicing
Double-entry bookkeeping with journal entries, invoice generation, payment tracking, and real-time profit margin analysis per order.
Volume Pricing Tiers
6-tier volume-based pricing system
Automatic price breaks at 48, 144, 576, 1,152, 2,880, and 10,000+ units. Each tier can have different profit margins applied.
Resale Product Support
Third-party product markup system
Configure profit margins for supplier and third-party products separately. Track costs and profits for non-manufactured items.
Invoice & Quote System
Professional PDF generation
Generate branded invoices and quotes with automatic profit margin calculations. Email delivery via Resend with payment tracking.
Performance Analytics
Sales and profit tracking
Real-time dashboards showing sales metrics, best/worst performing orders, profit margin trends, and customer analytics.
Template-Based Ordering
Quick reorder system
Save and share design templates for repeat orders. Token-based template sharing with customers for easy reordering.
Customer Management
B2B customer relationship tools
Complete CRM for wholesale customers including contact management, order history, credit limits, and communication logs.
Pricing Configuration
Granular pricing controls
Admin interface for configuring all pricing aspects including factory costs, profit margins, platform fees, and discount codes.
Platform Fee System
Transparent fee structure
$0.20 per unit platform fee with clear visibility in price breakdowns. Separate tracking for manufacturing costs, profits, and fees.
Shared Infrastructure
Built on the same powerful tech stack as Custom Cap BD, ensuring consistency, maintainability, and enterprise-grade performance.
Next.js 16
App Router with Server Components
React 19
Latest React with Compiler
TypeScript
Full type safety across codebase
Radix UI
Accessible component primitives
Tailwind CSS 4
Utility-first styling
ShadCN
Beautiful component patterns
Three.js
3D product customizer engine
React Three Fiber
Declarative 3D for React
Recharts
Data visualization & charts
Konva.js
2D canvas graphics library
Fabric.js
Interactive canvas editor
vtracer
Raster to vector conversion
Supabase
PostgreSQL with Row Level Security
Sanity CMS
Headless content management
TanStack Query 5
Powerful server state management
Zustand
Lightweight client state
Framer Motion
Production-ready animations
anime.js
Complex SVG animations
Google Gemini
AI-powered logo processing
OpenAI Vision
Image analysis & validation
Discord.js
Real-time bot notifications
Resend
Transactional emails
PWA
Offline-capable progressive app
React Hook Form
Performant form handling
Zod
TypeScript-first validation
3 Distinct Platforms
Each user role has a tailored dashboard with specific features for wholesale operations and management.
Full platform control with pricing and analytics management

Security & Performance
Built with security-first architecture and multi-tenant isolation.
Tenant Isolation
Complete data separation via Row-Level Security
Rate Limiting
API throttling and abuse prevention
Auth Guards
Role-based access control middleware
Row Level Security
PostgreSQL RLS policies for data isolation
Complete data separation via Row-Level Security policies ensuring tenant isolation within the shared Custom Cap BD infrastructure.
Project Timeline
The evolution of US Custom Caps from tenant concept to wholesale powerhouse.
Tenant Architecture
Multi-tenant database design with RLS policies and domain mapping
Profit Margin System
Dynamic pricing engine with global and per-category margin modes
Wholesale Dashboard
Complete wholesaler portal with customer and order management
Financial Tools
Accounting dashboard, invoicing, and profit tracking features
Launch & Optimization
Performance tuning, analytics refinement, and feature expansion
Platform Gallery
Explore the different screens and interfaces of the wholesale platform.
Need a wholesale
platform?
Whether you need a multi-tenant SaaS platform, B2B marketplace, or custom wholesale solution — let's discuss your requirements.
Related Projects
Part of a connected ecosystem of cap manufacturing and distribution platforms.







