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

@expedite-commerce/ec-composable-prabu

v0.1.0

Published

React-first composable sample package with Web Component delivery for Genesis AI and Genesis DXP.

Readme

@expedite-commerce/ec-composable-prabu

React-first composable sample package following Expedite Composable UI architecture:

  • Contract-first contexts (identity, session, security)
  • Pure TypeScript core
  • React presentation layer
  • Web Component delivery (ec-prabu) for Genesis AI, Genesis DXP, Vue, Angular, and plain HTML

Installation

npm install @expedite-commerce/ec-composable-prabu

Peer dependencies:

npm install react react-dom

Feature

This sample provides a Welcome / Account Summary composable:

  • Greets based on identity context
  • Shows organization, account, quote, and host origin
  • Emits namespaced events for host integrations

Contract

IdentityContext

type IdentityContext = {
    organizationId: string;
    userId?: string;
    accountId?: string;
    contactId?: string;
    pricingSchema?: "Single" | "NRC_MRC";
};

SessionContext

type SessionContext = {
    origin: "DXP_EXTERNAL" | "DXP_INTERNAL" | "GENESIS_CPQ";
    quoteId?: string;
    storefrontId?: string | null;
    chatRoomId?: string;
};

SecurityContext

type SecurityContext = {
    baseUrl: string;
    accessToken?: string;
    apiKey?: string;
};

Events

  • ec-prabu:ready
  • ec-prabu:action
  • ec-prabu:save
  • ec-prabu:error

Usage

React consumer

import { PrabuWelcome } from "@expedite-commerce/ec-composable-prabu";

export function Page() {
    return (
        <PrabuWelcome
            identity={{ organizationId: "ORG-1", userId: "U-1", accountId: "A-1" }}
            session={{ origin: "GENESIS_CPQ", quoteId: "Q-1" }}
            security={{ baseUrl: "https://api.example.com" }}
        />
    );
}

Web Component consumer (DXP / Genesis / Vue / Angular / HTML)

import { registerEcPrabu } from "@expedite-commerce/ec-composable-prabu/wc";
registerEcPrabu();
<ec-prabu id="prabu"></ec-prabu>
<script type="module">
    const el = document.getElementById("prabu");
    el.identity = { organizationId: "ORG-1", userId: "U-1" };
    el.session = { origin: "DXP_EXTERNAL", quoteId: "Q-1" };
    el.security = { baseUrl: "https://api.example.com" };
    el.addEventListener("ec-prabu:action", (event) => {
        console.log(event.detail);
    });
</script>

Styling

Import package styles through:

import "@expedite-commerce/ec-composable-prabu/style";

Theming is supported via CSS variables:

  • --ec-color-primary
  • --ec-color-surface
  • --ec-color-title
  • --ec-color-text

Development

npm ci
npm run lint
npm run typecheck
npm run test
npm run build:all

Publishing

This package is configured for public publishing:

npm publish --access public --provenance

Do not commit npm tokens to source control.