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

@intelligencebank/connectingib

v5.3.0

Published

UI components and integration patterns for IntelligenceBank integrations

Downloads

94

Readme

@intelligencebank/connectingib

UI components and integration patterns for building IntelligenceBank integrations.

Installation

npm install @intelligencebank/connectingib

Peer Dependencies

This package requires the following peer dependencies:

npm install react react-dom @emotion/react @emotion/styled

Usage

import {
  // UI Primitives
  Button,
  Card,
  Icon,
  Input,
  Select,
  Modal,
  Tabs,
  Tooltip,
  DropdownMenu,
  
  // Integration Components
  AssetBrowser,
  LoginForm,
  NavBar,
  FolderTree,
  
  // Theme
  ThemeProvider,
  productionTheme,
} from '@intelligencebank/connectingib';

function App() {
  return (
    <ThemeProvider theme={productionTheme}>
      <NavBar
        logoSrc="/logo.svg"
        logoAlt="My App"
        title="Asset Browser"
        actions={[
          { id: 'help', icon: 'help', label: 'Help', onClick: () => {} },
        ]}
      />
      <AssetBrowser
        assets={assets}
        folders={folders}
        onAssetSelect={handleSelect}
      />
    </ThemeProvider>
  );
}

Components

UI Primitives

Foundation-level presentation components:

  • Button - Primary, secondary, tertiary buttons with variants
  • Card - Container with header, media, content, actions
  • Icon - Material icons with size and color options
  • Input - Text input with validation states
  • Select - Single-select dropdown
  • Multiselect - Multi-select with checkboxes
  • Modal - Dialog with header, body, footer
  • Tabs - Tab navigation
  • Tooltip - Hover tooltips
  • DropdownMenu - Context menus
  • Switch - Toggle switch
  • Radio/RadioGroup - Radio buttons
  • TextArea - Multi-line text input
  • FormControl - Form field wrapper
  • FieldLabel - Form labels
  • Message - Info, warning, error messages
  • Snackbar - Toast notifications
  • Chip - Tags and labels
  • Status - Status indicators
  • LinearLoading - Progress bars
  • Spinner - Loading spinners
  • ActionMenuButtons - Action button groups
  • Paginator - Pagination controls
  • DropZone - File upload dropzone
  • DataContainerCard - Titled section container with optional expand/collapse

Integration Components

Domain-specific components for IntelligenceBank integrations:

  • AssetBrowser - Complete asset browsing experience
  • AssetCard - Asset preview cards
  • FolderTree - Folder navigation
  • FolderCard - Folder preview cards
  • LoginForm - Authentication form
  • BrowserLoginConfirmation - Login confirmation
  • NavBar - Navigation bar
  • FiltersPanel - Asset filtering
  • PresetSelector - Preset selection
  • SearchForm - Search interface

Risk Review Integration Components

Components for building AI-powered risk review workflows:

Core Components

  • ReviewProcessing - Processing/loading overlay for single or batch reviews with progress indicators
  • ReviewDetails - Displays review metadata (type, file, filters, timestamp, ID)
  • ReviewResults - Displays risk findings with status and expandable multi-file sections
  • ReviewFiles - File list with single/multiple selection, removal, and validation errors
  • CategoryFilters - Dynamic filter dropdowns (single/multi-select) from API categories

Composite Components

  • CreateReview - Complete review creation form with platform modes (extension/webapp)
  • LatestReview - Complete results view with actions and Send to IB integration

Usage Example

import {
  CreateReview,
  LatestReview,
  ReviewProcessing,
  ReviewDetails,
  ReviewResults,
  ReviewFiles,
  CategoryFilters,
  type ReviewContentType,
  type RiskItem,
  type ReviewFileItem,
} from '@intelligencebank/connectingib';

// Composite component for review creation
function ReviewCreationPage() {
  return (
    <CreateReview
      platform="webapp"
      files={files}
      onFilesChange={setFiles}
      categories={categories}
      selectedCategories={selectedCategories}
      onCategoryChange={handleCategoryChange}
      onSubmit={handleSubmit}
      isSubmitting={isSubmitting}
    />
  );
}

// Composite component for results display
function ReviewResultsPage() {
  return (
    <LatestReview
      reviewData={reviewData}
      onSendToIB={handleSendToIB}
      isSending={isSending}
    />
  );
}

