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

cheshire-cat-v2

v0.2.9

Published

This is a [Next.js](https://nextjs.org/) app for cheshire cat v2.

Downloads

14

Readme

This is a Next.js app for cheshire cat v2.

Getting Started

Install dependencies:

yarn install

Decrypt the environment files if you haven't done so.

Prerequisite: You must have Docker installed.

  1. Go to codeship -> projects -> cheshire-cat-v2.
  2. Click on the project.
  3. Click on the Project Settings button in the top right of the screen.
  4. Navigate to the General tab, and there you can download the AES key.
  5. Rename that file to codeship.aes and add it to the root directory of the cheshire-cat-v2 repo. Then run the following commands to decrypt the environment files:
# If you do not have the Jet CLI installed, run the following to install via Homebrew:
brew install --cask codeship/taps/jet

# To decrypt the development env file, run:
jet decrypt .env-cmdrc.enc .env-cmdrc

Run the development server:

npm run dev
# or
yarn dev

Open http://localhost:1865 with your browser to see the result.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Linting

Add eslint extension to VS code (or whatever editor you are using).

Before pushing up a PR - ensure that you run the lint command and address any issues:

yarn lint

alternatively - you can setup auto-linting in VS code:

  1. Create a .vscode folder at the root level
  2. add a file for settings.json
  3. add the following to this file to enable auto-linting on save:
{
  "javascript.preferences.quoteStyle": "single",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
  1. Note - .vscode is part of the .gitignore file because not everyone uses VScode AND any other personalized vscode settings would show up here. Feel free to choose your own experience, so long as we ensure linting is in line before we push up PRs.

Production Build

To simulate a production build:

yarn build

Testing

To run tests:

yarn test

Localization

Localization is done by next-i18next. You can read the docs here. Hardcoded strings should never be place inside the markup but rather in the appropriate files within /public/locales/ directories.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository