Usman Liaqat.
Back to all work

Kaprix Powerhouse Logistics

A UK same day courier booking platform with an instant postcode to postcode pricing engine, a six step quote and booking flow, Stripe checkout, and an admin controlled rate management dashboard.

Next.js 16TypeScriptMongoDBStripeTailwind CSS v4
Kaprix Powerhouse Logistics preview

The Challenge

Quoting an urgent courier job instantly and accurately with nobody on the phone. The site had to normalise any UK postcode pair, measure the route, work out which vehicles could legally carry the load by weight, dimensions, and pallet count, then apply the extra stop fees, vehicle minimum charges, out of hours surcharges, and VAT the office had been calculating by hand, all before the customer lost patience and called a competitor.

The Approach

Built a Next.js 16 App Router site backed by MongoDB through a repository layer. Postcodes are validated and geocoded via the Postcodes.io API, route distance is computed with the Haversine formula, and the pricing engine filters and ranks eligible vehicles before applying the fee and VAT rules. Rate cards live in the database as versioned configs, so admins retune per mile rates, distance factors, minimum billable miles, and surcharges without a deploy, with every change written to an audit log. Stripe Checkout and webhooks handle payment, Brevo sends confirmations and a reminder for quotes left unpaid after thirty minutes, and shipment photographs upload to S3 compatible storage with automatic cleanup when a quote is deleted.

Key Features

  • Six step booking flow covering pricing, shipment details, loading, unloading, invoicing, and payment
  • Instant pricing engine with postcode validation, route distance, and vehicle eligibility matching
  • Versioned rate configuration letting admins edit VAT, per mile rates, surcharges, and vehicle availability in app
  • Admin dashboard with a quote pipeline, business metrics, and an audit log of every rate change and deletion
  • Stripe Checkout with webhook reconciliation and automated payment reminder emails via Brevo
  • Shipment image uploads to S3 compatible storage with orphan cleanup on quote deletion

Results

Turned a phone and email quoting process into a self serve booking flow that prices a job, collects the shipment details, and takes payment in one session, while giving the office a rate card it can retune the moment fuel or vehicle costs move.

Tech Stack

Next.js 16
React 19
TypeScript
MongoDB
Tailwind CSS v4
Stripe
Brevo API
Postcodes.io API
RustFS S3
Docker

Related reading