Skip to content

TheDirtXchangeConstruction marketplace

One marketplace to source dirt, book haulers and settle payments.

A marketplace and heavy hauling platform that connects contractors, excavators, landscapers and builders with certified dump truck haulers, replacing phone calls and paper tickets with smart matching, one checkout and live trip tracking.

  • Product design
  • Full-stack development
  • Marketplace and logistics
TheDirtXchange · Buyer dashboard

Overview

Bringing a phone and paper industry online

TheDirtXchange is an industrial marketplace and heavy hauling logistics platform engineered to solve the coordination, pricing and spatial challenges of bulk construction material exchange.

It connects commercial earthwork contractors, excavation operators, landscapers and residential builders with certified dump truck haulers and fleet owners, so finding material, booking a truck and paying for both happen in one place.

  1. 01Smart matching and map searchPairs buyers and sellers within a 200 mile radius while keeping job site addresses private.
  2. 02Unified checkout and payoutsBuys material and hires a hauler in one card payment, with automatic splits and refunds.
  3. 03Hauler dispatch and job trackingGives haulers their own portal for requests, trip progress, safety checklists and earnings.

The challenge

Moving dirt was costly, slow and run on phone calls

Sourcing bulk material relied on phone calls, word of mouth and paper tickets. Transport often cost more than the dirt itself, and finding the right soil type and volume within a reasonable drive was hard.

01

Finding the right dirt nearby

  • Hauling heavy dirt more than 20 to 25 miles quickly becomes too costly.
  • Dirt is not all the same: structural fill cannot be swapped for soft clay.
  • Exact job site addresses online invite illegal dumping, theft and trespassing.
02

Two separate deals per load

  • Buyers paid for material, only to find no driver free to move it.
  • Several buyers could pay for the same pile at the same moment.
  • A rained out day left partial loads to refund with manual math.
03

Dispatch by phone and paper

  • Ignored job requests left customer money tied up for days.
  • Site managers called drivers again and again for arrival times.
  • Drivers showed up with the wrong truck type for the material.

The solution

Three systems working as one platform

Each system removes a step that used to happen over the phone, so a contractor can go from finding soil to a delivered load without leaving the platform.

01Smart matching and map search

Matches that respect distance, soil type and privacy

Classified sites and basic maps could not tell fill from topsoil, or a short haul from an expensive one. The platform scores every listing against open requests and shows nearby supply on a map without revealing where a job site really is.

  • Address privacy shield

    Public map pins are offset by about half a mile. The street address, place ID and gate notes stay hidden until a job is paid and confirmed.

  • Two step radius search

    A simple geographic box narrows listings first, then the exact road distance is calculated, keeping search fast across thousands of listings.

  • 100 point match score

    Material, volume, driving distance, budget and timing are scored. Matches of 20 points or more alert both sides by email and text.

TheDirtXchange · Match details

02Unified checkout and payouts

One checkout for the dirt and the truck

Buying bulk dirt used to mean two deals: one with the seller and another with a hauler. Now the buyer pays once, the funds are held in escrow, and the platform pays the seller and the driver separately.

  • Duplicate purchase prevention

    Starting checkout reserves the listing, so two contractors can never pay for the same pile. Unpaid holds expire after 20 minutes.

  • One price, separate ledgers

    Dirt cost, hauling fee and a 5 percent service fee in one charge, tracked as separate amounts and paid out to bank accounts through Stripe Connect.

  • Automatic partial refunds

    If rain stops a 5 load job after 2 loads, the 3 undelivered loads and their share of the fee are refunded, while the seller keeps the material payment.

TheDirtXchange · Payments

03Hauler dispatch and job tracking

Dispatch and trip tracking without the phone calls

