@byokit/ui has 486 recorded weekly downloads on npm, ranking #1906 of 2,762 tracked listings.
About @byokit/ui
Install
npm install @byokit/ui
· Latest release · All releases
Migrating from @byokit/ui-core? See the deprecated shim's migration guide.
Quickstart
npm install @byokit/ui
React is an optional peer dependency, needed only for the hooks (useSignIn, useRun, useApprovals,
useHerdrTree, useBlocked, useConnect, useAccounts, useModelPicker).
import { phaseOf, stepOf } from '@byokit/ui/phase';
import { describeRoute } from '@byokit/ui/route';
import { consentWords, linkWords, pairingView, qrMatrix } from '@byokit/ui/link';
// What the back end reports: a sign-in waiting on a typed code.
const phase = phaseOf({ ready: false, signIn: { state: 'waiting', via: 'code', code: 'ABCD-1234' } });
console.log(phase, stepOf(phase));
console.log(phaseOf({ ready: true, work: true }));
console.log(phaseOf({ signIn: { state: 'failed', why: 'busy' } }));
console.log(describeRoute('wss://home.tail1234.ts.net/link'));
console.log(describeRoute('ws://100.101.102.103:7777'));
console.log(consentWords({ hostName: 'Kitchen computer', role: 'control' }));
console.log(pairingView({ phase: 'compare', hostName: 'Kitchen computer', words: 'coast comet' }));
console.log(linkWords('offline', 'Kitchen computer'));
console.log(qrMatrix('hello').length, 'rows');
Output from running it with Node:
code 1
work
busy
Tailscale
Private network
Pair with Kitchen computer? This device will be able to see and change things on it, until you remove it there.
{
phase: 'compare',
title: 'Check Kitchen computer shows these two words, then say yes there.',
words: 'coast comet'
}
Can't reach Kitchen computer right now. This device keeps trying by itself.
25 rows
In React, useSignIn drives the whole sheet from three calls to your back end:
import { useSignIn } from '@byokit/ui';
import type { AccountView } from '@byokit/ui';
// Your back end's routes; the hook only needs these three calls.
declare const api: {
account(): Promise<AccountView | null>;
signIn(body?: { via?: 'code'; fresh?: boolean }): Promise<unknown>;
cancel(): Promise<unknown>;
};
export function useChatGptSheet() {
const s = useSignIn({ read: () => api.account(), start: (b) => api.signIn(b), cancel: () => api.cancel() });
// s.phase: what to draw. s.code / s.url: what to show. s.start({ via: 'code' }): "Having trouble? Use a code instead".
// s.cancel(), s.close(), s.keepWork(): the sheet's buttons. Leave `start` out when something else starts the
// sign-in: the sheet then only watches, and nothing begins as it opens.
return s;
}
API at a glance…
Description from the npm listing.
- typescript
- ai
- ai-sdk
- react-native
- web
- privacy
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (2)Similar npm AI SDKs plugins
All 20 @byokit/ui alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@byokit/ui. First seen Nov 2, 2026; last successful collection Nov 3, 2026. See the methodology.