Scan your whole stack
Are you using @roughbook/ui?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.4
@roughbook/ui was last scanned on 28 Nov 2026 at version 0.4.4. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.4 LATEST | 28 Nov 2026 | No rules fired |
| 0.4.3 | 28 Oct 2026 | No rules fired |
| 0.4.2 | 25 Oct 2026 | No rules fired |
| 0.4.1 | 15 Oct 2026 | Not shown |
| 0.4.0 | 15 Oct 2026 | Not shown |
Findings for v0.4.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.4.4; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Roughbook's presentational components, shared by the web (this repo) and the studio's local UI
(roughbook-studio/ui, a Vite + React app). They take data as props, and get everything else
(links, navigation, actions) from the host app through one context. Nothing here imports
next/*, a server action or the filesystem.
Wrap the app in UiHostProvider:
import { UiHostProvider, type UiHost } from "@roughbook/ui";
const host: UiHost = {
Link: (props) => <a {...props} />,
navigate: (href) => router.go(href),
previewSrc: ({ page, component, iteration }) => `${devUrl}/rough-preview/${page}/${component}/${iteration}`,
// Optional: a still picture of each iteration, for cards.
thumbnailSrc: ({ page, component, iteration }) => `/thumbnails/${page}/${component}/${iteration}`,
actions: {
rejectIteration: async (form) => post("/api/reject", Object.fromEntries(form)),
// ...
},
};
<UiHostProvider host={host}>{app}</UiHostProvider>;
Link renders links within the app: next/link on the web, an anchor elsewhere.navigate moves to another screen, as Compare does when an iteration is removed.previewSrc is the address that renders one iteration on its own, in Compare.thumbnailSrc, optional, is the address of a still picture of one iteration, which cards
show. A host without it shows each card live through previewSrc. The web passes its thumbnail
route; a card whose picture is missing or fails shows its name and a StatusDot.actions are what the designer may do. Form actions get the form's fields, always with
project, page, component and iterationId; UiActions in src/host.tsx lists the rest
for each. A control whose action is left out is not shown, so a host offers only what it
supports.Links follow the web's paths under each component's base: ${base}/<iteration>,
${base}/iterations and ${base}/iterations/compare?ids=<id>,<id>. A host with its own router
uses the same paths.
Styles are Tailwind v4 utilities on Roughbook's shell tokens. Import the theme after Tailwind; it also tells Tailwind to scan this package:
@import "tailwindcss";
@import "@roughbook/ui/theme.css";
Set --font-sans, --font-display and --font-mono on the page (the web uses next/font:
Inter, Space Grotesk and IBM Plex Mono).
IterationCard, PreviewCard and the PreviewPicture both draw (a
thumbnail, or live for a stage: the scaled frame that runs the design), Stage,
AppPreview (an app-mode iteration through the repo's dev server, with the screenshot
fallback), PreviewFrame and PreviewSurface (the one preview frame of the frameworks plan:
a live page, the latest rendered images or the studio's own server's page under the same
chrome, with the environment's viewports and variants, the iteration's state and progress,
Reload, Open and Start the app for a page, Render again and On the device for images; frames
load only while on screen, four at most; the pure parts are importable from @roughbook/ui
without JSX: frameStatus, previewAddress and the variants' query parameters, termLabel for
the stack's words beside Roughbook's, fitScale, shouldReload, noteSeen, liveSet,
frameControls and snapshotImageName), LineageTree, CompareView (whose viewports and
frame let a host draw each column with its own frame), and
IterationInspector: Direction, Hypothesis, Review and Notes open, the rest under a native
"Details", and no row for what is not known. The host passes what it knows and its own controls
as controls (review, notes, and the studio's run, tests and screenshots); inspectorRows(input)
is the same split without JSX.SelectConfirmDrawer, RejectDrawer, ForkDrawer, ReviewButton (the review
drawer and its history), IterationNotesForm, ReviewPrompts. Ratings and Compare's likes and
dislikes are no longer given (the Learning audit, 2026-11-02): RatingBadge shows the ratings
already recorded, and the review drawer's history keeps the earlier Compare notes.PromotePanel, InteractiveResultPanel.Drawer (drawn on the page's body once hydrated, so no layer of the page covers it), Field, TextInput, Notes, Section, ChipSelect,
SaveSectionButton, ToggleButton, DeleteConfirmForm, ReadinessPill, ReadinessList.HelpTip (a ? that opens its children on click or tap, where an explanation goes
instead of a sentence on the page) and StatusDot (a state as a dot, its word in the tooltip and
aria-label). iterationGlyph(iteration, selectedNumber) picks an iteration's dot: selected,
making, failed, rejected, promoted or none.Canvas, a project's pages as sections, components as frames and iterations as
cards, moved as one container: pan with space-drag, middle-drag, a drag or two-finger scroll,
zoom with a pinch or Ctrl-wheel; Shift 1 fits everything, Shift 2 the selection, arrows move
the selection, Enter goes in or opens, Esc comes out, / goes to the prompt and L to the
list. It draws only what is on screen, as a role="grid" of links. The host owns the
selection and gives the selection's actions (SelectionToolbar, selectionToolbarItem) and
the prompt (PromptBar, a <form> whose action comes from the host). CanvasList is the
same canvas as a list, which a phone always shows; CanvasSection, CanvasFrame,
CanvasCard, CanvasFold and CanvasDesignSystem are its pieces. useContextPanel opens
the panel from a host's own control. Canvas cards pass prefetch={false} to the host's Link;
a host of plain anchors drops it. With cardView and onCardViewChange the canvas filters and
sorts its cards and draws CanvasFilter (decision, generation, sort) beside the zoom controls
and above the list; in the composite's shelf, the selected card's parent and children take a quiet
ring and its caption adds "From " (shelfFamily), with no lines; controlsRef gives a host CanvasControls (select, revealing a card folded away or
filtered out, zoom, fit, list).CommandPalette, ⌘K or Ctrl K or its button: a field, the commands a query finds
(matchCommands), arrows, Enter and Esc. The host gives the commands (PaletteCommand: id,
label, group, hint, keywords, quiet) and onRun; showKeys={false} leaves ⌘K to the button's
title. A page with no bar puts it in Stage's palette (first among the header's controls, and
beside Exit fullscreen); Stage's and CompareView's controlsRef (StageControls,
CompareControls) let its commands choose the width and the rest, and ReviewButton opens from
outside with open and onOpenChange.@roughbook/ui/iteration-status
(statuses, rejection reasons, refinement presets, generation states),
@roughbook/ui/reviews (review fields, checks and decisions), @roughbook/ui/canvas
(CanvasInput, layoutCanvas, zoomLevel, visibleItems, fitRect, neighbour,
focusFromPath / pathForFocus between a canvas route and its focus, the card view
(CardView, cardMatches, cardOrder) and a card's family (lineageOf, shelfFamily)) and
@roughbook/ui/commands (matchCommands).The package ships TypeScript source, so its consumer compiles it: Next.js does for workspace
packages, and Vite does for the studio's UI, which is bundled into the studio package.
npm run type-check -w @roughbook/ui checks it without the web's @/ paths.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.