Overview
Reestock is a B2B food supply chain platform designed to streamline the procurement process between food establishments (restaurants, cafes, hotels) and their ingredient suppliers. In the traditional food supply chain, establishments place orders through phone calls, messaging apps, or in-person visits, leading to miscommunication, delayed deliveries, and poor inventory visibility. Reestock digitizes this entire workflow by providing dedicated dashboards for each participant in the supply chain: establishments that order ingredients, providers that fulfill orders, delivery drivers that transport goods, and administrators who oversee the platform. The result is a transparent, efficient, and trackable food supply ecosystem.
Key Features
Four Role-Based Dashboards
Reestock's core design principle is that each participant in the supply chain has fundamentally different needs and workflows. Rather than forcing all users through a generic interface, the platform provides four purpose-built dashboards tailored to each role's daily operations.
- Admin Dashboard - Platform-wide oversight with user management, provider/establishment approval, order dispute resolution, financial reporting, catalog management, and system configuration. Admins can view all transactions, manage product categories, set platform fees, and monitor overall marketplace health through key metrics and trend charts.
- Establishment Dashboard (Buyer) - Order-centric interface where buyers browse the product catalog, compare prices across providers, create orders with specific quantities and delivery preferences, track order status in real-time, manage delivery schedules, review past orders for reordering, and access spending analytics by category and time period.
- Provider Dashboard (Supplier) - Fulfillment-focused interface where suppliers manage their product listings with pricing and availability, receive and process incoming orders, update order status as items are prepared and dispatched, manage inventory levels with low-stock alerts, view revenue analytics, and handle customer communications.
- Delivery Dashboard - Route-optimized interface where delivery drivers view assigned deliveries with pickup and dropoff details, update delivery status (picked up, in transit, delivered), capture proof of delivery with photos and signatures, track daily earnings, and report delivery issues with contextual information for dispute resolution.
Product Catalog
The platform launches with a curated catalog of 46 products organized across 10 food supply categories including fresh produce, dairy, meats, seafood, bakery supplies, beverages, dry goods, frozen items, condiments, and packaging materials. Each product listing includes detailed specifications, unit pricing, minimum order quantities, available providers, delivery estimates, and product images. Providers can extend the catalog by listing additional products pending admin approval, ensuring quality control while allowing organic marketplace growth.
Order Management
The order management system handles the complete lifecycle from cart creation through delivery confirmation. Establishments build orders by selecting products, specifying quantities, choosing preferred providers, and setting delivery windows. Once submitted, orders flow through a structured pipeline: pending review, provider confirmed, in preparation, dispatched, in transit, and delivered. Each status transition triggers notifications to relevant parties and updates the real-time tracking interface. The system supports partial fulfillment, substitution requests, and order modifications before the preparation stage.
Delivery Tracking
Real-time delivery tracking provides visibility to all parties throughout the logistics process. Establishments see estimated arrival times with live updates as deliveries progress. Providers track outgoing shipments to ensure timely dispatch. Delivery drivers follow optimized routes with navigation integration. The tracking system captures timestamps at each stage, providing data for delivery performance analytics and SLA compliance reporting.
Analytics and Reporting
Each dashboard includes role-appropriate analytics. Establishments see spending trends, most-ordered products, supplier reliability scores, and cost optimization suggestions. Providers view revenue trends, order volume patterns, popular products, and fulfillment performance metrics. Delivery drivers access earnings summaries, delivery counts, and performance ratings. Administrators have access to platform-wide metrics including gross merchandise value, active user counts, order completion rates, and marketplace growth trends.
Multi-Language Support
Reestock supports multiple languages through next-intl, with full localization of the interface, product descriptions, notification messages, and administrative content. Language preferences are persisted per user and applied consistently across all dashboard views. The internationalization architecture supports right-to-left layouts and locale-specific number and date formatting.
Technical Implementation
Reestock is built as a Turborepo monorepo containing the main Next.js 15 application and shared packages for types, utilities, and UI components. The API layer uses tRPC for end-to-end type safety between the frontend and backend, eliminating the need for manual API schema maintenance and providing automatic TypeScript inference across the full stack. Prisma ORM with PostgreSQL manages the complex relational schema spanning users, roles, products, categories, orders, order items, deliveries, and analytics events. Authentication is handled through Better-Auth, providing a modern, type-safe authentication solution with support for multiple providers and session management.
- Next.js 15 with App Router for SSR and role-based dashboard routing
- tRPC for end-to-end type-safe API communication without REST overhead
- Prisma ORM with PostgreSQL for B2B supply chain data modeling
- Better-Auth for type-safe authentication with multi-provider support
- Turborepo monorepo for shared code and consistent builds across packages
- next-intl for comprehensive internationalization with locale-aware formatting
- Tailwind CSS and shadcn/ui for consistent, responsive dashboard interfaces
Purpose and Context
Reestock was developed to modernize the food supply procurement process in markets where digital infrastructure for B2B food ordering remains underdeveloped. The traditional reliance on phone calls, personal relationships, and informal agreements creates inefficiencies that increase costs for establishments and limit growth opportunities for providers. By providing a structured digital marketplace with transparent pricing, trackable orders, and performance analytics, Reestock introduces accountability and efficiency into a sector that has been slow to digitize. The project showcases expertise in multi-stakeholder platform design, tRPC-based type-safe architectures, complex role-based access control, and building marketplace applications that serve fundamentally different user needs through a unified codebase.



