~220 MB CPU WASM 3 Chained Workers 0 Bytes Uploaded
About & Code

Standalone App & PWA

Launch Contract Desk on its dedicated origin to install it as an offline desktop or mobile PWA with .txt, .md, .markdown, .csv, and .json contract file handlers.

Open contract.webai.show ↗

Honest cache note: browsers isolate Cache Storage per origin, so contract.webai.show stores its own local ONNX weights (~220 MB). Staying on webai.show shares cached weights with the DistilBERT-NER, DeBERTa-v3, and DistilBERT SQuAD model pages.

Stage 1 · Entity NER (65.8 MB q8 · Apache-2.0)

onnx-community/distilbert-NER-ONNX · ORG/PER/LOC/MISC

Stage 2 · Clause Risk NLI (87.3 MB q8 · MIT)

Xenova/nli-deberta-v3-xsmall · 7-label risk posture

Stage 3 · Clause Q&A (67.0 MB q8 · Apache-2.0)

Xenova/distilbert-base-uncased-distilled-squad · Extractive spans

0 bytes uploaded. Load the 3 CPU WASM workers above to map parties, score clause risk, and extract due-diligence answers locally.

TXT · 0 clauses · 0 bytes uploaded
Document–
Risk Score (0–100)–
Parties & Venues–
Latencies & NaN–
Q&A Findings–

Clause × Risk Posture Matrix & Entity Map

Awaiting audit
Contract Risk Posture: Awaiting Audit Threshold τ = 0.50
Clause Liab. Renew IP Unilat. Arb. Data Term. Score

Stage 1 · Parties, Signatories & Jurisdictions

Awaiting Stage 1 NER

Live Clause Inspector

Select any clause
ORG Party PER Signatory LOC Venue QA Answer Span
Highlight: ready
    Edit or Paste Custom Contract Text (.TXT / .MD / .CSV / .JSON)

    Stage 3 · Due-Diligence Extractive Q&A

    0 findings

    Load Stage 3 (DistilBERT SQuAD) to extract exact due-diligence spans and logit margins.

    SQuAD v1.1 span + logit margin + token audit

    Due-Diligence Q&A Findings Ledger (Click clause badge to inspect span)

    Question Clause Extracted Answer Confidence

    Real Local Exports (Redline Memo · Formula-Safe CSV · JSON Snapshot)

    How Contract Desk Works

    Three audited CPU WebAssembly models chained strictly off the main thread — DistilBERT-NER (65.77 MB q8 · Apache-2.0), DeBERTa-v3 Zero-Shot NLI (87.25 MB q8 · MIT), and DistilBERT SQuAD v1.1 (66.98 MB q8 · Apache-2.0) — totaling ~220 MB with zero WebGPU required and zero bytes leaving your device.

    7-Label NLI Risk Matrix

    Each segmented clause is scored multi-label against 7 contractual risk hypotheses using DeBERTa-v3 entailment mapped dynamically from res.classNames, feeding an interactive posture dial and 0–100 risk index.

    CSS.highlights + Mark Fallback

    Pure character offsets from DistilBERT-NER and DistilBERT SQuAD paint directly onto text nodes via CSS.highlights and ::highlight() without mutating the DOM, falling back cleanly to semantic <mark> elements.

    Cancellable & OWASP-Safe

    Clause audits and 6-question due-diligence sweeps yield between clauses for instant mid-run cancellation, neutralize CSV spreadsheet formulas, and keep all weights inside the browser's shared cache.

    Show the code — segmentContractClauses() deterministic clause segmentation & numbering
    Show the code — computeClausePosture() scoring 7 risk labels into a 0–100 clause posture
    Show the code — aggregatePartiesAndJurisdictions() merging ORG/PER/LOC/MISC across clauses
    Show the code — escapeCsvCell() OWASP formula-injection neutralization for RFC 4180 CSV
    Show the code — formatRedlineMemoMarkdown() exporting escaped Negotiation Redline Memos
    Show the code — StageWorkerClient coalesced load, FIFO queue, and terminate-safe disposal
    Show the code — applyClauseHighlights() CSS Custom Highlight API + accessible <mark> fallback
    Show the code — registerContractDeskWebMcpTools() 2-arg WebMCP registration with AbortController