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

chat-generator

v1.0.2

Published

A CLI tool to generate chat-style images and HTML from simple Markdown files.

Readme

Chat Generator

A CLI tool to generate chat-style images and HTML from simple Markdown files.

This tool allows you to write dialogue in a structured Markdown format and export it as visually appealing chat bubbles, perfect for tutorials, stories, or social media content.

Chat Preview

Features

  • Live Preview: See your chat story in a browser with hot-reloading as you edit.
  • Image Export: Export each section of your chat as a high-resolution PNG image.
  • HTML Export: Generate a self-contained HTML file of your entire chat.
  • Customizable: Easily define your own characters, icons, colors, and styles via a simple YAML config file.
  • Dynamic Icons: Automatically detects character icons based on file naming (character_emotion.png).

Installation

You can install this tool globally via NPM:

npm install -g chat-generator

Or, you can install it as a development dependency in your project:

npm install --save-dev chat-generator

Quick Start

  1. Initialize a new project:

    Create a new folder for your story and run the init command inside it.

    mkdir my-awesome-story
    cd my-awesome-story
    chat-generator init

    This will create the necessary directory structure and a sample configuration file:

    my-awesome-story/
    ├── icons/
    ├── stories/
    │   └── sample-story.md
    ├── output/
    ├── assets/
    └── chat-config.yml
  2. Define your characters:

    Open chat-config.yml and add your characters.

    characters:
      yuki:
        name: Yuki
        emoji: "❄️"
        color: "#E0F7FA"
        textColor: "#006064"
      haru:
        name: Haru
        emoji: "🌸"
        color: "#FCE4EC"
        textColor: "#880E4F"
  3. Add character icons:

    Place your character icon images in the icons/ directory. The file name should follow the format characterid_emotion.png. For example:

    • icons/yuki_norm.png
    • icons/yuki_smile.png
    • icons/haru_think.png

    If an icon for a specific emotion is not found, it will fall back to characterid_norm.png. If no icon is found, it will display the emoji defined in the config.

  4. Write your story:

    Edit stories/sample-story.md. The syntax is simple:

    # My First Story
    ## A new beginning
    
    yuki:left "Hi, I'm Yuki. Nice to meet you!"
    
    haru:right:smile "Hello, Yuki! I'm Haru. The pleasure is all mine."
    
    yuki:left:think "I wonder what adventures await us."

    Format: character_id:direction:emotion:bubble_type "Message text"

    • direction: left or right
    • emotion (optional): smile, think, shout, etc. This corresponds to the icon file name.
    • bubble_type (optional): norm, think, shout. Affects the bubble style.
  5. Preview your work:

    chat-generator preview sample-story.md

    This will open a live preview in your browser.

  6. Export your chat:

    # Export as PNG images (one for each section)
    chat-generator export sample-story.md
    
    # Export as a single HTML file
    chat-generator html sample-story.md

    Your files will be saved in the output/ directory.

Customization

You can customize the look and feel of the chat by editing chat-config.yml and creating a styles.css file in your project's root directory.