Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@homebound/beam

Package Overview
Dependencies
Maintainers
39
Versions
894
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@homebound/beam

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

  • 2.344.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by73.73%
Maintainers
39
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 15 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc