@wdf-dev/viewer
v0.1.0
Published
Single-file HTML viewer for .wdf packages — zero installation, works offline.
Maintainers
Readme
@wdf-dev/viewer
The single-file viewer of WDF — Web Document Format. This package ships two prebuilt, self-contained HTML files — no external requests at runtime, ever:
viewer.html— the full WDF Reader: opens.wdfpackages, verifies integrity, shows the human view, the canonical AI layer, the embedded original, paged/print views — and converts HTML exports to.wdfentirely client-side (zero network).standalone.html— the template used to produce self-contained.wdf.htmldocuments (document + viewer in one file that opens in any browser).
Install
npm install @wdf-dev/viewerimport { readFileSync } from 'node:fs';
const url = new URL(import.meta.resolve('@wdf-dev/viewer/standalone.html'));
const template = readFileSync(url, 'utf8');Hosted Reader: https://wdf.dev (installable as a PWA; associates with .wdf files).
Spec: spec/wdf-core-0.1.md (CC-BY 4.0). Code is Apache-2.0.
