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

ai-diff-commit

v0.0.3

Published

A CLI tool to generate commit messages using AI, powered by OpenAI.

Readme

AI Diff Commit

Version

Automates the creation of standardized Git commit messages using OpenAI's API.

JavaScript TypeScript OpenAI Git npm

Built-In Commit Standards

Conventional Commits Evergreen ILS

Features

  • Automated Commit Messages: Generate standardized commit messages based on the changes in your repository.
  • Automated Git Operations: Automatically add, commit, and push the changes to your repository.

Limitations

  • OpenAI API Key: Requires an API key from OpenAI to access the GPT-3 model for generating commit messages.
  • Internet Connection: Requires an active internet connection to communicate with the OpenAI API.
  • Requires a Git Repository: Needs to be run in a Git repository to access the changes for generating commit messages.

Installation Instructions

Commit Generator can be installed globally using npm:

npm install -g ai-diff-commit

Usage Instructions

Once you have set up the script using the installation instructions, you can use the ai-diff-commit command to generate commit messages based on the changes in your repository.

Flags

  • -a, --all: Add all changes in the repository to the commit. By default, only the modified files are added.
  • -h, --help: Display help information for the script.
  • -m, --model: Specify the OpenAI API language model to use for generating commit messages. See the OpenAI API documentation for available models.
  • -p, --push: Automatically push the changes to the remote repository after committing.
    • If a remote branch is not specified, the changes are pushed to a new remote branch with the same name as the current branch. (I plan to make this more configurable in the future.)

For example, to generate a commit message based on all changes in the repository and push the changes to the remote repository, you can use the following command:

ai-diff-commit -a -p

Bug Reports and Feature Requests

If you encounter any issues while using the script or have ideas for new features, please open an issue on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.