Skip to main content
The SDK owns the data and the registry owns the drawing. @bijectionhq/bijection/react answers each read and mutation as the state a view draws; domain libraries ship no React components.

Install registry elements

Elements are presentation-only shadcn components for Bijection subjects (conversations, tool calls, requests, reviews, deliveries, workflow runs, datasets, files, notifications, documents, agents, automations, alerts, connections, extraction, sign-in and account management). Register the @bijection namespace once in a shadcn project, then add the elements you need:
Each element imports nothing from bijection or @bijectionhq/*. It declares the plain prop shapes it renders and reports user actions through callbacks (onSend, onReview, onApprove). Your app loads live data with the SDK hooks below, maps its facts onto those props, and wires callbacks to mutations.

View hooks in @bijectionhq/bijection/react

bijection/app.ts
src/Invoices.tsx
The hooks add no authority: each function’s allow, labels and guards decide what the reader sees and may do. Keep the arguments you pass stable, at module scope or with useMemo, because a watch starts again when their value changes. The registry’s file-bytes element includes useExactFile to read a citation’s bytes through the app’s protected delivery route and check its size and SHA-256. readExactFile performs the same read outside React. Place this component next to the installed file-bytes-read.ts helper.
cited-file.tsx