Scan your whole stack
Are you using @reopt-ai/opt-shell?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.3.0
@reopt-ai/opt-shell was last scanned on 28 Nov 2026 at version 2.3.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.3.0 LATEST | 28 Nov 2026 | No rules fired |
| 2.2.0 | 24 Nov 2026 | No rules fired |
| 2.1.0 | 23 Nov 2026 | No rules fired |
| 2.0.0 | 22 Oct 2026 | Not shown |
Findings for v2.3.0. 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 2.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The runtime product-frame layer for apps built on opt-ui.
Solves problems that theme tokens alone cannot:
app shell structure, workspace recipes, page rhythm, empty/error/loading consistency,
and shared wrappers for opt-datagrid and opt-editor.
opt-shell is the product frame, not a replacement UI kit. opt-ui owns
primitives and visual components; opt-shell owns the frame around them:
manifests, policy + theme resolution, workspace recipes, state fallbacks,
adapter chrome, and inspect snapshots. Authoring-time helpers (scoring, rollout
audits, scaffold codegen) are build-only scripts or live in opt-cli — they are
not part of the production runtime.
| Area | Source | Public entry |
|---|---|---|
| Runtime components | src/components, src/provider, src/adapters, src/hooks |
@reopt-ai/opt-shell |
| Server-safe factory and contracts | src/create-shell-app.ts, src/defaults.ts, src/recipes.ts, src/tokens |
@reopt-ai/opt-shell/core |
| Managed draft definitions | src/managed-shell.ts |
@reopt-ai/opt-shell, @reopt-ai/opt-shell/core |
| Component doc metadata | src/meta.ts, src/components/_meta-*.ts |
@reopt-ai/opt-shell/meta |
From the consumer project root:
npx skills add reopt-ai/reopt-skills/opt-shell-install
Then ask your agent: Use the opt-shell-install skill to set up @reopt-ai/opt-shell in this project and verify the result. The skill detects
legacy @reopt-ai/opt-harness usage, distinguishes a new install from an
upgrade, idempotently updates the reopt marker block in AGENTS.md (or
CLAUDE.md), reads shell-llms.txt and this README, installs the required
opt-palette peer, and verifies recipe, policy, and adapter wiring. The source
of truth is
reopt-ai/reopt-skills.
Manual fallback:
bun add @reopt-ai/opt-shell @reopt-ai/opt-palette @reopt-ai/opt-ui
// lib/harness.ts
import { createShellApp } from "@reopt-ai/opt-shell/core";
export const appHarness = createShellApp({
id: "my-internal-tool",
label: "My Tool",
defaults: {
density: "comfortable", // "comfortable" | "compact"
contentWidth: "wide", // "narrow" | "normal" | "wide" | "full"
navigationMode: "sidebar", // "sidebar" | "stacked"
},
});
ShellProvider// app/layout.tsx
import { ShellProvider } from "@reopt-ai/opt-shell";
import { appHarness } from "@/lib/harness";
export default function RootLayout({ children }) {
return <ShellProvider manifest={appHarness}>{children}</ShellProvider>;
}
Pass your router's link component as linkComponent so shell links — nav
items, the top bar's brand, chips and icon buttons — navigate on the client.
Without it they are plain anchors and every click reloads the document.
"use client";
import Link from "next/link";
<ShellProvider manifest={appHarness} linkComponent={Link}>
{children}
</ShellProvider>;
ShellLinkProvider sets it for shell parts rendered outside a
ShellProvider. The component receives anchor props with a string href and
must render an <a>.
import {
ShellAppShell,
ShellCollapsibleNav,
ShellNavGroup,
ShellNavItem,
} from "@reopt-ai/opt-shell";
export function AppFrame({ children }) {
return (
<ShellAppShell
nav={
<ShellCollapsibleNav width={260}>
<ShellNavGroup label="Workspaces">
<ShellNavItem href="/users" active>
Users
</ShellNavItem>
<ShellNavItem href="/settings">Settings</ShellNavItem>
</ShellNavGroup>
</ShellCollapsibleNav>
}
stackedNavigation={<WorkspaceTabs />}
mobileHeader={<MobileMenuButton />}
>
{children}
</ShellAppShell>
);
}
mobileHeader can use useShellNav().open() to toggle the nav — the context is
shared with the shell via an internal bridge. When the resolved
navigationMode is stacked, stackedNavigation replaces the sidebar nav;
if no stacked slot is supplied, the sidebar remains as a safe fallback.
import { ListWorkspace, ShellSection } from "@reopt-ai/opt-shell";
import { ShellDataGridAdapter } from "@reopt-ai/opt-shell/datagrid";
export function UsersPage() {
return (
<ListWorkspace
header={<PageHeader title="Users" />}
toolbar={<FilterBar />}
>
<ShellSection title="Active users">
<ShellDataGridAdapter
rows={users}
columns={columns}
loading={isLoading}
empty={{
title: "No users",
description: "Create one to get started",
}}
/>
</ShellSection>
</ListWorkspace>
);
}
App frame
└─ ShellAppShell (nav + ShellCollapsibleNav)
Page content — pick ONE workspace per page:
├─ Data list / table → ListWorkspace + ShellDataGridAdapter
├─ Single resource → DetailWorkspace
├─ Content editing → EditorWorkspace + ShellEditorAdapter
├─ Overview / triage → DashboardWorkspace
├─ Landing / marketing → LandingWorkspace (or ShellLandingPage)
└─ Full-screen tool → ShellFullscreenToolSurface
Within a workspace:
├─ Content grouping → ShellSection
├─ Loading/empty/error → ShellStateBoundary
├─ Density-aware gaps → ShellSpacing
├─ Bottom action bar → ShellBottomBar
└─ Temporary side panel → ShellFlyoutAside
| Signal | Recipe | Why |
|---|---|---|
| Rows of records, DataGrid, filter/sort | list | Collection browsing is the primary action |
| Single resource, summary cards, metadata | detail | Inspecting one entity at a time |
| Rich content editing, save/draft state | editor | Authoring workflows need state management |
| Metrics, charts, activity feed, quick actions | dashboard | Overview and triage |
| Public-facing, hero sections, promotional | landing | Engagement and conversion |
Use selectRecipe() from @reopt-ai/opt-shell/core for programmatic selection:
import { selectRecipe } from "@reopt-ai/opt-shell/core";
selectRecipe({ hasDataGrid: true }); // → "list"
selectRecipe({ hasEditor: true }); // → "editor"
selectRecipe({ isPublicFacing: true }); // → "landing"
selectRecipe({ primaryAction: "inspect" }); // → "detail"
ShellProvider resolves policy from three layers:
runtime override → manifest defaults → framework defaults
The resolved policy controls:
| Policy field | Effect | Default |
|---|---|---|
density |
page and section spacing rhythm | comfortable |
contentWidth |
narrow / normal / wide / full max width |
wide |
navigationMode |
app-level sidebar or stacked nav framing | sidebar |
motionPolicy |
harness-managed motion allowance | system |
stateLabels |
shared loading, empty, and error fallback copy | English baseline |
panelBehavior |
sticky aside / sticky toolbar defaults | sticky aside |
adapters |
DataGrid and Editor adapter chrome | card |
theme |
inherited, generated, or promoted opt-ui theme | preset default |
Recipe widths remain the canonical fallback. An explicit policy override on
ShellProvider takes precedence over that fallback, so a managed runtime
preset can intentionally set a global content width without changing apps that
only declare manifest defaults.
The provider also emits inspect snapshots. ShellStateBoundary,
ShellDataGridAdapter, ShellEditorAdapter, nav, aside, bottom bar, header
stack, and AI runtime state report into that snapshot so @reopt-ai/opt-devtool
can show policy, adapter, layout, diff, and staleness state.
| Hook | Where | Purpose |
|---|---|---|
useShell() |
Inside ShellProvider | Manifest + resolved policy. Emits a dev warning if no Provider ancestor. |
useShellOptional() |
Anywhere | Same return shape as useShell() but silent fallback (no warning) when no Provider. Used by adapters / chrome that may render standalone. |
useShellNav() |
Inside ShellAppShell | Nav mode, collapsed, open/close/toggle |
useShellAI() |
Inside ShellProvider | AI runtime configuration injected via <ShellProvider ai={…}> |
useShellEditorAI() |
Inside ShellProvider | opt-editor AI bridge — auto-wires the AI transport into <Editor> props |
useShellDevtoolController() |
Inside ShellProvider | Reports adapter/layout state to the @reopt-ai/opt-devtool inspect panel |
0.2.0 note:
useShellLayout,useShellBreakpoint,useShellPageContext,useResizable,useShellCssVar,useShellDensityare removed. They had zero documented consumers; if you need any of them, please open an issue describing the use case.
All overlay/sticky elements use a documented scale (tokens/z-index.ts):
| z-index | Constant | Element |
|---|---|---|
| 10 | stackedHeader |
Sticky page headers (ShellStackedHeader) |
| 20 | bottomBar |
Fixed/sticky bottom bar (ShellBottomBar) |
| 40 | backdrop |
Overlay backdrops (nav + flyout) |
| 50 | navOverlay |
Collapsible nav overlay panel |
| 51 | flyoutOverlay |
Flyout aside overlay (above nav) |
Two modes via ShellThemeConfig (discriminated union):
Preset mode — uses a static opt-ui theme:
{ mode: "preset", preset: "default" }
Generated mode — produces tokens via the opt-palette engine:
{
mode: "generated",
palette: {
seed: "#0ea5e9",
harmony: "analogous",
radiusScale: "medium",
shadowIntensity: "subtle",
neutralTemperature: "cool",
},
}
Theme scope controls where the resolved theme lands:
| Scope | Behavior |
|---|---|
inherit |
no harness CSS is emitted; descendants inherit the global opt-ui theme |
override |
generated tokens are scoped under <div data-harness="..."> |
promote-global |
the harness pushes its theme into the global OptThemeProvider stack |
Components rely on CSS custom properties from @reopt-ai/opt-ui themes:
| Variable | Purpose |
|---|---|
--opt-bg |
Page background |
--opt-surface |
Card / panel surface |
--opt-border |
Border color |
--opt-text |
Primary text |
--opt-text-secondary |
Secondary text |
--opt-text-tertiary |
Muted text |
--opt-radius |
Border radius token |
| Package | Required | Notes |
|---|---|---|
react / react-dom |
Yes | ^19.0.0 |
@reopt-ai/opt-palette |
Yes | OKLCH color engine |
@reopt-ai/opt-datagrid |
With adapters only | For ShellDataGridAdapter (@reopt-ai/opt-shell/datagrid) |
@reopt-ai/opt-editor |
With adapters only | For ShellEditorAdapter (@reopt-ai/opt-shell/editor) |
| Import path | Use case |
|---|---|
@reopt-ai/opt-shell |
Client-side React components, hooks, adapters, managed shell helpers, runtime types |
@reopt-ai/opt-shell/core |
Server-safe factory, policy resolution, recipe metadata, selectRecipe, DTCG token import/export, contract types |
@reopt-ai/opt-shell/meta |
Component doc metadata for the docs registry |
Workspaces are the primary contract:
DashboardWorkspace, ListWorkspace, DetailWorkspace, EditorWorkspace,
and LandingWorkspace are the primary wrappers around ShellPage.header plus children or content at the TypeScript
level. The canonical landing recipe itself only requires content in
src/recipes.ts, but the current LandingWorkspace wrapper keeps a header
prop for API consistency.filters belongs to the list recipe. Other recipes should avoid filter
chrome even if the current base prop type does not fully prevent it.LandingWorkspace omits filters and aside; use ShellLandingPage when
you need hero / CTA / stacked public-page chrome instead of workspace slots.src/recipes.tsFind 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.