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

@bigbinary/neeto-site-blocks

v1.16.14

Published

Common blocks for neeto-site

Downloads

1,491

Readme

@bigbinary/neeto-site-blocks

neetoSiteBlocks is the library that serves the building blocks for website in neeto-site. It is used in neeto-site-web and neeto-site-eui to serve the blocks.

Installation

yarn add @bigbinary/neeto-site-blocks

Usage

Eg: FeatureWithRightImage

Props

  1. id: To specify the id of the block.
  2. configuration: Object containing the configuration for the block. It contains the following keys:
    1. design: To specify the design of the block.
    2. properties: To specify the properties of the block.
  3. className: To specify the external classnames.

Here is an example of how to use the FeatureWithRightImage block.

import { FeatureWithImage } from "@bigbinary/neeto-site-blocks";

configurations: {
      properties: {
        content: {
          title: "Title",
          description: "Description",
          position: "left",
        },
        buttons: [],
        image: {
          src:
            "https://tailwindui.com/img/component-images/inbox-app-screenshot-2.jpg",
          position: "right",
        },
        backgroundImage: {
          src: "",
        },
      },
      design: {
        body: {
          backgroundColor: "#FFFFFF",
          paddingVertical: 20,
          borderTop: {
            borderStyle: "none",
            borderWidth: 0,
            borderColor: "#FFFFFF",
          },
          borderBottom: {
            borderStyle: "none",
            borderWidth: 0,
            borderColor: "#FFFFFF",
          },
        },
        title: {
          fontSize: "3xl",
          fontWeight: "extrabold",
          color: "#2F3941",
          marginTop: 0,
          marginBottom: 5,
          lineHeight: "none",
          letterSpacing: "normal",
        },
        description: {
          fontSize: "base",
          fontWeight: "normal",
          color: "#68737D",
          marginTop: 0,
          marginBottom: 8,
          lineHeight: "normal",
          letterSpacing: "normal",
        },
        buttons: {
          fontSize: "sm",
          fontWeight: "medium",
          color: "#FFFFFF",
          backgroundColor: "#4F46E5",
          border: {
            borderStyle: "none",
            borderWidth: 0,
            borderColor: "#4F46E5",
          },
          borderRadius: "sm",
          paddingHorizontal: 4,
          paddingVertical: 2,
          letterSpacing: "normal",
        },
        image: {
          width: "3/4",
          borderRadius: "sm",
        },
        backgroundImage: {
          backgroundSize: "cover",
          backgroundPosition: "center",
          backgroundRepeat: "no-repeat",
        },
      },
    },

const FeatureWithImageBlock = () => {
  return (
    <FeatureWithImage
      id="feature-with-right-image"
      configuration={configuration}
      className="my-10"
    />
  );
};

Development

Install all the dependencies by executing the following command

yarn install
yarn start

This will open up a playground for building the different blocks.

Building and releasing.

The @bigbinary/neeto-site-blocks package gets published to NPM when we merge a PR with patch, minor or major label to the main branch. The patch label is used for bug fixes, minor label is used for new features and major label is used for breaking changes. You can checkout the Create and publish releases workflow in GitHub Actions to get a live update.

In case if you missed to add the label, you can manually publish the package. For that first you need to create a PR to update the version number in the package.json file and merge it to the main branch. After merging the PR, you need to create a new github release from main branch. Whenever a new release is created with a new version number, the github actions will automatically publish the built package to npm. You can checkout the Publish to npm workflow in GitHub Actions to get a live update.

Please note that before publishing the package, you need to verify the functionality in some of the neeto web-apps locally using yalc package manager. The usage of yalc is explained in this video: https://youtu.be/QBiYGP0Rhe0