The project landing page, document inspector and public demos for Ternent's five libraries. The website consumes published npm packages and exercises their current contracts; core source is not aliased into the application.
Use Node 26.13.1 and pnpm 12.21.0, pinned in the version files and package manifest.
pnpm install --frozen-lockfile
pnpm devpnpm check
pnpm preview --port 4174pnpm check runs formatting, lint, Vue/TypeScript, website unit tests, actual-library
runtime tests and the production build. The build also verifies generated pages,
manifest links, icons, initial navigation scripts and service-worker precache assets.
Browser interaction and accessibility walkthroughs are Sam's; pnpm test:e2e provides
Playwright checks for the current routes and production preview.
Vue, Vue Router, Tailwind and Vite SSG provide the site. Vite+ supplies the shared
Vite/Vitest, formatter and linter. The Vite/Vitest package overrides match Vite+'s
bundled versions; Vue SFC checks use vue-tsc with the maintained TypeScript 6 API.
Website markup, brand SVG and palette values are owned here. No Ternent UI package
or theme generator is required.
| Package | Reviewed version |
|---|---|
@ternent/identity |
0.7.0 |
@ternent/armour |
0.4.0 |
@ternent/ledger |
0.3.0 |
@ternent/concord |
0.4.0 |
@ternent/seal |
0.6.0 |
These are exact pins with a committed lockfile. renovate.json follows the next
dist-tag for the five libraries, groups their updates and requires review. Enable the
Renovate GitHub App for ternent/www to activate those update PRs; configuration alone
does not run an updater. The website CI checks the resulting contracts before a
release is accepted. No npm access token is needed to install these public packages.
| Path | Content |
|---|---|
/, /idea, /architecture |
Overview, the idea and architecture |
/identity, /armour, /seal, /ledger, /concord |
Building-block sections |
/open-source, /about |
Source and working together |
/examples |
Signed document, readers, plaintext and encrypted notes |
/examples/json, /examples/history, /examples/verification |
Legacy redirects to standalone Inspector |
/examples/seal |
Sign-once Seal proof verification example |
/inspect |
Standalone JSON document inspector |
/inspect/entries, /inspect/history, /inspect/json, /inspect/verification |
Read-only document views |
/demo/identity |
Local identity demo |
/demo/identity/create, /demo/identity/recover, /demo/identity/login |
Identity modes |
Story routes share one page and navigate to its sections. Scrolling replaces the URL
without accumulating history entries. Legacy hashes resolve to clean paths. Unknown
routes return to /. Tool navigation retains the current example session and unfinished work.
The Tools menu and footer link directly to Notes, Inspector, Seal content verification and Identity. Each tool has a closed-by-default Build with this guide above its demo. It includes exact package pins from the manifest, a tested minimal TypeScript example, matching versioned API references and a static agent brief. Clipboard failure reveals selectable code or brief text. Guides render example source as text and do not execute it. Opening or closing a guide keeps the demo mounted; copying never reads the current file, reader context, draft, recovery phrase or credentials.
Earlier /playground URLs redirect to /examples. Former playground/examples inspector paths and hashes redirect to the standalone /inspect views.
/examples shares the site header, footer, content width and tool-page heading with Inspector. Its contained notes app comes with readers, collections, an entry list and an editor. A compact bottom strip owns auto-commit, staged changes, Commit and Discard. JSON, history and verification live in the standalone Inspector. Inspect document transfers a committed snapshot and the selected reader's inspection in memory; unfinished editor text and drafts stay in Examples.
src/modules/examples/model.ts owns event validation and a deterministic reducer. Note
identifiers are scoped to their collection. The model accepts Alice and Bob as writers
of plaintext/shared notes and Alice as the writer of her notebook. These are demo
application rules, independent of encryption keys. Every reader uses the same model
configuration for the session; independently opened files never load this model.
session.ts owns demo identities, collection-to-permission selection and the optional
auto-commit convenience. Every change uses Concord's stage then commit; a draft
holds plaintext or one permission. Concord owns permission discovery, grant recovery
and application replay. Ledger owns signed history and verifies original canonical bytes.
Suggested review:
- Read Plaintext notes as every reader. Anyone holding the file can read those notes; the demo model allows Alice and Bob to edit them.
- Read Shared notes as Alice and Bob, then as Eve and Public view. The latter readers have no granted keys. Public view uses a disposable identity without grants.
- Open Alice's notebook as Alice and grant Bob the key. Bob can then read historical notes, but the model still prevents him from editing that collection. Grants cannot be revoked; future confidentiality changes require another permission.
- Disable auto-commit and stage a change. Reader/collection changes and grants are disabled until Commit or Discard. Inspect and export still use committed history.
- Inspect a committed snapshot, navigate between tools and return to unfinished editor text or staged work. Reader state is supplied only for a matching verified document, head and declared model. Protected batch contents are not inferred from that state.
- Export a file and open it independently in Inspector. It verifies without reader keys or a model. Alter a copy and reopen it to browse untrusted evidence and the error.
Demo identities and drafts stay in memory. This is a single-tab host simulating readers, not isolation between real users. Reload clears keys and work. Exports contain committed history with encrypted grants, without private identity backups or reader context. Unreadable counts describe encrypted batches, never event counts or distinct notes. Earlier group-based exports are not migrated or replayed as trusted notes.
Homepage calls to action open a working scenario rather than an empty tool:
- Identity →
/demo/identityfor the existing create/recover/unlock flow. - Armour →
/inspect/entries?example=notes&focus=encrypted-payload. - Ledger →
/inspect/history?example=notes&focus=latest-commit. - Concord →
/examplesfor editable plaintext and encrypted notes. - Seal →
/examples/sealfor a real@ternent/sealfile proof.
The Notes inspection preset generates a separate signed document in this tab and opens it without reader context. Semantic focus resolves to the generated record IDs. Tabs and browser navigation keep the preset; selecting another record clears its preset focus. Refresh/new tabs create a fresh instance of the same scenario, not the same signed bytes. URLs contain only known preset/view/focus names, not file contents, signing keys or reader reports. Unknown presets cannot load code or remote documents.
The preset and the ordinary file inspector have two separate in-memory contexts.
“Your files” returns to the current imported file; opening a homepage preset does not
replace that file or change unfinished edits/staged events in the notes application.
Close on the preset returns to Your files. Ordinary /inspect stays a file-opening tool.
The Seal example signs the initial UTF-8 bytes once with a disposable local identity. Editing the text invalidates the displayed result until verification runs again. Verification calls Seal's public API and reports content-hash and proof-signature checks separately, without treating the included key as a trusted person. Restore never re-signs. Its content/proof stay in memory across navigation and clear on reload. This does not add Seal proof import/verification to the Ledger document inspector.
Open /inspect to drag in a JSON file, choose a file or paste JSON. It shares the
site header, footer and content width. Once opened, the document has a compact
file toolbar and view navigation. File details live in Overview; document views
use normal page scrolling with bounded source previews. The tool accepts
UTF-8 text up to 16 MiB and keeps it in memory. Navigation between tools retains the
opened file; Close or reload clears the session. File contents are not uploaded,
stored in browser storage or executed. Download original returns the original bytes.
The JSON browser supports arbitrary JSON, with lazy expansion, bounded value previews and paged children. The parsed view uses JavaScript number semantics and last-value duplicate-key handling; Source always retains the exact input. Malformed JSON remains available as source, without a parsed or trusted view.
Ledger version 2 documents use the published openLedger(originalBytes) interface.
Canonical bytes, hashes, signatures and linkage must all pass before verified history
or application context is displayed. The Inspector does not normalize or repair input.
Valid signatures establish integrity against included keys, not personal trust,
freshness or application validity.
The website owns record presentation. When verification fails, safely readable v2 records remain available as explicitly untrusted evidence. Source-position locators identify them; verified commit/entry IDs, head and partial verification counts are not invented. Unknown versions and earlier formats remain available through JSON and source.
Concord declarations, permission records, grant targets and plaintext batches are shown as recorded. The Inspector does not independently implement Concord's acceptance rules, load models or recover keys. Application replay is labelled not run unless the example supplies its matching committed reader result in memory. That result shows state, accepted permissions/grants, unreadable batches and reader-relative rejections. It does not expose keys, unfinished drafts or reconstructed guesses about encrypted events.
src/modules/inspector owns shared record, history, source and verification presentation.
The host route owns the separate notes preset. Files and reader context stay in memory;
original downloads contain only the original bytes. Both tools share ToolPage, standard
navigation and the existing light/dark palettes. Tests cover signed and tampered files,
foreign models, duplicate keys, byte preservation, malformed records, escaped content,
file-open races, route navigation and preservation of unfinished work.
The separate identity demo keeps an encrypted identity in browser local storage.
Identity supplies mnemonic recovery and key derivation; Armour supplies age-compatible
passphrase encryption. Explicit unlock is used in both development and production. Passphrase encryption and
decryption run in a dedicated browser worker; Node tests use the same byte/armor
implementation directly. The version 2 identity backup and mnemonic derivation are
preserved.
Existing envelopes with the earlier rage metadata label remain readable; new
writes use age. No identity material is sent to a server.
Tools use the site's font, header, footer and palette tokens for a consistent public interface. Notes keeps the list visible and offers an editable blank note in an empty collection. Inspector places raw records behind disclosures and starts document structure open for ordinary JSON, so unsupported files remain immediately browsable. Identity shows the actual generated phrase length (12 words by default) and accepts valid 12- or 24-word recovery phrases. Authenticator QR codes retain a white backing for scannability in both themes.
Run pnpm dev or preview the production build. Check these flows in light and dark
mode at desktop and narrow widths. Browser, visual and accessibility review remains
manual; the automated checks do not establish these results.
- Open the homepage and use each package action and the Tools menu. Confirm section navigation, prepared Inspector focus, standard header/footer and keyboard focus.
- Open Examples while its document is generating, then try every reader and collection. Check the visible note list, reader selector, collection tabs, protected empty states and read-only editor controls. Grant Bob Alice's notebook key: historical notes become readable while editing stays disabled. Stage a change with auto-commit off; reader/collection changes and grants stay disabled. Inspect and export committed history, return to the draft, then try Commit and Discard. Keep unfinished editor text while navigating between tools. If saving fails, keep the editor content, review current committed history in Inspector, then return before retrying. The history refresh must finish before writing resumes.
- Open an exported document in Inspector and visit every view, filter entries, follow commit links and recheck. Open a tampered copy: untrusted records remain browsable, verified IDs/head are unavailable and application replay is not run. Try malformed JSON, an older/unknown Ledger version, ordinary JSON, an oversized file and a multiple file drop. Confirm the relevant error/unsupported state, original source/download, retained previous file on failed opens and empty state after Close.
- Create an identity, check password confirmation errors and recovery-word confirmation, then lock/reload, try a wrong password and unlock. Repeat with authenticator enabled, checking a wrong code. Recover with saved words and compare the public key. Confirm busy/disabled states and that the page remains responsive during passphrase work.
- Open Seal and wait for initial verification. Edit the text: the prior result clears. Verify the changed content: its hash fails while the original proof signature passes. Restore and verify again, then navigate away and back to confirm session preservation.
- Open help with hover, keyboard focus and a tap. Check Escape and moving focus away, readable placement near screen edges, and that help never hides a required result or warning. Open the document structure, raw entry, commit and Seal proof disclosures. Document structure starts open for ordinary JSON and collapsed for signed files. Confirm that long source previews scroll within the normal scrolling page. Leave Identity partway through password setup, visit another tool and return: the setup and phrase must remain intact.
- Open Tools with mouse, keyboard and touch. Check all four descriptions, one current tool highlight, Escape focus return and the narrow-screen menu. On each tool, open Build with this, expand its code and brief, copy each action, follow its API links and close with Escape or Back to the demo. Try clipboard permission denied/unavailable: code and brief should become selectable with useful feedback. Keep a Notes draft, an Inspector file, edited Seal content and unfinished Identity setup while opening and closing each guide. Confirm each survives, with no current data in the brief.
| Area | Files |
|---|---|
| Landing copy and sections | src/routes/home/RouteHome.vue |
| Architecture diagram | src/routes/home/ArchitectureMap.vue |
| Header, footer and section tracking | src/App.vue |
| Tool navigation | src/components/HeaderTools.vue, src/app/config/tools.ts |
| Build guides and runnable examples | src/components/BuildGuidePanel.vue, src/modules/build-guides |
| Route paths and subdomain mappings | src/routes/home/navigation.ts |
| Examples | src/modules/examples, src/routes/home/RouteExamples.vue |
| Local identity | src/modules/demo-identity, src/routes/demo/identity |
| Site palettes and styles | src/themes.css, src/style.css, src/story.css |
| App metadata and package pins | src/app/config/app.config.ts, src/app/config/packages.ts |
| Titles and canonical URLs | src/app/config/page-seo.ts |
| Static build and PWA | vite.config.ts, scripts/verify-dist.mjs |
GitHub Actions runs one pnpm check job on pull requests and main. Cloudflare
Workers Builds installs the frozen lockfile, runs pnpm build, then uploads dist/.
Wrangler uses wrangler.jsonc for an assets-only deployment with clean HTML URLs
and the application's unknown-route fallback. It does not detect a framework or
rebuild the site. No Cloudflare Vite plugin or server Worker is needed.
Use these Workers Builds settings with the repository root as the root directory:
| Setting | Production | Staging |
|---|---|---|
| Worker | ternentdotdev |
staging |
| Build command | pnpm build |
pnpm build |
| Deploy command | npx wrangler@4.168.0 deploy --env "" |
npx wrangler@4.168.0 deploy --env staging |
| Preview command | npx wrangler@4.168.0 versions upload --env "" |
npx wrangler@4.168.0 versions upload --env staging |
Check the deployment configuration without publishing:
npx wrangler@4.168.0 deploy --env "" --dry-run
npx wrangler@4.168.0 deploy --env staging --dry-runvercel.json retains that host's clean URLs, application fallbacks, security
headers and service-worker revalidation. Other hosts need equivalent handling.
Publishing the live site is a separate review action.
The suite subdomains (identity, armour, seal, ledger, concord) replace their
root URLs with the matching route on https://ternent.dev. Explicit paths, queries
and hashes carry across; localhost and preview hosts are untouched. This redirect
runs before rendering. Initial navigation preserves direct section links and saved
scroll positions without a visible jump.
The production service worker precaches site assets and generated pages and checks for updates. Offline availability depends on the browser's existing cache.