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

@bisraty/selam-ui

v0.1.0

Published

An accessible-first React component library. Every component follows WAI-ARIA APG patterns.

Readme

Selam UI

An accessible-first React component library. Every component follows WAI-ARIA APG patterns.

npm version CI license: MIT

"Selam" means hello/peace in Amharic. This isn't a component library that happens to be accessible — accessibility is the whole point. Every interaction pattern here is implemented from scratch against a specific WAI-ARIA Authoring Practices Guide example: correct roles, states, keyboard interactions, and focus management, with zero runtime dependencies besides React.

📖 Browse the components in Storybook →

Install

npm install @bisraty/selam-ui
import '@bisraty/selam-ui/styles.css'; // once, near your app's root
import { Tabs, TabList, Tab, TabPanel } from '@bisraty/selam-ui';

function Example() {
  return (
    <Tabs defaultValue="account">
      <TabList aria-label="Account settings">
        <Tab value="account">Account</Tab>
        <Tab value="password">Password</Tab>
      </TabList>
      <TabPanel value="account">Account settings go here.</TabPanel>
      <TabPanel value="password">Password settings go here.</TabPanel>
    </Tabs>
  );
}

react/react-dom (^18) are peer dependencies. Full usage docs, a theming guide, and an accessibility deep-dive live in the Storybook docs.

Components

| Component | APG pattern | Keyboard support | | ------------------------- | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | SkipNavLink | Skip link | Focusable via Tab; Enter jumps to main content | | Tooltip | Tooltip | Opens on hover/focus; Escape closes | | Accordion | Accordion | Arrow Up/Down between headers, Home/End, Enter/Space toggles | | Tabs | Tabs | Arrow Left/Right (or Up/Down if vertical), Home/End, roving tabindex | | Toast / ToastProvider | Alert / status live regions | Dismiss button focusable; auto-dismiss pauses on hover/focus | | Dialog / AlertDialog | Dialog (Modal) | Tab trapped inside, Escape closes and returns focus | | DropdownMenu | Menu Button | Arrow Up/Down, Home/End, type-ahead, Escape closes and returns focus | | Combobox | Combobox (list autocomplete) | Arrow Up/Down (virtual focus), Enter selects, Escape closes | | DatePicker | Date Picker Dialog | Full arrow-key grid navigation, Home/End (week), PageUp/PageDown (month), Enter, Escape | | FocusTrap | internal primitive (also exported) — powers Dialog/AlertDialog and DatePicker | Tab/Shift+Tab cycle within, focus returns to the trigger on unmount |

Escape closes every overlay above and restores focus to whatever opened it. Tab is trapped only inside Dialog/AlertDialog and the DatePicker popup — everywhere else it moves through the page normally.

Accessibility commitments

  • Keyboard support — every component implements its APG pattern's full keyboard interaction model, not just Enter/Escape. See the table above and each component's "Keyboard navigation" story.
  • Focus management — FocusTrap (exported) captures the previously-focused element, traps Tab at the boundaries, and restores focus on close. Composite widgets use roving tabindex (Accordion, Tabs, DropdownMenu, DatePicker's grid) or virtual focus via aria-activedescendant (Combobox), matching what each APG pattern actually specifies.
  • Screen reader testing — automated: every component has a jest-axe test asserting zero violations, plus Storybook's addon-a11y panel on every story. Manual testing with a real screen reader (NVDA/Windows or VoiceOver/macOS) has not yet been done — this is an open item before treating the library as production-ready, particularly for Dialog, Combobox, and DatePicker.
  • Reduced motion — useReducedMotion (exported) is used internally by Tooltip and Toast to skip animation logic entirely, not just shorten it, when prefers-reduced-motion is set.
  • Contrast — the default accent (#078930) is used for borders and focus rings (3:1 minimum); anywhere text sits directly on a solid accent fill uses the darker --selam-accent-hover shade instead, for a real margin above the 4.5:1 AA text threshold rather than a borderline pass. See the Storybook Theming page for the numbers and how to override the palette.

Roadmap

Planned, not yet built: Select, RadioGroup, Switch.

Development

npm install
npm test            # vitest + jest-axe
npm run lint
npm run typecheck
npm run storybook   # local dev server
npm run build       # tsup: ESM + CJS + .d.ts, plus the compiled stylesheet

License

MIT © Bisrat Yenehun