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

@qomponent/qui-bubble

v1.0.0

Published

A Chat bubble component

Readme

qui-bubble

qui-bubble is a lightweight, customizable Web Component for rendering chat bubbles in a conversation-style UI. It supports text messages, rich content, avatars, typing indicators, and CSS customizations.


🌟 Features

Web Component – Works in any frontend framework or vanilla HTML
Customizable with CSS Variables – Easily style bubbles, colors, and spacing
Supports Named Messages – Display sender names with icons
Slot Support – Embed rich content like images or formatted text
Typing Indicator – Animated dots for real-time conversations


📦 Installation

Install via npm:

npm i @qomponent/qui-bubble

🚀 Usage

1. Import the Component

ES Module

import '@qomponent/qui-bubble';

HTML (No Build Setup Required)

<script type="module" src="https://cdn.jsdelivr.net/npm/@qomponent/qui-bubble"></script>

2. Add Chat Bubbles

<div class="chat-container">

    <qui-bubble message="Hello! How are you?" side="left" name="Alice"
        icon="https://randomuser.me/api/portraits/women/1.jpg">
    </qui-bubble>

    <qui-bubble message="I'm good! How about you?" side="right"></qui-bubble>

    <qui-bubble side="right">
        <span style="color: blue; font-weight: bold;">Custom <i>styled</i> message!</span>
    </qui-bubble>

    <qui-bubble side="left" name="Kristen">
        <img src="https://randomuser.me/api/portraits/women/2.jpg"><span>My new profile pic</span>
    </qui-bubble>

    <qui-bubble side="left" name="Bob" typing></qui-bubble>
</div>

🎨 Customization

You can customize the chat bubbles using CSS variables:

chat-bubble {
  --chat-bubble-bg: #007aff;
  --chat-bubble-color: white;
  --chat-bubble-border-radius: 20px;
  --chat-bubble-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  --chat-bubble-typing-dot: #ff5722;
}

Available CSS Variables

| Variable | Default Value | Description | |------------------------------|--------------|-------------| | --chat-bubble-bg | lightgray | Background color of the bubble | | --chat-bubble-color | black | Text color inside the bubble | | --chat-bubble-border-radius | 12px | Corner radius of the bubble | | --chat-bubble-padding | 8px 12px | Inner padding of the bubble | | --chat-bubble-shadow | 0px 4px 8px rgba(0, 0, 0, 0.1) | Shadow effect | | --chat-bubble-typing-dot | #666 | Color of typing indicator dots |


🔥 Example (Run Locally)

To run the example locally:

npm install
npm start

This will start a local development server with a demo page.


🤝 Contributing

Pull requests are welcome! 🚀
For major changes, please open an issue first to discuss your ideas.


📜 License

This project is licensed under the Apache 2.0 License.
Read the full license.