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

ziopencommit

v1.0.4

Published

GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI

Downloads

25

Readme


Setup

  1. Install Zi OpenCommit globally to use in any repository:

    npm install -g ziopencommit
  2. Get your API key from OpenAI. Make sure you add payment details, so API works.

  3. Set the key to Zi OpenCommit config:

    ziopencommit config set OPENAI_API_KEY=<your_api_key>
  4. Set GPT model to change gpt-3.5-turbo as default:

    zc config set model=gpt-4

    Your api key is stored locally in ~/.ziopencommit config file.

Usage

You can call Zi OpenCommit directly to generate a commit message for your staged changes:

git add <files...>
ziopencommit

You can also use the oc shortcut:

git add <files...>
zc

Features

Preface commits with emoji 🤠

GitMoji convention is used.

To add emoji:

zc config set emoji=true

To remove emoji:

zc config set emoji=false

Postface commits with descriptions of changes

To add descriptions:

zc config set description=true

To remove description:

zc config set description=false

Internationalization support

To specify the language used to generate commit messages:

# de, German ,Deutsch
zc config set language=de
zc config set language=German
zc config set language=Deutsch

# fr, French, française
zc config set language=fr
zc config set language=French
zc config set language=française

The default language set is English
All available languages are currently listed in the i18n folder

Git flags

The ziopencommit or zc commands can be used in place of the git commit -m "${generatedMessage}" command. This means that any regular flags that are used with the git commit command will also be applied when using ziopencommit or zc.

zc --no-verify

is translated to :

git commit -m "${generatedMessage}" --no-verify

Ignore files

You can ignore files from submission to OpenAI by creating a .ziopencommitignore file. For example:

path/to/large-asset.zip
**/*.jpg

This is useful for preventing ziopencommit from uploading artifacts and large files.

By default, ziopencommit ignores files matching: *-lock.* and *.lock

Git hook

You can set ZiOpenCommit as Git prepare-commit-msg hook. Hook integrates with you IDE Source Control and allows you edit the message before commit.

To set the hook:

zc hook set

To unset the hook:

zc hook unset

To use the hook:

git add <files...>
git commit

Or follow the process of your IDE Source Control feature, when it calls git commit command — Zi OpenCommit will integrate into the flow.