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

@astralibx/chat-ui

v0.4.1

Published

Lit Web Components for the @astralibx chat admin dashboard

Readme

@astralibx/chat-ui

npm version License: MIT

Lit Web Components for the chat admin dashboard. Provides session management, agent management, real-time agent chat interface, memory/prompt/knowledge CRUD, FAQ/flow configuration, analytics, and settings. Drop a single <alx-chat-dashboard> tag into any HTML page or use individual components.

GitHub: https://github.com/Hariprakash1997/astralib/tree/main/packages/chat/chat-ui

Install

npm install @astralibx/chat-ui
# Optional: npm install socket.io-client

Peer Dependencies

| Package | Required | |---------|----------| | lit | Yes | | socket.io-client | Optional (needed for agent dashboard) |

Quick Start

import { AlxChatConfig } from '@astralibx/chat-ui';

AlxChatConfig.setup({
  chatEngineApi: '/api/chat',
  chatAiApi: '/api/chat-ai',
  socketUrl: 'wss://chat.example.com',
  agentNamespace: '/agent',
  authToken: 'Bearer ...',
  theme: 'dark',
});

import '@astralibx/chat-ui';
<alx-chat-dashboard defaultTab="overview"></alx-chat-dashboard>

Or use individual components:

<alx-chat-session-list></alx-chat-session-list>
<alx-chat-agent-dashboard></alx-chat-agent-dashboard>

Individual Component Usage

Use standalone components instead of the full dashboard:

<!-- Just the session list -->
<alx-chat-session-list></alx-chat-session-list>

<!-- Memory management -->
<alx-chat-memory-list></alx-chat-memory-list>

<!-- Agent chat dashboard (needs socket.io-client) -->
<alx-chat-agent-dashboard></alx-chat-agent-dashboard>

All Components

| Tag | Description | |-----|-------------| | alx-chat-dashboard | Full dashboard with hash-based tab routing | | alx-chat-session-list | Paginated session list with filters | | alx-chat-session-messages | Message thread viewer with cursor pagination | | alx-chat-session-detail | Session metadata and visitor info panel | | alx-chat-agent-list | Agent table with status and actions | | alx-chat-agent-form | Create/edit agent drawer | | alx-chat-agent-dashboard | Real-time agent chat interface (Socket.IO) | | alx-chat-memory-list | Memory entries with filters and bulk actions | | alx-chat-memory-form | Create/edit memory drawer | | alx-chat-prompt-list | Prompt template list | | alx-chat-prompt-editor | Visual prompt section editor | | alx-chat-knowledge-list | Knowledge base CRUD | | alx-chat-knowledge-form | Create/edit knowledge drawer | | alx-chat-faq-editor | FAQ management with reordering | | alx-chat-flow-editor | Pre-chat flow configurator | | alx-chat-canned-response-list | Canned response CRUD | | alx-chat-stats | Dashboard statistics cards (auto-refresh) | | alx-chat-feedback-stats | Rating distribution and average | | alx-chat-offline-messages | Offline message inbox | | alx-chat-settings | Global chat settings |

Features

  • Session management -- Paginated session list, message thread viewer with cursor pagination, session metadata panel. Details
  • Agent management -- Agent table with status tracking, create/edit drawer, real-time agent chat via Socket.IO. Details
  • Memory and knowledge -- Memory entries with filters and bulk actions, knowledge base CRUD with drawer forms. Details
  • Prompt editing -- Prompt template list and visual section editor. Details
  • Content management -- FAQ editor with reordering, pre-chat flow configurator, canned response CRUD. Details
  • Analytics -- Statistics cards with auto-refresh, feedback rating distribution, offline message inbox. Details
  • Global settings -- Chat settings panel. Details
  • Theming -- Full CSS custom property system with --alx-* prefix, density modes, and shared style exports. Details
  • API client -- Built-in HTTP client with auth injection, timeout, error handling, and auth error events. Details

Getting Started Guide

  1. Configuration -- Setup, config options, peer dependencies
  2. Components -- All 20 components with tags and descriptions
  3. Theming -- CSS custom properties, density modes, shared style exports
  4. API Client -- HttpClient, error handling, auth events, exported types

License

MIT