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

quikcommit

v1.0.3

Published

A CLI tool to automatically generate git commit messages based on last file changes using AI.

Downloads

255

Readme

QuikCommit

QuikCommit is a command-line tool that automatically generates concise commit messages based on your git changes. You can use either a default non-AI message or integrate with Google's Generative AI to generate smarter commit messages.

Table of Contents


Introduction

QuikCommit streamlines your Git workflow by auto-generating commit messages based on your recent file changes. You can either use a default message or, for more intelligent suggestions, leverage Google's Generative AI.

Features

  • Auto-generates commit messages based on the recent git diff.
  • Optional integration with Google's Generative AI for smarter, context-aware commit messages.
  • Supports a fallback to non-AI commit messages if no API key is provided.
  • Simple and easy to integrate into your workflow.

Installation

Install as a Dependency

  1. Install globally via npm:

    npm install -g quikcommit
  2. Initialize a Git repository (if not already done):

    git init
  3. Optional: Add your Google Generative AI API key for smarter commit messages:

    • Create a .env file in your project’s root folder and add:
      GEMINI_API_KEY=your_google_ai_api_key
  4. Run quikcommit in your Git repository to auto-generate commit messages.

Clone the Repository

Alternatively, you can clone and run the project directly:

  1. Clone the repository:

    git clone https://github.com/your-username/quikcommit.git
  2. Navigate to the project directory:

    cd quikcommit
  3. Install dependencies:

    npm install
  4. Optional: Set up the AI API key in a .env file as described earlier for smarter commit messages.

  5. Run the script:

    node index.js

Usage

Without AI Key

If you do not set an API key, QuikCommit will use a fallback commit message. Simply run:

quikcommit

The tool will:

  1. Check for changes using git diff.
  2. Generate a default message like "Changes made" if no AI key is provided.
  3. Stage and commit the changes automatically.

With AI Key

For AI-powered commit messages, ensure your API key is set in the environment variables:

  1. Add your GEMINI_API_KEY in a .env file.

  2. Run:

    quikcommit

With the API key, QuikCommit will:

  1. Use Google's Generative AI to analyze the git diff.
  2. Generate an AI-suggested commit message based on the changes.
  3. Stage and commit the changes with the AI-generated message.

CLI Commands

  • Generate Commit and Push Changes:

    quikcommit
  • If you are not in a Git repository, initialize it first:

    git init

Environment Variables

If you want AI-generated commit messages, set up your environment variables:

  1. Create a .env file in your project’s root directory.

  2. Add your API key:

    GEMINI_API_KEY=your_google_ai_api_key

Without this key, QuikCommit will fall back to using default non-AI commit messages.


License

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


Summary

  • Option 1: Use default commit messages (no API key needed).
  • Option 2: Set up a GEMINI_API_KEY for AI-powered commit messages.