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

react-chatbar-loader

v1.0.2

Published

Chat-style multi-bar loader for React (customizable gradients, widths, shimmer & dark mode support).

Downloads

19

Readme

react-chatbar-loader

A lightweight, customizable ChatGPT-style multi-bar skeleton loader for React. Perfect for chat UIs, AI assistants, messaging apps, and conversational experiences.

🚀 Features

Zero dependencies

Fully customizable gradients & widths

Auto dark-mode support

Pulse & shimmer typing animations

Dynamic bar counts

ESM + CJS builds

TypeScript support

Lightweight and simple

📦 Install

Using npm: npm install react-chatbar-loader

Using yarn: yarn add react-chatbar-loader

🧠 Usage

import { LoaderBars } from "react-chatbar-loader";

export default function App() { return ; }

Chat Loader Demo

🎨 Customization Examples 🔢 Number of bars 🌈 Custom gradients

<LoaderBars bars={3} gradients={[ { from: "#E0F2FE", to: "#BAE6FD" }, { from: "#FDE3F0", to: "#DCEEFF" }, { from: "#FFEAC3", to: "#FFDCA0" } ]} />

🌙 Dark theme gradients

<LoaderBars gradients={[ { from: "#E0F2FE", to: "#BAE6FD" }, { from: "#FDE3F0", to: "#DCEEFF" } ]} darkGradients={[ { from: "#4B5563", to: "#1F2937" }, { from: "#6B7280", to: "#374151" } ]} />

✨ Shimmer typing effect 💓 Pulse skeleton 📏 Custom widths

<LoaderBars widths={["60%", "80%", "45%"]} />

🧩 Props API

Prop Type Default Description bars number 3 Number of bars gradients Gradient[] pastel defaults Light theme gradients darkGradients Gradient[] gray defaults Dark theme gradients widths string[] random Width per bar height number 12 Bar height in px radius number 9999 Border radius (pill) pulse boolean true Pulse skeleton effect shimmer boolean false Sliding shimmer animation speedMs number 1400 Animation duration theme "auto" or "light" or "dark" auto Override system theme className string — Custom CSS style CSSProperties — Inline styles Gradient type

type Gradient = { from: string; to: string };

💡 Example: Chat UI Placeholder

function ChatReplyLoader() { return (

🔥 Why this exists

Chat UIs feel different from list/data loaders. This component focuses on:

✔ conversational rhythm ✔ natural motion ✔ variable line lengths ✔ minimal design ✔ brand-friendly customization

It looks alive, like a chatbot typing.

🧱 Build details

dist/index.js → ES module

dist/index.cjs → CommonJS

dist/index.d.ts → TypeScript declarations

Works in Vite, Next.js, CRA, Remix, Webpack

Only peer dependency: React

🛠 Contributing

Ideas welcome!

Additional loader styles

Presets (ChatGPT / Gemini / Claude / Copilot)

Curved shapes

Accessibility improvements

Open PRs or Issues on GitHub.

📜 License

MIT © 2025-present Aakash Toshniwal

⭐ If you like it

Give the project a star ❤️ It motivates further improvements.

🔗 Links

GitHub: https://github.com/akasht2509/reactChatbotLoader npm: https://www.npmjs.com/package/react-chatbar-loader