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

titan-compositions

v0.1.23

Published

Reusable Titan page compositions built on React Aria + Titan tokens

Readme

titan-compositions

Reusable Titan page compositions for cross-project usage.

This package is the place to publish stable, importable building blocks so /titan can reuse components instead of regenerating them.

Current status

Incremental exports:

  • TitanBreadcrumb (implemented)
  • TitanNavbar (implemented)
  • TitanCardGrid / TitanCard (implemented)
  • TitanTable + TitanTableHeader, TitanColumn, TitanTableBody, TitanRow, TitanCell (React Aria Table; implemented)
  • TitanTwoUpOneDownLayout (implemented)
  • TitanButton / TitanIconButton (implemented)
  • TitanPill (implemented)
  • TitanTag (implemented)
  • TitanMenuDropdown (implemented)
  • TitanSelect (implemented)
  • TitanTabs (implemented)
  • TitanPagination (implemented)
  • TitanDrawer (implemented)
  • TitanDialog (implemented)
  • TitanTooltip (implemented)
  • TitanToastRegion (implemented)
  • TitanCheckboxField / TitanRadioGroupField / TitanSwitchField (implemented)
  • TitanInputField / TitanTextareaField (implemented)

Dependency contract

Consumer apps should install:

  • react
  • react-dom
  • react-aria-components
  • lucide-react (primary icon set; use first)
  • @tabler/icons-react (optional fallback when an icon is not in Lucide)

And import composition styles:

import 'titan-compositions/styles'

And load Titan styles in order:

  1. tokens/css/titan.css
  2. active theme (tokens/themes/_*.css)
  3. titan-compositions/styles

Next.js App Router

titan-compositions depends on react-aria-components (and React context). Those APIs exist only in the client React runtime. In Next.js App Router, pages and layouts are Server Components by default, so importing from titan-compositions in a Server Component can cause:

TypeError: createContext is not a function

Rule: Any module that imports from titan-compositions in a Next.js App Router app must be a Client Component: add "use client" at the top of that file, or only import Titan from components that already have "use client". See docs/integration/nextjs-app-router.md for patterns (page-level "use client" vs client shell).

In Vite, CRA, Remix, etc., there is no Server/Client split; this rule does not apply and adding "use client" is harmless (directives are ignored).

Quick usage

import {
  TitanTwoUpOneDownLayout,
  TitanTable,
  TitanTableHeader,
  TitanColumn,
  TitanTableBody,
  TitanRow,
  TitanCell,
} from 'titan-compositions'
import 'titan-compositions/styles'

const columns = [
  { key: 'creator', header: 'Creator' },
  { key: 'network', header: 'Network' },
  { key: 'engagement', header: 'Engagement' },
]

const rows = [
  { id: 'r1', creator: 'Luna Media', network: 'Instagram', engagement: '6.7%' },
  { id: 'r2', creator: 'North Spark', network: 'TikTok', engagement: '4.1%' },
  { id: 'r3', creator: 'Daily Scope', network: 'YouTube', engagement: '8.2%' },
  { id: 'r4', creator: 'Urban Pulse', network: 'X', engagement: '3.5%' },
]

export function Page() {
  return (
    <TitanTwoUpOneDownLayout
      theme="insights"
      breadcrumbItems={[
        { id: 'home', label: 'Home' },
        { id: 'creator-discovery', label: 'Creator discovery' },
      ]}
      breadcrumbCurrentLabel="Campaigns"
      leftTop={<section>Left 2/4 card content</section>}
      rightTop={<section>Right 2/4 card content</section>}
      bottom={
        <TitanTable aria-label="Campaigns">
          <TitanTableHeader columns={columns}>
            {(col) => <TitanColumn id={col.key}>{col.header}</TitanColumn>}
          </TitanTableHeader>
          <TitanTableBody items={rows}>
            {(row) => <TitanRow id={row.id} columns={columns}>{(col) => <TitanCell>{row[col.key]}</TitanCell>}</TitanRow>}
          </TitanTableBody>
        </TitanTable>
      }
    />
  )
}