How hydrada/opendraft works
OpenDraft is a desktop and browser PDF review tool for construction drawings. The principal workflow is to open and organize drawing pages, add markups or calibrated measurements, review revisions and takeoffs, then export or save the resulting work. Its optional collaboration client syncs shared review state with a self-hosted server. The README documents additional document capabilities; source excerpts are incomplete, so links to those capabilities are shown only where the index or excerpts support them.
Main entry points: main.ts Workspace app · markup-ui.ts Markup tools · measurement-ui.ts Measurement tools · collab-client.ts Sync client
Components 27
Drawing workspace
- Workspace app
apps/opendraft/src/main.ts - Drawing organization
apps/opendraft/src/organization.ts - Offline OCR
apps/opendraft/src/ocr-ui.ts - PDF runtime resources
apps/opendraft/src/pdf-resources.ts
Markup and takeoff
- Markup tools
apps/opendraft/src/markup-ui.ts - PDF annotations
apps/opendraft/src/annotations.ts - Markup layers
apps/opendraft/src/markup-layers.ts - Markup search
apps/opendraft/src/markup-query.ts - Measurement tools
apps/opendraft/src/measurement-ui.ts - Measurement engine
apps/opendraft/src/measurements.ts - Takeoff quantities
apps/opendraft/src/takeoff.ts
Revision review
- Batch comparison
apps/opendraft/src/batch-ui.ts - Batch processor
apps/opendraft/src/batch-comparison.ts - Revision comparison
apps/opendraft/src/revision-ui.ts - Raster comparison
apps/opendraft/src/revision-comparison.ts - Revision sets
apps/opendraft/src/revision-set-ui.ts
Document tools
- PDF forms
apps/opendraft/src/forms-ui.ts - True redaction
apps/opendraft/src/redaction-ui.ts - Digital signatures
apps/opendraft/src/signature-ui.ts - Signature engine
apps/opendraft/src/pdf-signature.ts - Vector printing
apps/opendraft/src/print.ts
Team collaboration
- Collaboration UI
apps/opendraft/src/collab-ui.ts - Sync client
apps/opendraft/src/collab-client.ts - Shared state
apps/opendraft/src/collab-sync.ts - Self-hosted server
server/collab-server.mjs - Server files
server/collab-server.mjs
Other components
- Reviewer
Connections 28
- Reviewer → Workspace app: reviews drawings
README.md - Workspace app → Drawing organization: organizes pages
apps/opendraft/src/main.ts - Workspace app → Offline OCR: offers OCR
apps/opendraft/src/main.ts - Workspace app → Markup tools: opens tools
apps/opendraft/src/main.ts - Markup tools → PDF annotations: creates markups
apps/opendraft/src/markup-ui.ts - Markup tools → Markup layers: uses layers
apps/opendraft/src/markup-ui.ts - Markup tools → Markup search: filters markups
apps/opendraft/src/markup-ui.ts - Workspace app → Measurement tools: opens tools
apps/opendraft/src/main.ts - Measurement tools → Measurement engine: calculates measures
apps/opendraft/src/measurement-ui.ts - Measurement tools → Takeoff quantities: updates quantities
apps/opendraft/src/measurement-ui.ts - Takeoff quantities → Measurement engine: computes quantities
apps/opendraft/src/takeoff.ts - Workspace app → Batch comparison: opens comparison
apps/opendraft/src/main.ts - Batch comparison → Batch processor: runs batches
apps/opendraft/src/batch-ui.ts - Batch processor → Raster comparison: compares rasters
apps/opendraft/src/batch-comparison.ts - Workspace app → Revision comparison: opens comparison
apps/opendraft/src/main.ts - Revision comparison → Raster comparison: compares pages
apps/opendraft/src/revision-ui.ts - Workspace app → Revision sets: opens revision sets
apps/opendraft/src/main.ts - Workspace app → PDF forms: offers form tools
apps/opendraft/src/main.ts - Workspace app → True redaction: offers redaction
apps/opendraft/src/main.ts - Workspace app → Digital signatures: offers signatures
apps/opendraft/src/main.ts - Digital signatures → Signature engine: signs documents
apps/opendraft/src/signature-ui.ts - Workspace app → Vector printing: prints documents
README.md - Workspace app → Collaboration UI: offers teamwork
apps/opendraft/src/main.ts - Collaboration UI → Sync client: controls sync
apps/opendraft/src/main.ts - Sync client → Shared state: rebases shared state
apps/opendraft/src/collab-client.ts - Sync client → Self-hosted server: sends API requests
apps/opendraft/src/collab-client.ts - Self-hosted server → Server files: reads and writes
server/collab-server.mjs - Workspace app → PDF runtime resources: loads PDF resources
apps/opendraft/src/main.ts