Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@reopt-ai/opt-shell

Latest version: v2.3.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: reopt-eric
4 Versions
424 Downloads

Scan summary

@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.

  • Releases: 4 versions; the latest 3 were published within 6 days (23–28 Nov 2026).
  • Findings: No rules fired in version 2.3.0.
  • Downloads: 424 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 2.3.0

Findings

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.

README

The publisher’s own README, as collected from the registry.

@reopt-ai/opt-shell

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.

Module map

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

Agent skill setup (recommended)

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

Getting Started

1. Define your harness manifest
// 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"
  },
});
2. Wrap your app with 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>.

3. Build your app shell
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.

4. Choose a workspace recipe and build your page
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>
  );
}

Which component do I need?

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
Recipe selection guide
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"
Runtime ownership

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.


Hooks

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, useShellDensity are removed. They had zero documented consumers; if you need any of them, please open an issue describing the use case.


z-index scale

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)

Theme configuration

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

Prerequisites

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
Peer dependencies
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)
Entry points
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

Slot contract

Workspaces are the primary contract:

  • DashboardWorkspace, ListWorkspace, DetailWorkspace, EditorWorkspace, and LandingWorkspace are the primary wrappers around ShellPage.
  • Workspace wrappers require 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.
  • Recipe defaults (width, gap, sticky aside, slot contract) live in src/recipes.ts

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @reopt-ai/opt-shell

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229