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

@alkamin/indigo

v1.6.2

Published

Create a chakra-ui based application component library with one command

Downloads

58

Readme

indigo

Create a chakra-ui based application component library with one command

oclif semantic-release

Version Downloads/week License

Libaries created with Indigo are pre-configured with:

  • GitHub actions based build process with semantic-release and automated changelog generation and publishing to the GitHub Package Repository (GPR) or NPM
  • TypeScript
  • Storybook

Getting started

Indigo works with node versions < v15. We encourage using nvm to easily manage your node versions.

If you're using nvm you can ensure you're on the right version with nvm use 14.

$ npx @alkamin/indigo new my-component-library
$ cd my-component-library
$ npm start

CI/CD Configuration

Defining a repository secret named RELEASE_PAT is required for the semantic release workflow. The user who owns the token will be listed as the creator of all releases triggered by the semantic release GitHub action.

Publishing to NPM

If you choose NPM as your publishing method, you will need to provide an NPM token (NPM_TOKEN) to the build process:

  • generate an NPM access token -- NPM provides helpful guidance
  • in your UI library's repository, create a secret named NPM_TOKEN and set the value to the token you created in the previous step

Changing the commit message format

By default, Indigo configures semantic-release to use the conventionalcommits preset. Read more about conventional commits You can alter the preset setting of the @semantic-release/commit-analyzer and @semantic-release/release-notes-generator plugins in your library's package.json file. Read more about configuring the commit message format

Changing the changelog file

By default, Indigo configures the build process to generate a CHANGELOG.md file. If you'd like to use a different name for the changelog file alter the configuration of the @semantic-release/changelog and @semantic-release/git plugins in your library's package.json file.

CLI usage

$ npm install -g @alkamin/indigo
$ indigo COMMAND
running command...
$ indigo (-v|--version|version)
@alkamin/indigo/1.6.2 linux-x64 node-v12.22.5
$ indigo --help [COMMAND]
USAGE
  $ indigo COMMAND
...

Commands

indigo generate COMPONENTNAME

Scaffold a new component

USAGE
  $ indigo generate COMPONENTNAME

ARGUMENTS
  COMPONENTNAME  the name of the component you want to generate

OPTIONS
  -h, --help   show CLI help
  --skipStory

See code: src/commands/generate/index.ts

indigo help [COMMAND]

display help for indigo

USAGE
  $ indigo help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

indigo new PACKAGENAME

Scaffold a new UI library

USAGE
  $ indigo new PACKAGENAME

ARGUMENTS
  PACKAGENAME  the name of the package you want to generate

OPTIONS
  -h, --help  show CLI help
  --useNpm

See code: src/commands/new/index.ts