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

@salecycle/beyable-ui

v1.1.7

Published

Ui library of Beyable projets

Readme

@salecycle/beyable-ui — Design System

Internal React component library for Beyable, published on npm as @salecycle/beyable-ui.

Storybooksunny-figolla-cbf0e6.netlify.app (auto-deployed via GitHub Actions)


Tech stack

  • React 18 + TypeScript
  • CSS Modules + CSS custom properties (design tokens --ds-space-*)
  • Rollup for bundling (CJS + ESM output)
  • Storybook 8 (Vite builder) for interactive documentation

Installation & local development

# Clone the repository and install dependencies
npm install

# Start Storybook (interactive documentation)
npm run storybook

Deploy Storybook (private repo)

GitHub Pages does not work for free on private repos. Use Netlify via GitHub Actions instead (no need to link the private repo to Netlify).

Setup (one time)

  1. Create a free account at netlify.com

  2. Add new site → Deploy manually (empty site is fine)

  3. Copy the Site ID : Site settings → General → Site details

  4. Create a Personal access token : User settings → Applications → Personal access tokens

  5. Add two secrets (not variables!) to the GitHub repo (Settings → Secrets and variables → Actions → Secrets tab → New repository secret) :

    • NETLIFY_AUTH_TOKEN → your Netlify token
    • NETLIFY_SITE_ID → your site ID

    Important: use the Secrets tab, not Variables. The workflow reads secrets.NETLIFY_*, not vars.NETLIFY_*.

Each push to main triggers .github/workflows/storybook-netlify.yml and publishes Storybook automatically.

Troubleshooting

| Error in Actions | Fix | |---|---| | Missing secret NETLIFY_AUTH_TOKEN | Add it in Secrets tab (not Variables) → Settings → Secrets → Actions | | Missing secret NETLIFY_SITE_ID | Same — must be a Secret, not a Variable | | 401 Unauthorized | Regenerate the Netlify token and update the secret | | 404 Not Found | Verify the Site ID matches your site (sunny-figolla-cbf0e6) |

After fixing secrets, re-run the workflow: Actions → Deploy Storybook to Netlify → Re-run all jobs.

Alternative — local only

npm run storybook          # dev server at http://localhost:6006
npm run build-storybook      # static build in storybook-static/
npx serve storybook-static   # preview the build locally

Link the library to a local project

# In this repository
npm link

# In your app
npm link @salecycle/beyable-ui

After every code change:

npm run buildlib

Build & npm publishing

# Full build (Rollup → lib/cjs + lib/esm)
npm run prepublishOnly

# Log in to npm
npm login

# Publish stable release
npm publish

# Publish a beta version (update version to x.x.x-beta.0 first)
npm publish --tag beta

Project structure

src/
├── components/          # 31 components, each in its own folder
│   ├── Btn/
│   │   ├── Btn.tsx
│   │   ├── Btn.module.css
│   │   ├── types.ts
│   │   └── Btn.stories.tsx   ← co-located Storybook story
│   └── ...
├── styles/              # Global CSS modules (Flex, Margin, Typo, Colors…)
├── index.tsx            # Public entry point (exports)
└── Introduction.stories.tsx  ← Storybook landing page

Available components

| Category | Components | |---|---| | Buttons | Btn, BtnGroup, BtnSwitch, IconBtn | | Forms | Textfield, SearchBar, Select, Checkbox, Radio, Switch, Fieldset | | Layout | Box, Stack, StackRow, Inline, InlineColumn, Container, Section, Article, ArticleFoldable, Hr | | Navigation | TabBar, TabItem, Breadcrumb, Collapse, Dropdown, DropdownSection | | Overlays | Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelHeader, PanelBody, PanelSection, Confirm | | Lists | Listbox, ListboxItem, ListboxSep, ListboxGroupLabel | | Feedback | Spinner, SpinnerLogo, Message, EmptyState, Kpi, KpiList, KpiItem | | Utilities | Copy, Text, Picto, Tooltip |


License

MIT © Beyable