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

@selorax/ui

v1.0.1

Published

SeloraX Extension UI SDK — build extensions for the SeloraX platform

Downloads

190

Readme

@selorax/ui

The official SeloraX Extension UI SDK for building extensions on the SeloraX platform. Provides 64 UI component builders and the selorax app bridge for communicating with the host dashboard.

Installation

npm install @selorax/ui

Quick Start

JSON Mode (Declarative UI)

import { Card, Text, Button, Stack } from '@selorax/ui';

const ui = Card({},
  Stack({ direction: 'vertical', gap: 'md' },
    Text({ variant: 'headingMd' }, 'Hello World'),
    Button({
      label: 'Click Me',
      action: { type: 'set_state', key: 'clicked', value: true }
    })
  )
);

Sandbox Mode (App Bridge)

import { selorax } from '@selorax/ui';

// Signal readiness
selorax.ready();

// Show a toast notification
selorax.toast('Order updated!', 'success');

// Navigate within dashboard
selorax.navigate('/orders');

// Make authenticated API requests
const orders = await selorax.api.get('/orders?limit=10');

// Open a resource picker
const products = await selorax.picker.product({ multiple: true });

// Set up title bar
selorax.ui.titleBar({
  title: 'My Extension',
  primaryAction: { label: 'Save', action_type: 'save' }
});

// Show contextual save bar
selorax.ui.showSaveBar({
  saveAction: { label: 'Save' },
  discardAction: { label: 'Discard' }
});

// Manage metafields
await selorax.metafields.set('my-namespace', 'key', {
  value: 'hello',
  type: 'single_line_text'
});

Components (64 total)

Layout

Card Stack Grid Divider Separator Box InlineStack BlockStack InlineGrid Bleed Layout LayoutSection Page ButtonGroup Collapsible

Display

Text Heading Image Badge Icon KeyValue List Table Thumbnail Banner CalloutCard EmptyState Tag SkeletonBodyText DescriptionList MediaCard FooterHelp Avatar SkeletonPage SkeletonDisplayText SkeletonThumbnail VideoThumbnail ExceptionList Truncate TextStyle

Input

TextField TextArea Select Checkbox Toggle DatePicker RadioGroup Autocomplete ColorPicker DropZone RangeSlider

Actions

Button Link ActionMenu PageActions

Data & Filters

IndexTable DataTable Filters Pagination ResourceList ResourceItem

Overlay

Modal Drawer Popover Tooltip Sheet Scrollable OptionList Listbox

Feedback

Alert Progress Spinner

Navigation

Tabs Accordion

Action Types

Actions define what happens when a user interacts with a component:

// Navigate within dashboard
{ type: 'navigate', url: '/orders/123' }

// Open external link
{ type: 'open_link', url: 'https://example.com', external: true }

// Update component state
{ type: 'set_state', key: 'active', value: true }

// Call your app's backend
{ type: 'call_backend', url: '/api/process', method: 'POST', body: { id: 1 } }

// Open/close modal or drawer
{ type: 'open_modal', id: 'confirm-dialog' }
{ type: 'close_modal' }
{ type: 'open_drawer', id: 'detail-panel' }
{ type: 'close_drawer' }

// Call SeloraX API
{ type: 'selorax_api', url: '/orders', method: 'GET' }

App Bridge (selorax)

| Method | Description | |--------|-------------| | selorax.ready() | Signal extension is ready | | selorax.toast(message, type) | Show toast ('success', 'error', 'warning') | | selorax.navigate(url) | Navigate within dashboard | | selorax.openLink(url) | Open external URL | | selorax.close() | Close extension modal | | selorax.dispatchAction(type, payload) | Dispatch a generic action | | selorax.api.get(url) | GET request via API proxy | | selorax.api.post(url, body) | POST request via API proxy | | selorax.api.put(url, body) | PUT request via API proxy | | selorax.api.patch(url, body) | PATCH request via API proxy | | selorax.api.del(url) | DELETE request via API proxy | | selorax.picker.product(opts) | Open product picker | | selorax.picker.customer(opts) | Open customer picker | | selorax.picker.order(opts) | Open order picker | | selorax.modal.open(content) | Open modal with UI tree | | selorax.modal.close() | Close modal | | selorax.ui.titleBar(config) | Set title bar | | selorax.ui.showSaveBar(config) | Show contextual save bar | | selorax.ui.hideSaveBar() | Hide save bar | | selorax.ui.startLoading() | Show loading bar | | selorax.ui.completeLoading() | Complete loading bar | | selorax.metafields.get(ns, key) | Get metafield value | | selorax.metafields.set(ns, key, val) | Set metafield value | | selorax.metafields.del(ns, key) | Delete metafield | | selorax.metafields.list(opts) | List metafields |

TypeScript

Full TypeScript support included. Import types directly:

import { Card, Text, Button, selorax } from '@selorax/ui';
import type { Action, UINode, Selorax, CardProps, ButtonProps } from '@selorax/ui';

License

MIT - SeloraX