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

@penseapp/toolkit-react

v1.0.0

Published

A collection of reusable hooks/components

Downloads

4

Readme

toolkit-react

npm version Tag Status License Status Issues Status

This is a template file that you can extend to create your own NPM package!

How to use

Clone this repository on any folder

cd ~/my-folder/some-folder
git clone [email protected]:penseapp/toolkit-react.git

Open the package.json file and edit these props:

| Prop name | Description | Example | |---|---|---| | name | The same package name registered on NPM | @penseapp/my-package-name | | version | The first version of package (It will increment automatically later | 1.0.0 | | description | It'll appear on NPM/Github | This package to A,B,C |

Open the README.MD and update your package instructions

NPM

Create an account or login on NPM

Go to the packages section. (Here you need to choose to create on a personal account or organization)

For example:

https://www.npmjs.com/settings/penseapp/packages

Follow the tutorial: https://jamescalmus.medium.com/how-to-publish-a-scoped-npm-package-for-your-organization-767af1c99b9f

NPM AUTH TOKEN

The package uses https://github.com/mikeal/merge-release to deploy to NPM

We need to configure the NPM_AUTH_TOKEN on github secrets because the .github/workflows/deploy.yml has the call of the token

Generate a new token: https://docs.npmjs.com/creating-and-viewing-access-tokens

Copy and add to your github secrets with the NPM_TOKEN key

Github

Create a new repository on github

Create a manual tag and release (Only the first time) on the same version of the packge.json and publish the release

On this example, the version is 1.0.0

Delete this "default GIT" folder

rm -rf .git

and add the files to your repo

git add .
git commit -m 'chore: first version'
git branch -M master
git remote add origin [email protected]:penseapp/toolkit-react.git
git push -u origin master

If everything is ok, the github should start the pipeline deploy

How to install the package

TODO: -[] Replace the @penseapp/toolkit-react to your package name

yarn add @penseapp/toolkit-react

or

npm i @penseapp/toolkit-react

Github actions

This package uses the workflows/pipelines on the .github folder to trigger github actions pipelines to automatize deploy on NPM and chore things.

  • Deploy automatically on NPM
  • Bump package.json version automatically
  • Bump github version automatically
  • Bump npm version automatically
  • Label the PR's automatically.

Commitlint

-[] Enforce the commitlint

Discord integration

This package has a custom integration to Discord server. If you want to receive notifications on your preferred channel, follow the steps bellow.

If not, delete or comment the Discord notification pipelines on .github/workflows/deploy.yml github action file.

Open Discord -> select the channel -> Click on configuration -> Integrations -> View webhooks -> New webhook

Create a new webhook called Discord notification and add on Github secrets with a name of DISCORD_CHANNEL_WEBHOOK, like the GIF bellow:

Peek 2021-06-02 22-21

Now, you will receive the notifications on the desired discord channel.