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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agusmgarcia/react-essentials-commands

v0.14.0

Published

Set of opinionated commands for NextJS applications, libraries and Azure functions

Readme

React Essentials Commands

Set of opinionated commands to build, check, deploy, format, pack, run and test NextJS applications and libraries and Azure functions.

Setup

In your package.json file, make sure you have set core: "app" in case it is a NextJS application, core: "lib" for library, core: "azure-func" for Azure functions or core: "node" for NodeJS applications.

// ./package.json

{
  "core": "app",
}

Then, add the following command within the scripts section of the package.json.

// ./package.json

{
  "scripts": {
    // ...
    "regenerate": "react-essentials-commands-regenerate",
  },
}

And run:

npm run regenerate

Commands

This will create all the necessary files to run the application.

Deploy

npm run deploy

It is a script that automatically creates corresponding Git tags based on the type of the commits. It also forward the changes to the following tags as well. For example, if you make a fix on top of the tag v1.0.2, it is going to create v1.0.3. But, if there is also a tag like v1.1.8, it is going to cherry-pick the fix and merge it on top of that, creating the tag v1.1.9. This action is repeated until the last tag.

Interactive mode

When running npm run deploy, the process start merging commits into the differents tags. That's made to propagate changes across upper versions automatically. In case you want to go step by step use the --interactive flag.

npm run deploy -- --interactive

No tag

When running npm run deploy, the process performs some operations and commits the changes under new tags. If you want to skip the tag creation you can use the --no-tag flag. This will cause to skip the first tag creation and the abortion of the subsequent commands.

npm run deploy -- --no-tag

Regenerate

npm run regenerate

Regenerate the files with the latest version. Based on the core property you set in the package.json some files are generated and some not.

Here the list of the files:

  • .github/CHANGELOG.md
  • .github/README.md
  • .github/workflows/release.yml
  • pages/_app.css
  • pages/_app.tsx
  • src/index.css
  • src/index.ts
  • src/functions/httpTrigger1.ts
  • .env.local
  • .eslintrc.js
  • .funcignore
  • .gitignore
  • .nvmrc
  • host.json
  • jest.config.js
  • local.settings.json
  • next.config.js
  • package.json
  • postcss.config.js
  • prettier.config.js
  • tsconfig.json
  • webpack.config.js

Specific files

By default the command regenerates all the files. But you can select which ones by using the --file= argument.

npm run regenerate -- --file=local.settings.json

You can set the argument multiple times to target multiple files.

Start

npm start

It creates a server to run the applications.

Change port

By default the server is created at http://localhost:3000. In case you want to set another port explicitly, append the --port= parameter.

npm start -- --port=3001

Test

npm test

Runs all the tests files located in the project.

Select test files

If you want to run some tests for specific files use the --pattern argument to the test script.

npm test -- --pattern=src/mytest.test.ts

Watch test files

If you want to watch files for changes and rerun tests related to changed files use the --watch argument to the test script.

npm run test -- --watch