HomeCase studiesOffline-Capable Construction Site Progress Tracking and Subcontractor...

Case study · Denver, United States

Offline-Capable Construction Site Progress Tracking and Subcontractor Coordination Portal with Next.js, NestJS, and PostgreSQL

Commercial Construction Field Coordination

Commercial general contractors struggle to align field conditions with office cost-control systems when superintendents record progress on paper clipboards and subcontractors submit payment applications via fragmented email threads. We engineered an offline-capable construction site progress and subcontractor portal using Next.js, NestJS, and PostgreSQL, alongside a shared cross-platform field client. The system synchronizes daily logs, geo-tagged inspection photos, RFI workflows, and Schedule of Values progress draws from active jobsites with intermittent connectivity.

Industry
Commercial Construction Field Coordination
Solution
A web and cross-platform mobile field operations portal built with Next.js, NestJS, and PostgreSQL for offline site logging, punch-list verification, and subcontractor draw approvals.
Platforms
Web & API · Cross-platform
Stack
Next.js · NestJS · PostgreSQL · React Native · TypeScript · Redis
Location
Denver, United States · delivered remotely
Role
Engineering, with the team behind for mobile and QA

Delivered remotely for a business based in Denver, United States. Names withheld by agreement.

Project Overview

Commercial construction projects fail or stall in the gap between physical field execution and office financial tracking. On active sites—from subterranean parking structures to remote industrial builds—cellular coverage drops unpredictably, leaving superintendents taking handwritten notes and snapping unindexed phone photos that reach project managers days later. Meanwhile, trade subcontractors submit monthly progress billings via inconsistent spreadsheets that project engineers must manually verify against field completion before releasing retainage.

We engineered a construction site progress and subcontractor coordination portal powered by Next.js, NestJS, and PostgreSQL, paired with a cross-platform mobile field client. The system unifies offline-resilient daily field logs, blueprint-pinned punch lists, RFI routing, and Schedule of Values (SOV) progress billing into one deterministic source of truth.

Field Coordination Bottlenecks

Prior to building this unified portal, project teams struggled with recurring breakdowns between site trailers and corporate accounting:

  • Delayed Progress Visibility: Superintendents transcribed manpower headcounts, weather delays, and concrete pour logs at the end of long shifts, creating multi-day blind spots for project executives.
  • Unverifiable Subcontractor Draws: Trade partners submitted percentage-complete claims disconnected from verified field inspections, forcing tedious back-and-forth reconciliations every billing cycle.
  • Lost Spatial Context on Defects: Deficiency photos lacked exact floorplan coordinates, trade assignments, and due dates, causing rework items to slip past commissioning deadlines.
  • Fragmented Document Control: Subcontractors frequently built off superseded drawing revisions when updated architectural sheets circulated over ad-hoc email threads.

Architectural Strategy

We adopted a shared-contract TypeScript architecture spanning Next.js for office and subcontractor web workspaces, React Native for cross-platform iOS/Android field capture, and NestJS for backend domain orchestration. Designing for intermittent connectivity shaped the entire data layer: every field record carries client-generated UUIDv7 identifiers and monotonic sync checkpoints so offline work merges cleanly without duplicate logs or dropped photos.

Inside NestJS, strict state-machine workflows govern RFIs, change-order requests, and monthly payment applications. PostgreSQL transactional boundaries bind field completion sign-offs directly to financial Schedule of Values lines, ensuring billing approvals reflect verified physical installation.

Core Capabilities

Offline-First Daily Logs & Manpower Capture

Foremen and superintendents record trade headcounts, equipment utilization, material deliveries, safety toolbox talks, and weather delays directly on tablets or phones with zero signal. Queued entries flush automatically when devices reconnect, tagging timestamps from both capture and server commit.

Blueprint-Pinned Punch Lists & Inspections

Users drop color-coded pins onto tiled architectural floorplans to log quality defects, attach before/after photos, assign trade accountability, and track resolution sign-offs. Superseded drawing overlays highlight revision clouds so teams never inspect against outdated sheets.

Subcontractor Schedule of Values & Draw Portal

Subcontractors log into a scoped Next.js portal to submit monthly progress applications against contracted CSI cost codes, upload conditional lien waivers, and track retainage balances. Automated validation checks block submissions missing required safety or insurance documentation.

RFI & Submittal Routing Workflows

Project engineers log Requests for Information linked to specific drawing coordinates and specification sections, routing them to architects or structural consultants with SLA countdowns and automatic distribution of official responses to affected trades.

Technical Architecture

Flow: Cross-Platform Field App (SQLite) & Next.js Web (IndexedDB) -> Delta Sync & REST Endpoints -> NestJS Domain Modules & RBAC Guards -> PostgreSQL Transactional Core -> BullMQ / Redis Workers -> Amazon S3 Media & PDF Draw Packets

  1. Web & Subcontractor Interface: Next.js App Router delivers fast server-rendered cost dashboards for project executives and isolated self-service portals for dozens of trade subcontractors per job.
  2. Cross-Platform Field Client: React Native shares validation schemas and API types with the web codebase, utilizing local SQLite storage and background upload queues for heavy site imagery.
  3. NestJS Domain Core: Organizes Projects, Daily Logs, Blueprints, RFIs, and Progress Billing into isolated NestJS modules guarded by trade-scoped RBAC policies.
  4. PostgreSQL & BullMQ Pipeline: PostgreSQL enforces referential integrity across CSI division hierarchies and draw ledgers, while BullMQ workers compile multi-page AIA-style PDF payment packets and daily summary digests asynchronously.

