The pipeline

From drawing upload to priced КСС, one reviewable path.

Upload, parse, price, export. Every stage keeps the estimator in control and makes the next decision easier to verify.

Stage by stage

Each stage turns messy estimating work into something visible and reviewable.

step 01DXF, DWG, PDF

Upload

Choose the drawing file you already use. KCC checks it, stores the original, and starts a private processing job with visible progress.

  • Private file storage
  • Visible job status
  • Original drawing preserved
step 02Quantities

Parse

The drawing is turned into a structured model. Layers, blocks, dimensions, annotations, and geometry become quantities the estimator can inspect.

  • Layer and block reading
  • Dimension links
  • Reviewable quantities
step 03Sources

Price

Each quantity is mapped to a Bulgarian СЕК work code and matched with current price data. Sources, assumptions, and confidence stay attached.

  • Bulgarian СЕК mapping
  • Supplier price sources
  • Confidence per row
step 04Excel, PDF, CSV

Export

After review, KCC exports a clean report with labour, material, mechanisation, overhead, and audit notes kept with the estimate.

  • Client-ready files
  • Audit notes included
  • Corrections retained
The pipeline

Four services, one pipeline.

Every stage runs in isolation — the API takes uploads, the worker handles the heavy lifting, Postgres keeps state, Redis runs the queue. Scroll to walk through it.

  1. step 01DXF · DWG · PDF

    Upload

    The drawing arrives. SHA-256 dedupe, S3-stored, queued for the worker.

    • kcc-api · Axum
    • Postgres · jobs
    • Redis · kcc:jobs
  2. step 02layers · entities · features

    Parse

    DXF parsed, dimensions linked to geometry, features extracted, layers mapped to SEK groups.

    • kcc-worker
    • kcc-dxf · nom
    • spatial index
  3. step 03scraped + researched

    Price

    Quantities matched to СЕК codes. Prices pulled from the scrape cache or researched live via Perplexity + Opus.

    • BrightData proxy
    • OpenRouter sonar-pro
    • Opus 4.6 generation
  4. step 04КСС · Excel · PDF · CSV

    Export

    Grouped by СЕК, labour/material/overhead split, audit trail persisted. One endpoint per format, streaming.

    • kcc-report
    • rust_xlsxwriter
    • ОБРАЗЕЦ 9.1 compatible
01 · Upload

DXF · DWG · PDF

The drawing arrives. SHA-256 dedupe, S3-stored, queued for the worker.

// median end-to-end: 2m 38s// p95 time in worker: 1m 52s// sqlx::migrate! on API boot
Time budgets

The review screen tells you what needs attention.

  • Unclear quantitiesSent to review before export
  • Price sourcesShown beside the row
  • Estimator correctionsSaved for future jobs
  • Report formatsExcel, PDF, and CSV
  • Audit trailIncluded with the estimate