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

@field123/ep-assistant

v0.0.5

Published

An AI-powered procurement assistant for B2B commerce built with React, CopilotKit, and Lit web components.

Readme

EP Assistant

An AI-powered procurement assistant for B2B commerce built with React, CopilotKit, and Lit web components.

Overview

EP Assistant provides an intelligent chat interface for product discovery and procurement guidance. It integrates with Elastic Path Commerce Cloud to deliver AI-powered shopping experiences as reusable web components.

Features

🤖 AI-Powered Chat Interface

  • Natural language product search and recommendations
  • Interactive product cards with detailed information
  • User authentication and account management
  • Generative UI for enhanced shopping experiences

🛒 Product Discovery

  • Product search and filtering
  • Conversation thread persistence
  • Mock product catalog with office supplies
  • Bulk pricing information display

📦 Web Component Integration

  • Custom web elements for easy integration
  • Shadow DOM encapsulation with proper styling
  • Support for multiple deployment scenarios

Components

Core Components

  • ChatDashboardRoot: Main dashboard with full procurement interface
  • ChatRoot: Simplified chat-only interface
  • EpAssistantDashboard: Web component wrapper for dashboard
  • EpAssistant: Web component wrapper for chat interface

AI Actions

The assistant includes several CopilotKit actions:

  • authenticate-store-account: User login with form UI
  • searchProducts: Product search with interactive results
  • getProductDetails: Detailed product information display

Usage

As Web Components

<!-- Full dashboard experience -->
<ep-assistant-dashboard 
  runtime-url="/api/ep-assistant-agent"
  client-id="your-client-id"
  ep-url="https://api.elasticpath.com" 
  ep-access-token="your-token">
</ep-assistant-dashboard>

<!-- Chat interface only -->
<ep-assistant 
  runtime-url="/api/ep-assistant-agent"
  client-id="your-client-id">
</ep-assistant>

As React Components

import { ChatDashboardRoot, ChatRoot } from '@field123/ep-assistant';

// Full dashboard
<ChatDashboardRoot 
  runtimeUrl="/api/ep-assistant-agent"
  clientId="your-client-id"
  epUrl="https://api.elasticpath.com"
  epAccessToken="your-token" 
/>

// Chat only
<ChatRoot 
  runtimeUrl="/api/ep-assistant-agent"
  clientId="your-client-id" 
/>

Data Models

interface Product {
  id: string;
  name: string;
  category: string;
  price: number;
  bulkPrice: number;
  minBulkQuantity: number;
  description: string;
  specifications: string[];
  inStock: boolean;
  leadTime: string;
  image: string;
}

Development

Prerequisites

  • Node.js 18+
  • pnpm package manager

Installation

pnpm install

Development

pnpm dev

Build

pnpm build

Integration with Elastic Path

The package is designed to integrate with Elastic Path Commerce Cloud:

  1. Replace mock product data with EP API calls
  2. Implement authentication via EP customer accounts
  3. Connect product search to EP catalog services
  4. Configure runtime URL and credentials

License

MIT License