Matthew Jeter M. Ziemba

Estimating system sync

Creates bids in The EDGE Estimator from HubSpot deals and brings scenario pricing and estimating milestones back every 15 minutes.

For
A commercial roofing contractor
When
May 2026 to now
Status
In production since May 2026
Role
Sole developer, from the first commit to production
Systems
EDGE Estimator and HubSpot

Data paths and guards

EDGE EstimatorState storeEDGE EstimatorState storeBid sync serviceCreate Bid, from the cardHubSpotNew bidPricing and milestonesDeal fields and stagesLinks and sync logsSigned requests onlyLicensed estimators onlyRecord the bid firstFailing links paused EDGEState storeEDGEState storeBid syncaHubSpotbcde
  1. HubSpot: Deals, the deal card and the building record.
  2. Bid sync service: 17 routes and 18 modules in Node.js on Vercel: bid creation, the 15-minute sync and settings.
  3. EDGE Estimator: Where estimators build bids and their pricing scenarios.
  4. State store: Linked bids, sync logs and settings, in Supabase Postgres.
  5. From HubSpot to Bid sync service: Create Bid, from the card. The deal, its contact and owner, and the building’s address. Create Bid, clicked on the deal card.
  6. From Bid sync service to EDGE Estimator: New bid. A bid built from the deal, held to the vendor’s field limits. A Create Bid request that passes its checks.
  7. From EDGE Estimator to Bid sync service: Pricing and milestones. Scenario pricing and estimating milestones for every linked bid. A cron every 15 minutes.
  8. From Bid sync service to HubSpot: Deal fields and stages. Pricing written to the deal, and stage moves that only go forward. Each sync run.
  9. From Bid sync service to State store: Links and sync logs. Each deal-to-bid link, and a log row for every sync. Every create and every sync.
  10. On Create Bid, from the card: Signed requests only. Routes accept only requests that HubSpot signed, and settings need an admin.
  11. On New bid: Licensed estimators only. A bid names an estimator only after checking that the person is a licensed user of the estimating system.
  12. On Links and sync logs: Record the bid first. A new bid is recorded before anything else, because a bid in the estimating system cannot be deleted.
  13. On Pricing and milestones: Failing links paused. A link that keeps failing with a known error is paused and shown on the deal card with a way to reconnect.
  • Built by me
  • Platforms I connect to
  • Guards
  • In production

Data paths
Create Bid, from the card The deal, its contact and owner, and the building’s address
New bid A bid built from the deal, held to the vendor’s field limits
Pricing and milestones Scenario pricing and estimating milestones for every linked bid
Deal fields and stages Pricing written to the deal, and stage moves that only go forward
Links and sync logs Each deal-to-bid link, and a log row for every sync
  1. Systems

    Sales works in HubSpot and estimators work in The EDGE Estimator. Between them runs a Node.js service on Vercel functions, with linked bids and sync logs kept in Supabase Postgres.

  2. Data paths

    Create Bid on the deal card sends the deal, its contact, owner and building address, and the service creates the bid. Every 15 minutes it reads scenario pricing and estimating milestones back onto the deal and logs each run.

    • a Create Bid, from the card
    • b New bid
    • c Pricing and milestones
    • d Deal fields and stages
    • e Links and sync logs
  3. Guards

    Only signed HubSpot requests get in. A bid names only a licensed estimator. A new bid is recorded before anything else, because it cannot be deleted, and a link that keeps failing is paused on the card.

    • Signed requests only on a
    • Licensed estimators only on b
    • Record the bid first on e
    • Failing links paused on c
  4. Result

    In production 2 days after the first commit. 20 bids are linked to their deals, and one scheduled run covered 18 bids with 0 errors.

What I built

What the guards protect against

The risk The guard
An unsigned request creates a bid or changes the settings. Signed requests only Routes accept only requests that HubSpot signed, and settings need an admin.
A bid fails because the named estimator is not a licensed user. Licensed estimators only A bid names an estimator only after checking that the person is a licensed user of the estimating system.
A bid that cannot be deleted is left with nothing tracking it. Record the bid first A new bid is recorded before anything else, because a bid in the estimating system cannot be deleted.
A broken link fails quietly on every run. Failing links paused A link that keeps failing with a known error is paused and shown on the deal card with a way to reconnect.

Results

  • In production 2 days after the first commit.
  • 20 linked bids in use; one scheduled run covered 18 bids with 0 errors.

Facts

  • A sync writes HubSpot before it advances the link, so an interrupted run repeats instead of skipping a deal
  • The estimating system’s times carry no zone; the service converts each to the epoch time HubSpot expects
  • HubSpot signatures are checked against the raw request bytes, so multi-byte text verifies too
  1. QuickBooks job costing

    Date: Aug 2026

    Fact: On day one of a 3-day hackathon, an invoice posted through the approval gate

    Client: For contractors on HubSpot (a hackathon build)

    Systems: QuickBooks Online, Stripe and Claude

    Status: Active

  2. Per-trade deal budgets

    Date: Feb 2026

    Fact: Revenue, material and labor budgets across 11 trades

    Client: For a residential roofing and exteriors contractor

    Systems: SumoQuote and Zuper

    Status: In production

  3. Desktop accounting connector

    Date: Jun 2026

    Fact: Sales recognition reconciled to the cent across 3,709 deals

    Client: For a residential roofing and solar contractor

    Systems: QuickBooks Desktop

    Status: In production