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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@justadi10/logline

v1.0.0

Published

Git CLI tool that writes my commit messages for me.

Downloads

14

Readme

Logline

Git CLI tool that writes my commit messages for me.

Logline makes committing code frictionless and consistent without forcing you to remember Conventional Commit rules or manually type messages every time. It uses AI to analyze your code changes and generates meaningful commit messages automatically.

Features

  • ** AI-Powered Messages**: Uses Google Gemini to analyze your git diff and generate contextually relevant commit messages
  • ** Conventional Commits**: Automatically follows conventional commit format (type(scope): description)
  • ** Interactive CLI**: Simple yes/no prompts with option to customize messages
  • ** Smart Analysis**: Understands code changes, not just filenames
  • ** Zero Configuration**: Works out of the box with minimal setup
  • ** Fallback Support**: Works even without AI when API is unavailable

Installation

Global Installation

npm install -g logline

Local Development

git clone https://github.com/JustAdi10/Logline.git
cd Logline
npm install
npm link  # Makes 'lol' command available globally

🔑 Setup

  1. Get your free Gemini API key from Google AI Studio

  2. Create a .env file in your project directory:

echo "GEMINI_API_KEY=your-api-key-here" > .env
  1. Or set it as an environment variable:
export GEMINI_API_KEY="your-api-key-here"

Usage

Basic Usage

  1. Stage your changes as usual:
git add .
  1. Run Logline instead of git commit:
lol  # or `logline` if you prefer
  1. Review the AI-generated commit message:
Generating commit message with AI...

Suggested commit message:
   feat: add AI-powered commit message generation

✔ Use this commit message? › (Y/n)
  1. Choose your action:
    • Yes: Commits with the suggested message
    • No: Prompts you to enter a custom message
    • Ctrl+C: Cancels the operation

Example Workflow

# Make your changes
echo "console.log('Hello World')" >> app.js

# Stage changes
git add app.js

# Let Logline handle the commit
lol

Example Messages

Instead of generic messages, Logline generates contextual ones:

| Traditional | Logline Generated | |------------|-------------------| | update app.js | feat: add hello world logging functionality | | fix bug | fix: resolve undefined variable error in auth | | change readme | docs: update installation instructions |

How It Works

  1. Analyzes Changes: Reads your git diff --staged to understand what actually changed
  2. AI Processing: Sends the diff to Gemini AI with specialized prompts for commit message generation
  3. Format Enforcement: Ensures output follows conventional commit standards
  4. User Control: Always gives you the final say on the commit message

Configuration

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | GEMINI_API_KEY | Your Google Gemini API key | Required for AI features |

Fallback Behavior

When AI is unavailable (no API key, network issues, etc.), Logline falls back to intelligent file-based analysis:

  • feat: New source files or significant additions
  • fix: Changes containing "fix", "bug", or error handling
  • docs: Documentation file changes
  • test: Test file modifications
  • chore: Configuration, dependency, or maintenance changes

Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and test them
  4. Use Logline to commit: lol 😉
  5. Push and create a pull request

License

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

Acknowledgments

  • Google Gemini for powering the AI commit message generation
  • Conventional Commits for the commit message format standards
  • The developer community for inspiration on making git workflows more enjoyable

Issues & Support

Found a bug or have a feature request?

  • Open an issue
  • Check existing issues before creating a new one
  • Include your OS, Node version, and error messages

Stats

npm version GitHub issues GitHub stars


Made with ❤️ by developers, for developers who want better commit messages without the hassle.