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

@eurydos/structogram-component

v1.0.4

Published

A standalone package containing React components for structogram powered by MUIv5.

Downloads

5

Readme

Structogram components

A standalone package containing React components for structogram powered by MUIv5.

This package is an attempt to refactor the codebase of another project. I figured that someone somewhere might want an MUI-based React component library which renders to a very niche diagram. As such, it might not receive much support since the package itself is now complete. It will serve as a framework for my other projects. In other words, I will build projects around this package, rathert than tweaking this package to fit the requirements of other projects.

Noteworthy

The noteworthy hack of this project is the text shadow in binary branch block. Originally, I placed a white background around the "true" and "false" label to separate them from the diagonal line, but I recently improved it by adding text shadow, which looks better than a solid rectangle.

Development

Each components in components/ are the core of this package. Note that StructogramComponentText and StructogramComponentWrapper are diagrams, instead they are reusable components which made up the diagram themselves.

Each diagram is to be wrapped in StructogramComponentWrapper to provide consistent padding and other styling. Similarly, typographies are to be wrapped in StructogramComponentText for the same reasons.

Components in assets/ are used by the binary branch. In arguable the most complex component of the entire package.