← Back to UD HubDownload ud-isdk-v1.0.zip →
Universal Document™ iSDK
Embed the Universal Document™ Reader in any web application. Three lines. No backend required. Handles rendering, expiry, revocation, clarity layers, and chain-of-custody automatically.
iSDK v1.0 — Download package
README · LICENSE (Apache 2.0) · sample.uds · integration guide
Three-line embed
Drop into any HTML page. No build step required.
<script src="https://ud.hive.baby/isdk/ud-isdk.js"></script> <ud-reader src="your-document.uds"></ud-reader> <link rel="stylesheet" href="https://ud.hive.baby/isdk/ud-isdk.css">
📖
Render any .uds or .udr file
Full block-level rendering — headings, paragraphs, lists, dividers — with correct typography.
✦
Clarity Layer switching
Built-in tabs for patient_summary, clinical, legal, and any custom clarity layer embedded in the document.
🔗
Chain-of-custody panel
Show the full provenance timeline: creation, sealing, translation, watermarking, revocation.
⏳
Expiry & revocation
Automatically checks expiry and revocation state. Shows a clear banner when a document is expired or revoked.
🌐
Multilingual
Switches between language streams embedded in the document.
🎨
Light · Dark · Auto
Respects system preference by default. Override with the theme attribute.
JavaScript API
const reader = document.querySelector('ud-reader')
// Load a document
reader.load('path/to/document.uds')
// Get metadata
const meta = await reader.getMetadata()
// → { title, format, status, expires_at, revoked, ... }
// Switch clarity layer
reader.setLayer('patient_summary')
// Events
reader.addEventListener('ud:loaded', e => console.log(e.detail))
reader.addEventListener('ud:expired', () => console.log('Expired'))
reader.addEventListener('ud:revoked', () => console.log('Revoked'))Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
| src | string | — | URL or path to .uds or .udr file |
| theme | "light"|"dark"|"auto" | "auto" | Colour scheme |
| lang | string | doc default | Preferred language code |
| show-chain | boolean | false | Show chain-of-custody panel |
| readonly | boolean | false | Disable editing for .udr files |
Apache 2.0 · Universal Document™ is a pending trademark · hive@hive.baby