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

fs-coreui

v0.4.6

Published

<!-- FIX (P0 #64): The previous README was the unmodified Vite scaffold ("React + TypeScript + Vite"), which gave consumers no clue what this package was, how to install it, or how to use a single component. WHY it matters: README is the first sur

Readme

@hfn-uicore/core

The official React design system of Heartfulness Institute — a global meditation movement that has reached millions of practitioners across 160+ countries.

Built on React 18/19, Radix UI, Tailwind CSS v4, and TypeScript. Documented with Storybook 8.


Why this exists

Heartfulness teams ship dozens of properties — donation portals, registration flows, retreat sites, mobile apps — across many languages and brand variants. This library gives every team:

  • Accessible defaults — Radix-grounded components that pass keyboard, screen-reader, and contrast checks out of the box.
  • Themable tokens — six built-in brand themes (primary, teal, secondary, burgundy, warm, black) plus CSS-custom-property hooks for one-off variants.
  • Composable building blocks — from low-level primitives (HFNButton, HFNInputText) up to feature blocks (HFNDynamicForm, HFNContactForm, HFNDataTable).
  • A meditation-friendly content modelHFNAudio and HFNVideo accept transcripts and caption tracks because guided meditations must be reachable to Deaf and hard-of-hearing meditators.

Install

The package is published to AWS CodeArtifact. Authenticate once per machine:

aws codeartifact login --tool npm \
  --repository HFN_npm_packages \
  --domain hfnnpm \
  --domain-owner 502390415551 \
  --region ap-south-1

Then install:

npm install @hfn-uicore/core

Peer dependencies. This library lists React and the Radix primitives as peer dependencies. On npm 7+ they are auto-installed; on older npm you must install them yourself.

Requires Node 20+.


Quick start

// 1. Import the bundled stylesheet once, near your app entry.
import '@hfn-uicore/core/css';

// 2. Import components by name.
import {
  HFNButton,
  HFNToaster,
  useToast,
  ThemeProvider,
} from '@hfn-uicore/core';

export function App() {
  const toast = useToast();

  return (
    <ThemeProvider>
      <HFNButton onClick={() => toast.success('Welcome 🙏')}>
        Begin meditation
      </HFNButton>
      <HFNToaster />
    </ThemeProvider>
  );
}

Components

Storybook is the source of truth — run npm run storybook (or visit the team-hosted preview, link in #design-system Slack).

Core HFNButton, HFNInputText, HFNTextarea, HFNSelect, HFNAutocomplete, HFNCityAutocomplete, HFNCheckbox, HFNRadioGroup, HFNToggle, HFNSlider, HFNInputOtp, HFNPhoneInput, HFNInputCalendar, HFNModal, HFNDrawer, HFNAlertModal, HFNConfirmDialog, HFNTooltip, HFNToaster, HFNAccordion, HFNTab, HFNStepper, HFNBreadcrumb, HFNBadge, HFNAvatar, HFNCard, HFNCarousel, HFNDataTable, HFNHeader, HFNFooter, HFNSidebar, HFNSkeleton, HFNHeading, HFNSubHeading, HFNContent, HFNImage, HFNImageGallery, HFNAudio, HFNVideo, HFNIcon, HFNFAQ.

Blocks (composed patterns) HFNContactForm, HFNDynamicForm, HFNDonationCard, HFNNewsCard, HFNProfileCard, HFNProductCard, HFNEventCard, HFNPressRelease, HFNPrinciplesGrid.

Hooks & utilities useToast, useFetchOptions, useDebounce, useIsMobile, useTheme, cn, fetchData.


Theming

Theme tokens are CSS custom properties defined in dist/hfncore.css. Switch themes by setting [data-theme] on a parent element, or by using <ThemeProvider> for runtime swaps:

<ThemeProvider>
  <App />
</ThemeProvider>

Built-in themes: theme-primary (blue), theme-teal, theme-secondary (purple), theme-burugundy, theme-warm, theme-black.

To override individual tokens for a deployment, set them on :root after importing the stylesheet:

:root {
  --hfn-sidebar-item-bg-active: #fce7f3;
  --theme-color-primary: #db2777;
}

Accessibility

This library targets WCAG 2.2 AA as a baseline.

  • All interactive components forward keyboard focus and expose accessible names.
  • HFNAudio and HFNVideo accept captions (WebVTT tracks) and transcript (text alternative) so guided meditations can be consumed by Deaf and hard-of-hearing users.
  • HFNButton defaults to type="button" to avoid accidental form submissions.
  • HFNInputText wires aria-invalid and aria-describedby to error messages.
  • HFNToaster's viewport is a polite live region — toasts are announced.
  • HFNDataTable exposes aria-sort, aria-selected, and live-region selection counts.

If you find an a11y regression, please open an issue.


Contributing

git clone <repo-url>
cd hfn-design-system
npm install
npm run storybook       # http://localhost:6006
npm run build:lib       # build the package
npm run lint

We use Husky + lint-staged on pre-commit. Conventional commit messages are appreciated.


License

Proprietary — © Heartfulness Institute. Internal use only.