Which ODF elements each maturity tier of @awacloud/odf types, and which stay in the preserve-unknowns _extras carry-bag. No prerequisites: this page is a map of the surface, not a how-to.

@awacloud/odf ships its surface in maturity tiers that mirror @awacloud/ooxml. Each tier is exercised by the test suite; later tiers extend (but do not break) earlier ones via _extras slots and opt-in modules.

Core L0 — minimal .odt

  • xml, odfErrors, pkgMimetype, pkgManifest, pkgPackage
  • odfMeta, odfSettings, odfStyles
  • textParagraph, odt

Goal: round-trip an empty .odt containing a single <text:p>Hello, world.</text:p>.

Core L1 — enriched ODT

Adds typed headings, lists, sections, bookmarks, fields, tables, draw frames/images, automatic / page-layout / master-page styles, number formats: the structures most .odt files LibreOffice writes are made of.

Core L2 — ODS + ODP basics

Adds ods (multi-sheet spreadsheets, typed cells, OpenFormula prefix) and odp (slides with placeholders, frames, notes).

Core L3 — extended coverage

Adds:

  • textTracked — <text:tracked-changes> + inline change markers.
  • drawShape — typed draw:rect, draw:circle, draw:ellipse, draw:line, draw:polyline, draw:polygon, draw:path, draw:custom-shape (with draw:enhanced-geometry).
  • chartChart — <chart:chart> root + content.xml helpers.
  • mathMath — opaque MathML fragment preservation.
  • odpAnimations — anim:* trees + presentation:transition.
  • formForms — <office:forms> + typed controls.
  • dr3dScene — 3D scenes (cube, sphere, extrude, rotate, light).
  • odfMc — office:version introspection.

Goal: a structural round trip of the long tail of typed elements met in real documents — without yet typing every attribute. What the written files are worth to an external validator, and how the readers behave on third-party files, is measured in Measured coverage below.

L4 — publication-ready (current)

L4 does not change L3's functional surface but consolidates publication readiness: error codes typed by origin (odf/parse-error/<part>), ContractError for API-contract violations, shared _shared/* helpers, name-indexed extension hooks, a security section in the guide, licensing metadata in package.json/LICENSE. The finalisation changes are summarised in the package CHANGELOG.md (the working audit documents of that pass are not shipped).

Extras (opt-in, already delivered)

29 opt-in modules shipped across four waves (P0/P1/P2/P3) that augment the core types via _extras. Loaded explicitly via .use(...); zero impact on the core bundle size. See docs/api/README.md for the full list and extending.md for the usage pattern.

Measured coverage

Generated from coverage/scorecard.json (format office-scorecard/v1) in the repository, written by the unpublished tool tools/office-scorecard. Each figure names its suite and version, the UTC day and the commit measured, and the command that replays it; a figure is what was measured on that suite, not a claim of conformance to a standard. Low results are published as measured.

Code coverage

Suite Result What is measured Measured Replay
bun-coverage-src bun 1.3.13 lines 95.80 %, functions 96.06 % (mean of 81 source files) the coverage gate's model over the declared basis (src/**) 2026-10-26, 976d3b35e bun cli.ts office-scorecard axis-a --pkg odf

Conformance suites

Suite Result What is measured Measured Replay
tracked-changes-odt poi@REL_5_5_1+libreoffice@26.8.0.3 6 / 11 every wild odt whose content.xml holds a text:changed-region is read, written with the odfvalidator round trip and read again; it passes when the count of every change element (text:changed-region, text:insertion, text:deletion, text:format-change, text:change, text:change-start, text:change-end) of content.xml is unchanged and the second read's body deep-equals the first's (a model fixed point); a throw fails it 2026-10-27, 9d987140e bun cli.ts office-scorecard axis-b --suite tracked-changes-odt
tracked-changes-odt-elements-in-runs poi@REL_5_5_1+libreoffice@26.8.0.3 11 / 11 every wild odt whose content.xml holds a text:changed-region is read with odt.read(bytes, { framesInRuns: true, elementsInRuns: true }) (the opt-in that keeps every untyped inline element, a change mark among them, at its place), written from that model as the odfvalidator round trip writes, and read again with the same options; it passes when the count of every change element (text:changed-region, text:insertion, text:deletion, text:format-change, text:change, text:change-start, text:change-end) of content.xml is unchanged and the second read's body deep-equals the first's (a model fixed point); a throw fails it 2026-10-27, d443b1fc5 bun cli.ts office-scorecard axis-b --suite tracked-changes-odt-elements-in-runs

Output validity, judged by an external validator

Suite Result What is measured Measured Replay
odfvalidator odfvalidator@0.13.0 16 / 16 odfvalidator 0.13.0 (ODF Toolkit, conformance mode, the schemas of the ODF version each file declares) reports no Error and no Fatal message for the written file (warnings are recorded, not failing); a round trip (read, then write with the same package) counts only when the validator reports none for its source too — a source with errors, or one the writer refuses with a typed error, is skipped with the reason; documents: 17 (12 written, 5 round trips); 1 case not run, each with its reason in the scorecard 2026-10-24, c98070672 bun cli.ts office-scorecard axis-c --suite odfvalidator
odfvalidator-tracked-changes odfvalidator@0.13.0 0 / 0 odfvalidator 0.13.0 (ODF Toolkit, conformance mode, the schemas of the ODF version each file declares) reports no Error and no Fatal message for the written file (warnings are recorded, not failing); a round trip (read, then write with the same package) counts only when the validator reports none for its source too — a source with errors, or one the writer refuses with a typed error, is skipped with the reason; documents: 11 (0 written, 11 round trips); 11 cases not run, each with its reason in the scorecard 2026-10-28, c9cecc9f0 bun cli.ts office-scorecard axis-c --suite odfvalidator-tracked-changes

Robustness on wild and pathological inputs

Suite Result What is measured Measured Replay
libreoffice-odf libreoffice@26.8.0.3 661 / 661 ok per file, the odf reader of the file kind (odt, ods, odp) reads it; ok when it returns or throws an error of the package's own hierarchy (OdfError) within the budget; a failure is an untyped throw, a hang, memory past the cap or a crash of the child; budget: 10 s per case for an input up to 10 MB, plus 1 s per further MB (hard cap twice the budget); 1 GiB peak memory 2026-10-16, 8f2489052 bun cli.ts office-scorecard axis-d --suite libreoffice-odf --container