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

@hipherd/core

v0.1.0

Published

Core npm module for all shared UI components, server middlware, and configs for Hipherd

Downloads

3

Readme

@hipherd/core

This package is used as the core module for shared UI components, server middleware, and configs for Hipherd.

Setup

There are some things you should download and install on your machine to run this project

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install nvm and the latest version of node (DO NOT INSTALL USING HOMEBREW)
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
nvm install node
brew install yarn --without-node

Commands

  • npm start | Runs storybook against our UI components
  • npm run build | Builds the files into the dist directory and copies over the README and package.json.
  • npm run publish:dist | Publishes the dist directory
  • npm run link-pkg | Will run yarn link within the dist directory after running a build
  • npm run unlink-pkg | Will run yarn unlink within the dist directory

Developing

Use the yarn link command to symlink this package with another project that references it. Instructions can be found here

You can also use the built in pre-built npm scripts I wrote that will handle this linking.

Preparing for publishing

When you're ready to publish, just do the following:

  1. Make sure it build successfully by running npm run build
  2. Bump up the version with npm version [major | minor | patch] with an optional -m "Message"
  3. Run npm run publish:dist or redo the build and then separately run npm publish dist --access=public

Note: we are doing public access for now until we're rich enough to pay for a private repo)

Stories

This project includes integration with Storybook in order to create a plaground environment to test all of our UI components

React Component UI Library

Our core React Components exist within the src/ui. We are using Webpack 4 for compilation in order to create CommonJS modules of our components. Our component stylesheets also get compiled through css-loader and MiniCssExtractPlugin to generate a CSS file that can be referened in other projects that use this library. Since we are following a pseudo css-module pattern, these CSS classnames will be namespaced to avoid any conflicts.

Anyone using the UI library will have access to the following:

  • @hipherd/core/ui/scss/index.scss | The main Global Theme scss file that holds our main theme. We have not compiled this as a css file to enable others to use pieces of it as they see fit
  • @hipherd/core/ui/components.js | The main module that holds all the React components
  • @hipherd/core/ui/components.css | The namespaced CSS library specifically for components, whose styles may or may not be affected by the Global Theme