Technology Stack

Category Technology Detail
Office & Sub Portal Next.js (App Router) and TypeScript delivering SSR dashboards and subcontractor draw workspaces
Cross-Platform Field App React Native (Expo) mobile client with local SQLite sync queue for underground and remote sites
Backend Services NestJS modular TypeScript API enforcing project RBAC, workflow state machines, and webhooks
Primary Database PostgreSQL 16 storing CSI cost codes, Schedule of Values trees, daily logs, and draw ledgers
Offline Web Cache IndexedDB and service workers caching active floorplans and inspection forms on ruggedized tablets
Media & Blueprints Amazon S3 with multipart presigned uploads and tiled PDF blueprint rasterization
Queue & Events BullMQ on Redis handling PDF draw packet compilation, weather-log enrichment, and alerts
Real-Time Sync Delta-sync endpoints with server-assigned Lamport sequence tokens and idempotent mutation logs
Audit & Compliance Immutable timestamped photo hashes, lien-waiver gates, and safety sign-off records

Engineering Trade-offs & Solutions

Architectural Challenge Engineering Resolution
Preventing duplicate daily logs during flaky cellular handoffs Required client-generated UUIDv7 keys and idempotency headers on every sync mutation so repeated retries resolve safely on the server.
Rendering 50MB architectural PDFs smoothly on mid-range jobsite tablets Pre-processed uploaded drawing sets into pyramidal map tiles via background workers so clients stream only visible zoom regions.
Protecting trade pricing privacy within a shared project portal Partitioned all SOV, change-order, and draw queries through mandatory NestJS trade-contract guards verifying explicit subcontract ownership.
Avoiding billing discrepancies between field sign-offs and accounting draws Locked draw approval transactions in PostgreSQL against verified inspection milestones and enforced database-level bounds on cumulative billed percentages.

Security & Reliability

Commercial projects involve sensitive subcontract pricing, safety incident documentation, and statutory lien waivers. Authentication enforces short-lived JWTs with refresh rotation and optional enterprise SSO for general contractor staff, while trade partners authenticate via scoped organization accounts bound strictly to their active subcontracts.

Every site photo uploaded for dispute resolution or progress proof records a SHA-256 checksum alongside device capture metadata and server receipt timestamps. Resumable multipart S3 uploads ensure large batches of high-resolution site photos survive sudden connection drops without corrupting partially transferred binaries or stalling foreground UI interactions.

Performance & Scale

Construction portfolios fluctuate seasonally, spiking in concurrent field syncs at morning crew check-in and late-afternoon log submission, followed by intense financial batching around monthly billing cutoffs. Using cursor-based delta synchronization minimizes mobile payload sizes by transferring only modified records since the device's last confirmed sequence token. On the server side, PostgreSQL partial indexes on open punch items and active drawing revisions keep portfolio-wide executive rollups crisp even across multi-year infrastructure programs.

Operational Outcomes

Replacing paper clipboards and fragmented email attachments with a synchronized field-to-office platform gave superintendents immediate clarity on open trade deficiencies and drawing revisions while offline in the field. Project engineers gained verifiable photographic evidence tied directly to Schedule of Values lines, accelerating monthly draw reviews and eliminating guesswork during closeout and commissioning.

01 — Questions

asked about this kind of project

How does the portal handle underground concrete pours or remote sites with zero cellular signal?

Both the cross-platform mobile app and the Next.js tablet progressive web view write field mutations (daily logs, punch pins, and photo metadata) to local encrypted storage (SQLite / IndexedDB) immediately. Once connectivity returns, a background sync worker replays idempotent mutation batches in causal order against NestJS delta endpoints.

How are conflicts resolved when two superintendents update the same punch-list item offline?

Rather than overwriting entire JSON records with last-write-wins, mutations target discrete field operations (status transition, comment append, or photo attachment) backed by optimistic version checks. Conflicting status transitions surface clearly in an office reconciliation queue with actor timestamps.

How does the system prevent subcontractors from over-billing a Schedule of Values line item?

PostgreSQL enforces check constraints and transactional row locks when validating monthly draw applications. Cumulative billed percentages plus stored-material claims cannot exceed approved contract line budgets or verified superintendent completion percentages.

How are large multi-megabyte site photos and high-resolution blueprint drawings handled?

Field devices compress images locally into web-friendly variants alongside original EXIF-verified masters and upload directly to Amazon S3 using resumable multipart presigned URLs. Blueprint PDFs are pre-tiled server-side so tablets load only visible floorplan quadrants.

How is access restricted so competing subcontractors never see each other's pricing or schedules?

NestJS guards enforce strict project-and-trade tenancy on every endpoint. Subcontractors view only their contracted Schedule of Values lines, assigned punch items, and shared safety bulletins, while general contractor executives retain full cross-trade visibility.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.