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

zaamurets

v1.0.1

Published

A delightful React component library for creating ASCII art trains with support for shields.io badges

Downloads

8

Readme

Zaamurets

ZaamuretsGif

A React component library for creating ASCII art trains with support for shields.io badges and custom content. Create animated armored trains with shields.io badges for use in your projects. I use react-fast-marquee to animate it but do whatever floats your train. Visit the website for documentation and a train creator.

Live Demo, Documentation, and Train Creator

Zaamurets

Installation

npm install zaamurets

Quick Start

import { Train, TrainCar } from 'zaamurets';
import Marquee from 'react-fast-marquee';

// With scrolling animation
function Example() {
  return (
    <Marquee speed={20}>
      <Train>
        <TrainCar>
          <img src="https://img.shields.io/badge/build-passing-brightgreen" />
        </TrainCar>
      </Train>
    </Marquee>
  );
}

// With track animation
function AnotherExample() {
  return (
    <Train animated={true}>
      <TrainCar>
        <img src="https://img.shields.io/badge/build-passing-brightgreen" />
      </TrainCar>
    </Train>
  );
}

Features

  • ASCII art trains with engine, cars, and caboose
  • Native support for shields.io badges
  • Animated track effects (alternating track pattern)
  • Clickable train cars with custom content
  • TypeScript support
  • Zero dependencies other than React

Documentation

Train Component

Main container component for creating an ASCII train.

Props

| Name | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | undefined | TrainCar components to be rendered | | additionalTrackSegments | number | 0 | Add extra track segments after the train | | animated | boolean | false | Enable track pattern animation (alternates between -+- and +-+ patterns) |

TrainCar Component

Individual car components that make up the train.

Props

| Name | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode \| BadgeConfig[] | undefined | Content to display in the car | | href | string | undefined | Makes the entire car clickable with this URL |

Types

interface BadgeConfig {
  src: string;      // URL of the badge image
  href?: string;    // Optional click URL for the badge
  alt?: string;     // Optional alt text for the badge
}

Usage Examples

Basic Badge Display

import { Train, TrainCar } from 'zaamurets';

function BasicExample() {
  return (
    <Train>
      <TrainCar>
        <img src="https://img.shields.io/badge/build-passing-brightgreen" />
      </TrainCar>
    </Train>
  );
}

Multiple Badges in One Car

import { Train, TrainCar } from 'zaamurets';

function MultiBadgeExample() {
  const badges = [
    {
      src: "https://img.shields.io/badge/tests-passing-green",
      href: "https://example.com/tests",
      alt: "Tests Status"
    },
    {
      src: "https://img.shields.io/badge/coverage-98%25-brightgreen",
      href: "https://example.com/coverage",
      alt: "Coverage Status"
    }
  ];

  return (
    <Train>
      <TrainCar>{badges}</TrainCar>
    </Train>
  );
}

Animated Track Example

import { Train, TrainCar } from 'zaamurets';

function AnimatedTrackExample() {
  return (
    <Train animated={true} additionalTrackSegments={10}>
      <TrainCar>
        <img src="https://img.shields.io/badge/status-running-blue" />
      </TrainCar>
    </Train>
  );
}

Clickable Car with Custom Content

import { Train, TrainCar } from 'zaamurets';

function ClickableExample() {
  return (
    <Train>
      <TrainCar href="https://github.com/yourusername/yourrepo">
        <div className="flex items-center gap-2">
          <span>Star on GitHub</span>
        </div>
      </TrainCar>
    </Train>
  );
}

API Guidelines

Badge Limitations

Each train car is limited to a maximum of 2 badges to ensure proper display and readability.

Performance Considerations

  • The animated prop creates an interval timer to animate the track pattern. Use it sparingly in performance-critical applications
  • Consider the total number of cars when implementing in production
  • Ensure custom content is sized appropriately for car dimensions

Browser Support

  • Modern evergreen browsers (Chrome, Firefox, Safari, Edge)
  • Internet Explorer is not supported

Development

Building

npm run build

Testing

npm run test

Linting

npm run lint

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT © Jamino

Related Projects

Support

For support, issues, or feature requests, please file an issue in the GitHub repository.