@gnolith/waystone
v0.2.1
Published
The accessible human interface and extension surface for Gnolith research Sites.
Downloads
577
Maintainers
Readme
Waystone
The accessible human interface and extension surface for Gnolith research Sites.
@gnolith/waystone provides the Gnolith application shell, seven-kind unified search, Resource/Annotation/Prompt workflows, search operations, Taproot knowledge browsing and maintenance UI, revision inspection, SPARQL workspace, browser-safe Site API client, compiled theme, and static plugin contract used by Workshop and future modules.
Waystone is a UI and protocol-consumer package. It does not access D1 or R2, project RDF, implement authentication or authorization, create App Router files, run MCP tools, or import Workshop. The host Site owns those systems and composes Waystone with its generated HTTP routes.
Headless and process-based consumers compose Gnolith's non-UI packages directly and must not import Waystone. Waystone belongs only in browser and rendered Site surfaces; persistence, process lifecycle, CLI, and container assembly remain outside this package.
Status
Waystone 0.2 is a pre-1.0 public API. Its isolated consumer fixture installs the exact package archive, builds representative routes, server-renders the public UI surfaces, and exercises the package-owned fixture plugin. Complete Site assembly and hosted acceptance belong to the Site host. See the dependency record and release evidence.
Install
npm install @gnolith/waystone @gnolith/taproot react react-dom @types/reactImport the precompiled CSS once in the generated Site layout:
import '@gnolith/waystone/styles.css';The host does not transpile Waystone source or scan it with Tailwind.
Public entry points
@gnolith/waystone— server-safe display components, protocol models, formatters, and public errors.@gnolith/waystone/client— browser-safe HTTP client, search, knowledge editors, revision controls, and SPARQL editor.@gnolith/waystone/plugin— plugin contracts, validation, registry, provider, and extension points.@gnolith/waystone/site— page-level application composition for generated routes.@gnolith/waystone/fixtures— representative entities, results, plugins, failures, and a mock client for development only.@gnolith/waystone/styles.css— compiled production CSS.
Every JavaScript entry has declarations. React, its public React 19 types, and Taproot are peers; React is never bundled. Waystone's declarations expose local structural Taproot protocol types, so importing the UI package does not resolve Taproot's persistence or RDF declaration graph.
Site composition
'use client';
import { createWaystoneClient } from '@gnolith/waystone/client';
import { createWaystoneRegistry } from '@gnolith/waystone/plugin';
import { GnolithHome, GnolithShell } from '@gnolith/waystone/site';
const client = createWaystoneClient();
const registry = createWaystoneRegistry([]);
export function Home() {
return (
<GnolithShell
registry={registry}
client={client}
title="Research Site"
subtitle="One bounded research project"
currentPath="/"
>
<GnolithHome
client={client}
summary={{ items: 18, properties: 7, statements: 64 }}
/>
</GnolithShell>
);
}Generated routes should create the client and registry once at module scope. Authentication can be supplied with getAccessToken; the package neither stores tokens nor logs them.
Guides
- API client
- Plugin authoring
- Components and knowledge workflows
- Search, content, and operations
- Styling and public design tokens
- Accessibility
- Codex Sites and vinext integration
- Upgrade policy
- Troubleshooting
- Release checklist
Development
npm ci
npm run check
npm pack --dry-runnpm run check formats, lints, type-checks, runs coverage and accessibility tests, builds declarations and CSS, verifies runtime and declaration graphs and tarball contents, compiles exact packed TS and TSX consumers with strict TypeScript 5.9, and enforces bundle budgets.
Compatibility
- React and React DOM:
>=19 <20 - React declarations:
@types/react >=19 <20 - Node for development:
>=22 - Runtime exports: ESM and Web APIs, with package verification rejecting Node and Cloudflare imports reachable from public entry points
- TypeScript consumers: strict projects on currently supported TypeScript 5.9+
- Taproot: optional
>=0.4.0 <0.5.0; browser-safe models and lossless adapters match the exact 0.4.0 search, Resource, Annotation, statement, and command contracts. - Workshop: optional
>=0.4.1 <0.5.0; exact 0.4.1 search usesPOST /api/workshop/search, Prompt CRUD/history uses/api/workshop/prompts, and administration usesGET/POST /api/workshop/search/admin.
Security
Waystone renders React text rather than untrusted HTML, treats external destinations as untrusted, and reports authorization decisions from the server without pretending client controls enforce policy. Report vulnerabilities according to SECURITY.md.
License
MIT
