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

tn-ui-library

v2.4.2

Published

UI component and style library for Trip Ninja web apps

Readme

tn-ui-library

A UI library for use across TripNinja apps. Built with React Typescript and Bootstrap.

View our storybook page to visualize the components in all of their variants and states.

Installation

npm install tn-ui-library
# or
yarn add tn-ui-library

Setup

These components are built using bootstrap, and react, so you'll need to have those packages installed.

Run the following command to install peer dependencies if not already in your project:

npm install react react-dom bootstrap

Make sure you have bootstrap css and this library's css imported in you App so that the styling is applied properly

import "bootstrap/dist/css/bootstrap.min.css";
import "tn-ui-library/css";

You can override tn-ui-library css classes by specifying your own values and importing your own css file above the tn-ui-library css import.

import "bootstrap/dist/css/bootstrap.min.css";
import "path/to/your/custom.css";
import "tn-ui-library/css";

Important:

Some components from this library use bootstrap JS directly so it's best to remove imports of bootstrap js (for example: import "bootstrap/dist/js/bootstrap.bundle.min.js") from your app to avoid conflicting instances that could break bootstrap JS.

Usage

import { Button, Card } from "tn-ui-library";

function App() {
  return (
    <Card title="Welcome">
      <p>This is a reusable component.</p>
      <Button variant="primary">Click me</Button>
    </Card>
  );
}

Development

Setup

git clone [repository-url]
npm install
npm run storybook

Then visit http://localhost:6006

Contributing

  1. Create a feature branch from develop
  2. Implement changes and Storybook stories.
  3. Test build by running npm run build
  4. If you want to test using the package locally you can run npm pack which creates a tarball that can be installed like a package. Just run npm install path/to/tarball in a consuming app (eg admin-panel) and you can import components just like an npm package.
  5. Iterate the version number in package.json following Semantic Versioning. Open a pull request and add the correct versioning label according to the type of release (major, minor, patch). (Note: if you need to skip the release step for whatever reason please use the skip-release label)
  6. The pr-check workflow on github will run and check that the build is successful, and that the proper version bump has been applied.
  7. Since these are standalone UI components not dependent on outside logic, a staging environment is not necessary. Changes flow into develop and then get merged in a release PR to the main branch.
  8. If the release will include multiple PRs into develop, DevQA should be done. Otherwise if all changes are made in one PR, DevQA can be skipped as the changes have already been tested together and there would be no difference on another environment
  9. When the PR is merged, the release workflow on github will be triggered which will handle all npm publish commands.

Note: If you need to push changes to main without triggering a release, add [skip-release] to the commit message and it will skip all publishing steps

License

MIT License - see LICENSE file for details.