// Building blocks for custom layouts
function CustomReviewLayout() {
  return (
    <>
      <ReviewProcessing
        isProcessing={isProcessing}
        mode="multi"
        progressData={progressData}
      />
      <ReviewDetails
        contentType="document"
        fileName="report.pdf"
        timestamp={new Date()}
        reviewId="abc123"
      />
      <CategoryFilters
        categories={categories}
        selectedCategories={selectedCategories}
        onCategoryChange={handleCategoryChange}
      />
      <ReviewFiles
        files={files}
        mode="multiple"
        onSelect={handleSelect}
        onRemove={handleRemove}
      />
      <ReviewResults
        risks={risks}
        status="completed"
        mode="single"
      />
    </>
  );
}

Types

import type {
  // Content and risk types
  ReviewContentType,
  RiskItem,
  ReviewFileItem,
  ReviewResultData,
  
  // Multi-file review types
  MultiFileReviewResultData,
  MultiFileProgressData,
  FileProgressData,
  
  // Filter types
  FilterCategoryData,
  FilterValueData,
  CategorySelection,
  
  // Upload types
  UploadFieldData,
} from '@intelligencebank/connectingib';

See Storybook for interactive examples of all Risk Review components.

Theming

The library uses Emotion for theming. Wrap your app with ThemeProvider:

import { ThemeProvider, theme } from '@intelligencebank/connectingib';

<ThemeProvider theme={theme}>
  {/* Your app */}
</ThemeProvider>

Dynamic Tenant Colors

The theme has 6 colors that can be customized per tenant from the IntelligenceBank login API response:

| Login API Field | Theme Property | Purpose | |-----------------|----------------|---------| | colourPrimary | theme.colors.primary | Header, primary backgrounds | | colourPrimaryText | theme.colors.primaryText | Text on primary backgrounds | | colourSecondary | theme.colors.secondary | Secondary buttons, accents | | colourSecondaryText | theme.colors.secondaryText | Text on secondary backgrounds | | colourHighlight | theme.colors.highlight | CTA buttons, selection, accent | | colourHighlightText | theme.colors.highlightText | Text on highlight backgrounds |

After login, apply the tenant's brand colors:

import { ThemeProvider, theme } from '@intelligencebank/connectingib';

function App() {
  const [tenantTheme, setTenantTheme] = useState(theme);
  
  const handleLoginSuccess = (response) => {
    // Apply tenant colors from login API response
    setTenantTheme({
      ...theme,
      colors: {
        ...theme.colors,
        primary: response.colourPrimary,
        primaryText: response.colourPrimaryText,
        secondary: response.colourSecondary,
        secondaryText: response.colourSecondaryText,
        highlight: response.colourHighlight,
        highlightText: response.colourHighlightText,
      },
    });
  };
  
  return (
    <ThemeProvider theme={tenantTheme}>
      {/* Components now use tenant's brand colors */}
    </ThemeProvider>
  );
}

Fixed Design Tokens

These colors never change per tenant (part of the design system):

// Text colors
theme.colors.text.primary      // Main text
theme.colors.text.secondary    // Secondary text
theme.colors.text.muted        // Muted text

// Status colors
theme.colors.status.success    // Green
theme.colors.status.error      // Red

// Background colors
theme.colors.background.default // Page background
theme.colors.background.hover   // Hover state

// Border colors
theme.colors.border.medium     // Standard borders
theme.colors.border.input      // Input borders

For complete documentation, see the main README.

Adapters

Data adapters for transforming API responses:

import { assetAdapter, folderAdapter, presetAdapter } from '@intelligencebank/connectingib';

const assets = apiAssets.map(assetAdapter.fromApiAsset);
const folders = apiFolders.map(folderAdapter.fromApiFolder);

Utilities

Helper functions for common operations:

import { formatFileSize, formatDimensions, truncateFilename } from '@intelligencebank/connectingib';

formatFileSize(1024 * 1024); // "1 MB"
formatDimensions(1920, 1080); // "1920 × 1080"

Storybook

View all components in Storybook:

cd apps/storybook
npm run storybook

Migration from Previous Packages

If migrating from @intelligencebank/ui-primitives and @intelligencebank/integration-components:

# Remove old packages
npm uninstall @intelligencebank/ui-primitives @intelligencebank/integration-components

# Install new unified package
npm install @intelligencebank/connectingib

Update imports:

// Before
import { Button } from '@intelligencebank/ui-primitives';
import { AssetBrowser } from '@intelligencebank/integration-components';

// After
import { Button, AssetBrowser } from '@intelligencebank/connectingib';

License

UNLICENSED - IntelligenceBank proprietary