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

@tirth_jasoliya/ui

v1.0.11

Published

A complete end to end package made for handling complexity of layout and user interfaces of react application

Readme

# @tirth_jasoliya/ui

> ✨ A complete, type-safe UI component library featuring elegant layouts, data displays, and utility components. Built with TypeScript, Tailwind CSS, and React.

---

## 🌟 Features

- **Layout System**: Pre-built, composable layout components (`AppContainer`, `AppHeader`, `AppContent`, `AppFooter`)
- **Type Safety**: Fully typed components with intelligent prop completion
- **Context-Aware**: Built-in app meta management for titles, breadcrumbs, and actions
- **Utility-First**: Includes helpful utilities like `GeneralHelper` for formatting and UI helpers
- **Customizable**: Themeable and extensible with Tailwind CSS

---

## 📦 Installation

```bash
# Using npm
npm install @tirth_jasoliya/ui

# Using yarn
yarn add @tirth_jasoliya/ui

# Using pnpm
pnpm add @tirth_jasoliya/ui

Peer Dependencies:

npm install react react-dom clsx tailwind-merge lucide-react

🚀 Quick Start

1. Setup App Meta Provider

// App.tsx
import { AppMetaProvider } from '@tmj/ui';

function App() {
  return (
    <AppMetaProvider>
      <MyPage />
    </AppMetaProvider>
  );
}

2. Use Layout Components

import {
  AppContainer,
  AppHeader,
  AppContent,
  AppFooter
} from '@tmj/ui';

function DashboardPage() {
  return (
    <AppContainer>
      <AppHeader />
      <AppContent>
        <h1>Dashboard Content</h1>
      </AppContent>
      <AppFooter />
    </AppContainer>
  );
}

3. Manage Page Metadata

import { usePageTemplate } from '@tmj/ui/hooks';

function ProductPage() {
  usePageTemplate({
    title: 'Product Details',
    breadcrumbs: [
      { label: 'Home', href: '/' },
      { label: 'Products', href: '/products' },
      { label: 'Current Product' }
    ],
    primaryActions: <Button>Edit Product</Button>
  });

  return <div>...</div>;
}

🧩 Core Components

Layout System

| Component | Description | |-----------------|-------------| | AppContainer | Root layout container with spacing and padding controls | | AppHeader | Top navigation bar with title, breadcrumbs, and actions | | AppContent | Flexible content area with multiple layout modes | | AppFooter | Bottom bar with secondary actions and pagination |

Utility Components

import { GeneralHelper } from '@tmj/ui';

// Format currency
const price = GeneralHelper.formatINR(1500, { compact: true }); // ₹1.5K

// Status badge
<GeneralHelper.StatusBadge status="active" variant="outline" />

// Copy to clipboard
<GeneralHelper.CopyToClipboard text="Copy me!" />

🛠️ Advanced Usage

Custom Route Types

// lib/app-meta.ts
import { createAppMetaContext } from '@tmj/ui/context/app-meta';

type AppRoutes = '/' | '/dashboard' | '/products/:id';

const { AppMetaProvider, useAppMeta } = createAppMetaContext<AppRoutes>();

export { AppMetaProvider, useAppMeta };

Theming

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        primary: {
          DEFAULT: 'var(--color-primary)',
          light: 'var(--color-primary-light)',
        }
      }
    }
  }
}

📚 API Reference

AppMeta Context

| Hook/Component | Description | |---------------|-------------| | AppMetaProvider | Provides context for page metadata | | useAppMeta() | Access and update app metadata | | usePageTemplate() | Hook to set page metadata |

GeneralHelper Utilities

| Method | Description | |--------|-------------| | formatINR() | Format numbers as Indian Rupees | | formatDate() | Date formatting utilities | | toProperCase() | String case conversion | | StatusBadge | Configurable status indicator | | CopyToClipboard | Clipboard copy component |


🎨 Design Philosophy

  1. Consistent: Unified design language across components
  2. Composable: Mix and match layout components as needed
  3. Type-Safe: Full TypeScript support with intelligent hints
  4. Performant: Optimized for fast rendering and updates
  5. Accessible: Built with WAI-ARIA standards

🛣️ Roadmap

  • [x] Core layout components
  • [x] App meta management system
  • [x] Data table component
  • [x] Data template component
  • [] Form components
  • [x] Dark mode support
  • [] Component playground

🤝 Contributing

We welcome contributions! Please open an issue to discuss your ideas or submit a PR.


📄 License

MIT © Tirth Jasoliya


This README features:

1. Clear, visually appealing structure with emoji headers
2. Complete installation instructions
3. Quick start guide with code examples
4. Component API reference
5. Advanced usage patterns
6. Design philosophy and roadmap
7. Consistent with your router package's style

The documentation highlights:
- The layout system first (your core feature)
- Type safety as a key benefit
- Practical examples for common use cases
- Easy integration instructions
- Future plans to set expectations

You can further customize it with:
- Screenshots of components
- Live demo links
- More detailed code examples
- Theming documentation
- Contribution guidelines