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

@trackpath/litho

v1.0.1

Published

Litho is a library of components for building TrackPath extensions

Readme

Litho

A modern React component library for building TrackPath extensions and web applications. Litho provides a comprehensive set of accessible, themeable, and composable UI components, designed for rapid development and seamless integration with Tailwind CSS and Shopify Polaris icons.

Installation

npm install @trackpath/litho

Note: tailwindcss, react, and react-dom (v18+) are required as peer dependencies.

Usage

  1. Import the CSS (required for correct styling):
// index.css paths here may differ depending on your project structure
@source "./node_modules/@trackpath/litho";
@import "./node_modules/@trackpath/litho/index.css";
  1. Wrap your app with AppProvider (required for Frame and/or Form usage):
import { AppProvider, Page, Button } from "litho";

function App() {
  return (
    <AppProvider darkModeAvailable darkModeStorageKey="my-app-dark-mode">
      <Page title="Welcome to Litho">
        <Button primary onClick={() => alert("Hello!")}>
          Click me
        </Button>
      </Page>
    </AppProvider>
  );
}
  1. Use any component:
import { Banner, Card, ResourceList } from 'litho';

<Banner status="success" title="Success!">
  Your operation was successful.
</Banner>

<Card>
  <ResourceList
    items={[{ id: 1, name: 'Item 1' }]}
    renderItem={item => <div key={item.id}>{item.name}</div>}
  />
</Card>

Components

Litho exports a wide range of components, including:

  • Layout: Page, Frame, Layout, Card, Grid, Stack
  • Forms: TextField, Select, Checkbox, RadioButton, RangeSlider, ChoiceList, DatePicker, ColorField
  • Navigation: Navigation, Tabs, Pagination, TopBar, Pane
  • Feedback: Banner, Tip, InlineError, EmptyState, Loading, SkeletonText, FooterHelp
  • Actions: Button, ButtonGroup, ActionList, Popover, Modal, ContextualSaveBar
  • Data Display: Table, ResourceList, List, Badge, Tag, Thumbnail, Image, Tooltip
  • Utilities: useIndexResourceState, useTableScrollState, and more

See the source code for full API documentation and JSDoc usage examples for each component.

Theming & Customization

  • Litho is designed to work with Tailwind CSS. You can customize themes and extend styles using your Tailwind config.
// index.css paths here may differ depending on your project structure
@source "./node_modules/@trackpath/litho";
@import "./node_modules/@trackpath/litho/index.css";

Peer Dependencies

  • react >= 18
  • react-dom >= 18
  • tailwindcss >= 4

AI Assistant Integration

Litho includes comprehensive guides for AI coding assistants (Claude, ChatGPT, Cursor, Copilot, etc.) to help generate accurate, consistent UI code:

  • AI_COMPONENTS_GUIDE.md - Complete component API reference
  • AI_PATTERNS_GUIDE.md - Ready-to-use UI patterns and examples
  • AI_INTEGRATION_GUIDE.md - Guidelines for AI code generation
  • COMPONENT_QUICK_REFERENCE.md - Fast component lookup
  • AI_USAGE_IN_PROJECTS.md - How to use these guides in your projects

Using in Your Projects

After installing Litho, the guides are available in node_modules/@trackpath/litho/. Reference them in your AI prompts:

@node_modules/@trackpath/litho/AI_PATTERNS_GUIDE.md

Build a customer list page with search and filtering using Litho components.

See AI_USAGE_IN_PROJECTS.md for detailed instructions on accessing guides from projects using Litho as a dependency.

License

MIT