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

kitchentemplate

v0.0.3

Published

Template for a cross plattform react app

Downloads

2

Readme

About

A template for creating npm packages

How to setup your project

  1. Clone this repo or "use as template" and upload it to GitHub
  2. Setup GitHub Secrets
  3. Get your Sonar credentials
  4. Configure and run the setup script
  5. Configure Quality Gate in Sonar

2. GitHub Secrets

If not done by your organisation you will need to define the following secrets for your repository or your organisation:

  • GITHUB_TOKEN
  • NPM_TOKEN

(Note: You will also need to add a secret for Sonar in step 3.)

3. Sonar

Sonar Cloud will be used to analyse our project in terms of code-quality: https://en.wikipedia.org/wiki/Software_quality Therefore we need to get credentials for our project. Create a Sonar-Account if you dont have one (it is free).

  • Visit: https://sonarcloud.io/
  • Select your profile or organisation.
  • Select the GitHub project: https://sonarcloud.io/projects/create
  • Configure "With GitHub Actions"
  • Follow Step 1: Add the secret to your repository
  • "Skip" step 2
  • Copy and paste the values of "sonar.projectKey" and "sonar.FireboltCasters" into the setup.json

4. Setup Script

For the correct upload to npm and sonar and keep everything working correctly, the package.json file needs to be setup correctly. This can be tedious, so that you only need to configure the setup.json file to match your project:

{
  "package": {
    "name": "<kitchentemplate>",
    "description": "<packageDescription>",
    "keywords": [
      "npm-template"
    ],
    "repositoryURL": "https://github.com/FireboltCasters/npm-template.git",
    "author": "Steffen Droppelmann",
    "contributors": [
      {
        "name": "Nils Baumgartner",
        "email": "[email protected]",
        "url": "https://github.com/FireboltCasters"
      },
      {
        "name": "Steffen Droppelmann",
        "email": "[email protected]",
        "url": "https://github.com/FireboltCasters"
      }
    ],
    "license": "MIT"
  },
  "sonar": {
    "projectKey": "ExampleKey",
    "FireboltCasters": "ExampleOrganization"
  }
}

Then, run the following command: (Note: After running this command, the setup files will be deleted)

npm run setup

5. Configure Quality Gate

Push your current project to GitHub. After that you should see on GitHub under "Actions" that some GitHub-Actions are being executed. The Sonar-Action will firstly fail with:

ERROR: QUALITY GATE STATUS: FAILED

This is because we haven't told Sonarcloud how it should measure the Quality Gate.

  • Visit your project at: https://sonarcloud.io/projects/
  • Select: "Set New Code definition"
  • Select the code definition for your match. We recommend: "Previous version"
  • Re-Upload your some minor change in your GitRepo to the master

Contributors

The FireboltCasters