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

@duskmoon-dev/el-chat

v1.10.2

Published

DuskMoon chat custom elements for LLM-oriented chat interfaces.

Readme

@duskmoon-dev/el-chat

DuskMoon chat custom elements for LLM-oriented chat interfaces.

Elements

  • el-dm-chat
  • el-dm-chat-scroll
  • el-dm-chat-bubble
  • el-dm-chat-input
  • el-dm-chat-work
  • el-dm-chat-queue
  • el-dm-chat-reasoning
  • el-dm-chat-tool
  • el-dm-chat-typing

Usage

import { register } from '@duskmoon-dev/el-chat';

register();
<el-dm-chat-scroll style="height: 22rem">
  <el-dm-chat agent timeline="1" author="Assistant" content="Hello from **DuskMoon**.">
    <el-dm-chat-reasoning slot="reasoning" summary="Thinking">
      Reviewing the request.
      <el-dm-chat-tool slot="tools" name="search" status="success"></el-dm-chat-tool>
    </el-dm-chat-reasoning>
  </el-dm-chat>

  <el-dm-chat align="end" color="primary" variant="filled"> Thanks! </el-dm-chat>
</el-dm-chat-scroll>

Assistant messages may use unique timeline values from 1 through 24. The scroll wrapper creates an accessible indicator for each mapped assistant reply and keeps indicator navigation inside the transcript panel. Use the reasoning and tools slots to place collapsible LLM details before the final markdown content.

Current DuskMoonUI design

Use agent on assistant messages for unboxed answers. Assign el-dm-chat-work to slot="work" to keep activity collapsible independently of the final answer. User messages can opt into collapsible; a native Show more/Show less button appears when the message exceeds six rendered lines.

<el-dm-chat agent content="The final answer stays visible.">
  <el-dm-chat-work slot="work" summary="Worked · 2 checks">
    <el-dm-chat-tool name="search" status="success"></el-dm-chat-tool>
  </el-dm-chat-work>
</el-dm-chat>
<el-dm-chat-input busy color="ghost" auto-grow clear-on-send>
  <el-dm-chat-queue slot="queue" label="Waiting messages"></el-dm-chat-queue>
</el-dm-chat-input>

Set queue items to { id, content, active?, attachment?, attachmentAlt? }[]. Queue steer and remove events contain { item, index }; the application updates its queue and owns dispatch. Composer send and steer events contain { value, files }. Enter sends/queues, Shift+Enter inserts a newline, and Ctrl/Cmd+Enter steers while busy or sends while idle. IME composition never submits. Cancel a draft event with preventDefault() to retain its text and files; clear-on-send clears only accepted drafts. focus() focuses the native editor.

All presentation uses Core Chat, Button, and Avatar styles with Shadow DOM bridges.