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

gitlexjs

v0.2.1

Published

An AI-powered tool designed to generate and enhance Git commit messages, simplifying the developer's workflow and ensuring meaningful version histories.

Downloads

22

Readme

npm version

GitLexJS 🚀✨

GitLexJS is a command-line tool that uses the power of AI to generate meaningful commit messages for your Git changes. Leveraging OpenAI's GPT models, GitLexJS analyzes your code diffs and crafts commit messages that accurately reflect the changes you've made. Say goodbye to the struggle of coming up with commit messages and let GitLexJS do the work for you! 🎉

Table of Contents

Prerequisites

Ensure you have Node.js and npm installed. If not, download and install them from Node.js's official site.

Important: You will also need an OpenAI API key. See API Key Configuration below.

Installation 📦

Install GitLexJS globally:

npm install -g gitlexjs

Usage 🚀

GitLexJS uses an interactive menu for user input.

To start the tool, simply run:

gitlex

You will be presented with a list of options:

  • Generate a commit message
  • Set API Key
  • Replace API Key
  • Delete my API Key
  • Check if API key is set
  • Select OpenAI model
  • Show version
  • Exit

Select the option you want by using the arrow keys and pressing Enter.

Note: The tool will prompt you for the OpenAI API key if it's not found in the configuration file. Your API key will be stored locally in the .gitlex-config.json file.

API Key Configuration 🔑

For GitLexJS to work, you'll need an OpenAI API key:

  1. Sign up for an API key with OpenAI.
  2. Run GitLexJS and select the appropriate option from the interactive menu to set, replace, or delete your API key. The key is then stored locally and securely in .gitlex_config.json.

⚠️ Note: Never share your API key or commit it directly to your codebase.

Roadmap 🗺️✨

Join us in refining your commit messages. Look into our future plans in the ROADMAP.md file. Feedback, contributions, and suggestions are always welcome!

Development Workflow 🛠

For contributors, we follow the gitflow workflow:

  • Develop: Our main development branch.
  • Release: For final testing before a release.
  • Main: Stable releases are merged here.

Local Development Setup:

  1. Clone the repository:
git clone https://github.com/krjordan/GitLexJS.git
cd GitLexJS
  1. Install dependencies:
npm install

Running the Application:

To run the application locally, use the following command:

npm start

Building the Application:

To build the application, use the following command:

npm run build

Linting:

To run the linter, use the following command:

npm run lint

Testing:

To run tests, use the following command:

npm run test

Contributing 🤝

Your contributions are eagerly awaited! From bug reports, feature requests to new ideas – share them all. Dive into the CONTRIBUTING.md file for guidance.

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Raise a pull request detailing your additions.

License 📄

GitLexJS is open-sourced under the MIT License. Dive into the LICENSE.md for all the specifics.