npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@osdk/cbac-components

v0.10.0

Published

> **DEPRECATED / RELOCATED**: The CBAC components have been merged into [`@osdk/react-components`](https://github.com/palantir/osdk-ts/tree/main/packages/react-components) and are now exported from `@osdk/react-components/experimental/cbac-picker`. This p

Readme

@osdk/cbac-components

DEPRECATED / RELOCATED: The CBAC components have been merged into @osdk/react-components and are now exported from @osdk/react-components/experimental/cbac-picker. This package is kept in the repository for legacy reference only and is no longer the source of truth. New consumers should import from @osdk/react-components. See packages/react-components/docs/CbacPicker.md for usage.

Beta Release: This package is currently in beta. Please use the latest beta version for the most up-to-date features and fixes.

React components for managing classification-based access control (CBAC) markings. CBAC markings control who can access data — each piece of data can be tagged with markings from different categories, and the combination determines its access restrictions.

These components are OSDK-aware — pass in marking IDs, and they handle data loading, restriction computation, and banner display automatically. Built on top of @osdk/react.

Installation

If your tooling already installs dependencies, skip this section.

Use whichever package manager your project uses:

# npm
npm install @osdk/cbac-components@beta

# pnpm
pnpm add @osdk/cbac-components@beta

# yarn
yarn add @osdk/cbac-components@beta

Peer Dependencies:

# npm
npm install react react-dom classnames @osdk/react @osdk/react-components

# pnpm
pnpm add react react-dom classnames @osdk/react @osdk/react-components

# yarn
yarn add react react-dom classnames @osdk/react @osdk/react-components
  • react, @types/react, react-dom - React 17, 18, or 19
  • classnames - Utility for conditionally joining CSS class names
  • @osdk/react - OSDK React hooks for data fetching
  • @osdk/react-components - Shared primitives (Dialog)

Prerequisites:

  • A configured OSDK client
  • An OsdkProvider wrapping your application

Setup

App Setup

REQUIRED: Wrap app with OsdkProvider:

import { createClient } from "@osdk/client";
import { OsdkProvider } from "@osdk/react";

const client = createClient(/* config */);

function App() {
  return <OsdkProvider client={client}>{/* components */}</OsdkProvider>;
}

CSS Setup

Add the CBAC component styles to your application's entry CSS file:

@import "@osdk/cbac-components/styles.css";

If using CSS layers with @osdk/react-components:

@layer osdk.styles;

@import "@osdk/react-components/styles.css" layer(osdk.styles);
@import "@osdk/cbac-components/styles.css" layer(osdk.styles);

Components

| Component | Description | Documentation | | ------------------ | ----------------------------------------------------------------------------- | ----------------------------- | | CbacPicker | Inline marking picker with selection, restrictions, and classification banner | Guide | | CbacPickerDialog | Dialog wrapper for the picker with confirm/cancel and validation | Guide |

Component Architecture

This package follows the same layered architecture as @osdk/react-components:

OSDK Component Layer (e.g., CbacPicker, CbacPickerDialog)

  • Handles data fetching using @osdk/react hooks (useMarkingCategories, useMarkings, useCbacBanner, useCbacMarkingRestrictions)
  • Computes derived state (marking states, validation, required groups)
  • Passes primitive data to the base component

Base Component Layer (e.g., BaseCbacPicker, BaseCbacBanner, BaseCbacPickerDialog)

  • Pure components with no OSDK imports
  • Contains all UI interactions and styling
  • Accepts primitive props (strings, arrays, Maps)
  • Can be reused with custom data fetching

Quick Example

import { CbacPicker } from "@osdk/cbac-components/experimental";
import { useState } from "react";

function ClassificationForm() {
  const [markingIds, setMarkingIds] = useState<string[]>([]);

  return <CbacPicker initialMarkingIds={markingIds} onChange={setMarkingIds} />;
}

License

Apache 2.0