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 πŸ™

Β© 2025 – Pkg Stats / Ryan Hefner

ofd-shared-ui

v1.1.0

Published

A service like Uber Eats with restaurant listings, menus, order tracking, and delivery logistics. # 🧱 Atomic UI Library

Readme

ofd-shared-ui

A service like Uber Eats with restaurant listings, menus, order tracking, and delivery logistics.

🧱 Atomic UI Library

A scalable, atomic design-based component library built with React, Material UI, and custom design tokens.

✨ Features

  • βš›οΈ Atomic Design (Atoms, Molecules, Organisms)
  • 🎨 MUI + Custom Design Tokens (Color, Typography, Spacing)
  • πŸ“š Storybook integration for UI preview & documentation
  • πŸ§ͺ Unit Testing with Jest & React Testing Library
  • βš™οΈ Custom Vite/Webpack Config
  • πŸ“¦ Build-ready for npm publish or internal usage

πŸ“ Folder Structure

src/ β”œβ”€β”€ components/ # Atomic components (Button, Input, etc.) β”‚ └── Button/ β”‚ β”œβ”€β”€ Button.tsx β”‚ β”œβ”€β”€ Button.test.tsx β”‚ β”œβ”€β”€ Button.stories.tsx β”‚ └── index.ts β”œβ”€β”€ tokens/ # Design tokens (color, spacing, etc.) β”‚ └── colors.ts β”œβ”€β”€ theme/ # MUI Theme creation from tokens β”‚ └── index.ts └── index.ts # Barrel export for all components


πŸš€ Getting Started

1. Install Dependencies

pnpm install
# or
npm install
# or
yarn install


2. Run Storybook
pnpm storybook

3. Run Dev Server (for testing isolated components)
pnpm dev

4. Run Tests
pnpm test

πŸ§ͺ Testing
Unit tests powered by Jest and React Testing Library

All components must include basic test coverage

Use jest --coverage to view test coverage

🧩 Storybook
Storybook is used to document and test components in isolation.

pnpm storybook

Features:
Theme integration with MUI

Live interactive props

Custom color tokens visualized

🎨 Theming
Design tokens are defined in src/tokens/ and consumed via MUI’s createTheme.

// Example: tokens/colors.ts
export const colors = {
  primary: { main: '#1976d2', contrastText: '#fff' },
  secondary: { main: '#dc004e' },
};

🧱 Creating Components
Use atomic structure:

src/components/AtomName/
β”œβ”€β”€ AtomName.tsx
β”œβ”€β”€ AtomName.stories.tsx
β”œβ”€β”€ AtomName.test.tsx
└── index.ts

Each component should:

Use MUI as a base

Support theming (no inline styles unless necessary)

Be unit tested

Have a Storybook story

πŸ“¦ Build for Distribution

pnpm build

Bundle output is generated using vite build and configured for reuse.

🧾 License
MIT

🀝 Contributing
Contributions, issues and feature requests are welcome!
Please create an issue or pull request.

πŸ›  Tech Stack
React

Material UI

Storybook

Jest

Vite


---

Would you like:

- A **CLI script to scaffold new atomic components**?
- A **GitHub Actions CI/CD pipeline** for lint + test + publish?

Let me know and I’ll add them too.