ProjectDoc Local is an on-prem document review product for contractors, specialty trades, and construction back offices. The first commercial wedge is certificate of insurance review: receive COIs, extract the fields that matter, route uncertain cases to a human reviewer, and keep a durable audit trail inside customer-controlled infrastructure.
The near-term goal is narrow and commercial: help compliance coordinators and back-office reviewers process subcontractor and vendor COIs faster without giving up local deployment, human control, or traceability. Broader document families remain part of the product direction, but they are expansion paths after the first paid pilot workflow is solid.
Contractors and specialty trades already have accounting systems, project systems, and shared folders. The operational pain sits before those systems: COIs arrive by email, portal download, or shared drive; reviewers manually check dates and certificate holders; missing or expired coverage turns into follow-up work; and the review history often disappears into inboxes or spreadsheets.
ProjectDoc Local is being designed to reduce that friction, starting with COIs and later expanding to documents such as:
- certificates of insurance (COIs)
- permits
- lien waivers
- invoices
- change orders
- contracts
- inspection reports
- Local deployment first. Customer documents and extracted data stay within customer-controlled environments.
- Human review for consequential actions. Low-confidence fields and policy-sensitive decisions must be reviewable before downstream use.
- Auditability over black-box automation. Users should be able to see what was extracted, what changed, who changed it, and when.
- Workflow fit over novelty. The product should support operations teams and back-office staff, not force them into generic AI interactions.
- Commercial realism. Security, maintainability, traceability, and deployment discipline matter from the beginning.
The first paid pilot should do one workflow well:
- Intake COIs through controlled local upload paths and staged folder ingestion.
- Extract core COI fields such as named insured, certificate holder, producer, policy dates, and coverage-related review signals.
- Surface uncertain or incomplete results in a review queue instead of pretending the system can approve them automatically.
- Preserve an audit trail of system output, reviewer corrections, approvals, and follow-up decisions.
- Let back-office teams search and filter reviewed COI records for operational use and CSV handoff.
This is a focused compliance review product first. The broader architecture still supports later expansion to other project document families, but the first sellable motion should not read like "all project docs at once."
This repository starts with product and engineering foundations alongside early application code. The intent is to align on scope, constraints, and quality expectations early enough to avoid building something flashy but operationally weak.
The initial repository layout assumes a TypeScript/Node.js monorepo with separate applications for the API, background processing, and review interface. That gives the project a practical default without overcommitting to unnecessary boilerplate on day one.
apps/api/: operator-facing API and orchestration endpointsapps/worker/: ingestion, classification, extraction, and background jobsapps/web/: review and operations interfacepackages/shared/: shared schemas, types, validation, and domain utilitiespackages/config/: environment parsing and configuration helperspackages/testing/: reusable test fixtures and test helper utilitiesdeploy/docker/: local and on-prem packaging assetsscripts/: workspace verification and maintenance helperstests/: reserved for cross-application and system-level test suitesdocs/: product, scope, and project reference documentation
This structure is a starting point, not a frozen architecture.
- Node.js 22 or later
- pnpm 10 or later
- Docker Desktop or Docker Engine for local infrastructure
- Copy
.env.exampleto.env. - Copy
apps/web/.env.exampletoapps/web/.env.local. - Start local dependencies with
docker compose -f deploy/docker/docker-compose.dev.yml up -d. - Install workspace dependencies with
pnpm install. - Start the workspace applications with
pnpm dev.
Default local endpoints:
- Web UI:
http://localhost:5173 - API health:
http://localhost:3000/api/health - PostgreSQL:
localhost:5432 - Local model runtime:
http://localhost:11434
pnpm dev: start shared package watchers plus API, worker, and webpnpm build: build packages and applicationspnpm lint: run eslint across the workspacepnpm typecheck: run TypeScript checks across apps and shared packagespnpm test: run the current automated test suites across the workspacepnpm verify: run the baseline repo quality gate (lint,typecheck,test)
docs/product-overview.md: product summary, principles, and intended system shapedocs/problem-statement.md: the business problem and why current workflows break downdocs/personas.md: target users, responsibilities, and needsdocs/mvp-scope.md: what the first sellable internal milestone should and should not includedocs/pilot-offer.md: who the first paid pilot is for, what workflow it covers, and how success should be measureddocs/non-goals.md: explicit boundaries to keep the product groundeddocs/architecture.md: the recommended MVP application architecture and component boundariesdocs/tech-stack.md: the concrete stack choice for the first implementationdocs/domain-model.md: the core product concepts and how source, extraction, review, and provenance fit togetherdocs/data-model.md: the proposed relational data model and lifecycle entitiesdocs/ingestion-lifecycle.md: the thin-slice upload lifecycle, state transitions, and future worker handoffdocs/ocr-strategy.md: the normalized OCR contract and provider strategy for scanned documentsdocs/classification-and-extraction.md: normalized contracts, stub behavior, and expected field sets by document typedocs/review-workflow.md: review queue structure, action semantics, and UX rationaledocs/search-strategy.md: current deterministic search design and the path to later retrieval upgradesdocs/auditability.md: the first-pass audit event model, persistence strategy, and inspection surfacesdocs/repo-roadmap.md: repository hardening priorities and the near-term path from foundation to product-ready implementationdocs/deployment-strategy.md: the single-machine deployment path for early pilotsTODO.md: phased milestones for product and engineering execution
ProjectDoc Local is being developed as a commercial product. This repository is private and no open-source license is currently granted. See LICENSE_STATUS.md for the current rights position.
- Privacy and customer control are core product requirements, not later enhancements.
- AI output must remain reviewable and auditable.
- Quality standards should assume future commercial deployment, not an internal prototype.
- Documentation changes are part of product development, not cleanup work.
The repository now includes the initial application foundation, shared domain schemas, the first ingestion and search slices, a normalized OCR provider boundary, a first-pass audit trail, and a real documents list surface. Heavy business logic is still intentionally stubbed, and several persistence paths are still JSON-backed development adapters. The codebase has moved past pure planning, but it is not yet at the fully realized PostgreSQL-backed product architecture described in the target docs.