🌍Universal DocumentUniversal Document™
✦ All Pro features free during beta — no account required · no credit card · full access while we build ✦
← Back to UD Hub

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
Download ud-isdk-v1.0.zip →

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

AttributeTypeDefaultDescription
srcstringURL or path to .uds or .udr file
theme"light"|"dark"|"auto""auto"Colour scheme
langstringdoc defaultPreferred language code
show-chainbooleanfalseShow chain-of-custody panel
readonlybooleanfalseDisable editing for .udr files
Apache 2.0 · Universal Document™ is a pending trademark · hive@hive.baby