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

@idemax/commit-gpt

v0.0.3

Published

This Node package uses OpenAI's GPT model to automatically generate concise and informative Git commit messages, aimed at developers looking to enhance commit message quality with minimal manual effort.

Downloads

3

Readme

Commit GPT

Overview

This tool automatically generates succinct and informative commit messages for files within a Git repository, leveraging OpenAI's GPT model. Designed for developers seeking to improve commit message quality without the overhead of crafting detailed descriptions manually.

Features

  • Generates commit messages based on file changes
  • Supports custom models from OpenAI
  • Interactive confirmation for each commit
  • Option to skip confirmations with --trust flag
  • Ensures commit messages follow best practices for professional software development

Prerequisites

  • Node.js (v20.11.0 or later)
  • Git
  • An OpenAI API key

Setup

  1. Clone the Repository

    Clone the project repository and navigate to the project directory:

    git clone <repository-url>
    cd <repository-directory>
  2. Install Dependencies

    Install the required Node.js dependencies. Ensure you have Node.js installed (refer to .nvmrc for the required version):

    npm install
  3. Configure Environment Variables

    Create a .env file in the project root with your OpenAI credentials:

    OPENAI_API_KEY=<your-key-from-https://platform.openai.com/api-keys>
    OPENAI_API_MODEL=gpt-4

Usage

  1. Check for Git Changes

    Ensure you're in a Git repository with staged changes ready for commit.

  2. Run the Tool

    Execute the script to start generating commit messages:

    node index.js

    Use the --trust flag to skip commit confirmations:

    node index.js --trust
  3. Follow Prompts

    The script will prompt you to confirm commit messages for each changed file. Respond with yes or no.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for improvements or bug fixes.

The soul of this project is AI thus I push you to use AI to improve this project.

Rules for contributing:

  • The commits and commit message should be made by this project.
  • Maybe more along the project...

License

This project is licensed under the ISC License. See the LICENSE file for details.

Disclaimer

This tool is provided as-is with no guarantees. Use at your own risk.

Check OpenAI's usage policies and pricing before using the API: https://openai.com/pricing

This project is AI based and may generate inappropriate or offensive content. Use with caution and review the generated messages before committing.

Everything you see here is mostly done or with help of AI.

Enjoy! =)


Change Log

All notable changes to this project will be documented in this file.

Future updates...

0.0.3 (2024-02-08)

  • Add NPM package publication scripts

alpha-0.0.2 (2024-02-08)

  • Contributing guidelines
  • Change log
  • Better disclaimer
  • Add .npmignore file
  • Added repository, bugs, and homepage URLs to package.json
  • Refactored debug logging for better maintainability
  • Supported loading env variables from .commit-gpt file
  • Expanded README with guidelines and project details

alpha-0.0.1 (2024-02-07)

  • Initial release
  • Support for all GPT models
  • Support external API key
  • Interactive commit confirmation
  • Trust flag for skipping confirmations
  • Best practices for commit messages
  • Add .nvmrc file
  • README.md generation
  • License information
  • Disclaimer