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

@devx-commerce/loyaltyx-ui-kit

v0.2.1

Published

React component library for the LoyaltyX admin dashboard. Built on @medusajs/ui.

Readme

@devx-commerce/loyaltyx-ui-kit

Drop-in React component library for the LoyaltyX admin dashboard. Pre-built pages, forms, tables, charts, and modals that talk to your LoyaltyX API out of the box.

Built on @medusajs/ui + Tailwind CSS. Data flows through @devx-commerce/loyaltyx-hooks, so every page handles loading states, errors, optimistic updates, and form validation for you.

Install

pnpm add \
  @devx-commerce/loyaltyx-ui-kit \
  @devx-commerce/loyaltyx-hooks \
  @devx-commerce/loyaltyx-api-client \
  @devx-commerce/loyaltyx-core

Peer dependencies your app must already have:

pnpm add react react-dom @tanstack/react-query

Requires react ≥ 18 and @tanstack/react-query ≥ 5.

Note: this kit forces @medusajs/ui as your component primitive. If your dashboard uses a different design system (Mantine, Chakra, shadcn, etc.), use @devx-commerce/loyaltyx-hooks directly and build your own components.

Setup

import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { LoyaltyClient } from '@devx-commerce/loyaltyx-api-client';
import { LoyaltyProvider } from '@devx-commerce/loyaltyx-hooks';
import { DashboardPage, CustomersPage, TiersPage } from '@devx-commerce/loyaltyx-ui-kit';

// Import the compiled stylesheet ONCE at app entry
import '@devx-commerce/loyaltyx-ui-kit/styles.css';

const queryClient = new QueryClient();
const loyaltyClient = new LoyaltyClient('https://loyalty.your-brand.com/api/v1');

export function AdminApp() {
  return (
    <QueryClientProvider client={queryClient}>
      <LoyaltyProvider client={loyaltyClient}>
        {/* Mount whichever pages you need into your router */}
        <DashboardPage />
      </LoyaltyProvider>
    </QueryClientProvider>
  );
}

Pages

| Page | Suggested Route | What it renders | | -------------------- | ------------------ | -------------------------------------------------------------------------------- | | DashboardPage | / | KPI cards, points-flow chart, tier distribution, enrollments, redemption summary | | CustomersPage | /customers | Searchable table with tier filter and pagination | | CustomerDetailPage | /customers/:id | Wallet, current tier, tier history, manual point adjust, ledger feed | | TiersPage | /tiers | Tier cards with member counts; create/edit modal | | TierDetailPage | /tiers/:id | Three tabs: details, earning rules, spending rules | | LedgerPage | /ledger | Transaction table with date / type / status filters | | SettingsPage | /settings | Program config, channel mappings, connector settings, change password | | UsersPage | /users | Admin user CRUD with role-based access | | ImportExportPage | /import-export | CSV upload, job tracking, error download | | ChangePasswordPage | /change-password | First-login forced password change |

Shared components

PageHeader, LoadingSpinner, ErrorDisplay, ErrorBoundary, EmptyState, SearchBar, Pagination, TierSelect, PointsBadge, CustomerLedgerTable.

Theming

  • Tailwind CSS 3 with the @medusajs/ui-preset.
  • Dark mode toggles via the .dark class on <html> (use any switcher you like — the components react automatically).
  • Brand-tokenize via CSS custom properties prefixed --loyalty-* in your own stylesheet.

Sibling packages

| Package | Purpose | | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | | @devx-commerce/loyaltyx-core | Shared types + zod schemas | | @devx-commerce/loyaltyx-api-client | Typed HTTP client | | @devx-commerce/loyaltyx-hooks | React Query hooks (used internally by every page) |

License

Apache-2.0 — see LICENSE.