Dump truck dispatch ran on calls, texts and paper receipts. Haulers now work from a dedicated workspace where they accept requests, follow a four step trip status and keep an eye on their earnings.

  • Verified fleet profiles

    Truck types, daily load limits, service areas and minimum orders, with a commercial driver license and insurance on file before any job.

  • Four step milestones

    En Route, At Pickup, Hauling and Delivered in single taps, plus a pre trip checklist with gate codes, safety rules and site contacts.

  • 48 hour escrow return

    If a driver does not accept a request within 48 hours, the booking is cancelled and the customer is refunded in full automatically.

TheDirtXchange · Hauler workspace

Order flow

How a typical order works

From the first search to the driver payout, every step is tracked in one place.

  1. Step 01

    Find

    A buyer finds soil on the map and picks a nearby certified hauler.

  2. Step 02

    Pay once

    Dirt and delivery are paid together with a single credit card.

  3. Step 03

    Accept

    The hauler gets an instant text and email, reviews site notes and accepts.

  4. Step 04

    Track

    On delivery day, the driver taps through four status updates.

  5. Step 05

    Get paid

    Once delivery is confirmed, the payout goes straight to the driver's bank.

  6. Step 06

    Stay protected

    No response within 48 hours? The job expires and the buyer is refunded.

Tech stack

Built on a modern, reliable stack

Technologies chosen for speed, scalability and ease of maintenance.

Frontend

  • Fast, responsive interface on desktop and mobile
  • Interactive Google Maps with clustered pins
  • Instant switching between buyer, seller and hauler views
  • Next.js 15
  • React 19
  • Tailwind CSS

Backend

  • Modular domains for posts, matching, bookings and payments
  • Background workers for email, text alerts and match scoring
  • Rate limiting against spam and abuse
  • NestJS 11
  • TypeScript 5.7
  • Express

Data and caching

  • Users, listings, bookings and financial ledgers kept consistent
  • Fast text search for soil types and cities
  • Redis for map caching and background queues
  • PostgreSQL 14+
  • TypeORM
  • Redis

Cloud and integrations

  • Payments, subscriptions and driver bank payouts
  • Geocoding and driving mileage
  • Text dispatch alerts and secure license uploads
  • Stripe Connect
  • Google Maps
  • Twilio
  • Amazon S3

Security: Secure authentication with automatic session refresh, password encryption and Google and Facebook sign in.

Results

What changed on the job site and in the ledger

Faster sourcing for contractors, guaranteed payouts for haulers and a clear record of every load.

Map searches across entire states
<15ms
Duplicate checkouts or double sold piles
0
To buy dirt and book a truck
<2min
Until unaccepted jobs are refunded in full
48h
  • Accurate soil matches

    Buyers and sellers are paired on true soil compatibility and driving distance, not vague keywords.

  • Private job sites

    Contractors and property owners post freely without strangers showing up unannounced.

  • Full driver compliance

    Every hauler has a verified commercial license and insurance on file before taking jobs.

  • Transparent field progress

    The four milestone status gives everyone peace of mind while trucks are moving.

  • Easy weather refunds

    Partial deliveries are settled fairly and automatically, without spreadsheets or disputes.

  • Trusted driver ratings

    Recorded arrival times give honest, on time drivers public ratings that win them more work.

Takeaways

Key takeaways and lessons learned

What building a marketplace for a physical, heavy product taught us.

  1. 01

    Privacy and discovery can work together

    Hiding job sites ruins the map, while exact addresses create safety problems. A half mile shift on public pins lets contractors browse nearby supply and keeps private addresses safe until payment.

  2. 02

    Database holds are essential for real materials

    Two buyers cannot both own one pile of dirt. Database level checkout holds make sure that once someone starts paying, nobody else can buy it out from under them.

  3. 03

    Split orders need separate ledgers

    One charge keeps checkout simple, but tracking material and hauling separately lets a weather cancellation refund delivery without cancelling the material purchase.

  4. 04

    Simple status steps replace phone calls

    Most arguments between contractors and drivers come down to communication gaps. Four simple buttons create a clear record of when work happened.

  5. 05

    Mobile users need grace periods

    Drivers often work in rural areas with weak signal. A 60 second network retry grace period stops users from being logged out when the signal drops.