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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@homebound/beam

v2.370.1

Published

[![npm](https://img.shields.io/npm/v/@homebound/beam)](https://www.npmjs.com/package/@homebound/beam)

Downloads

2,352

Readme

npm

🪵 Beam Design System

Homebound's React component design system.

To see the latest designs, check out the Figma file.

Getting Started

# Only when running for the first time to install dependencies for Beam & Truss
> yarn
> cd ./truss && npm i # Note that this will change director to /truss

# Easiest way to start. This runs Storybook.
> yarn start

# Re-build src/Css.ts after changing truss/ config files
> yarn build:truss

# Automatically re-build src/Css.ts after changing truss/ config files
> yarn watch:truss

Beam's API Design Approach

Beam is specifically "Homebound's Design System". Given this extremely narrow purpose, we can lean into the simplicity of:

  • We don't need to support everything for everyone
  • We can prefer API/UX consistency & simplicity over configuration & complexity

The most concrete manifestation of this is that we want to provide as few props as possible.

Fewer props generally means:

  1. More consistent UX for users (the component cannot behave in N different ways, depending on the page the user sees it on)
  2. Easier usage for client applications (fewer props to know and understand "...should I set this or not?")
  3. Simpler implementation for Beam components and maintainers
  4. More flexibility to change the internal implementations of Beam components and roll out them relatively easily.

All of these points are generally in stark contrast to traditional, "big" UI toolkits like Material UI, Carbon from IBM, Spectrum from Adobe, etc., where they have to be "everything for everyone", and have the large API surface areas and complexity that comes with it.

For them, a MUI application in Company A shouldn't have to look & behave exactly like a MUI application in Company B. Which makes sense.

But for Beam at Homebound, we specifically want a component that behaves in our App A to look & behave the same as it does in our App B.

Beam and Open Source

As we open source Beam, this vision of "as few props as possible", "components must look the same in every app" doesn't seem like something that other companies/projects would adopt (i.e. surely they want different colors, slightly different behavior to suit their user base, etc.).

Our proposal for solving this tension is to adopt a radically different model than "pull in the Beam npm library into your app and just use it as-is" (although you're free to do that too): it's forking.

"Adopters" of Beam should of course contribute back bug fixes and feature improvements; but they should also feel free (and encouraged) to run their own company-specific forks, and "customize by changing the source".

In this way, Beam should be seen as a place to "copy & paste" start from, rather than a project that will have 1,000s of npm downloads, and 100s of companies all collaborating on getting this one TextField implementation to behave in the 101 different ways that they each want.