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

@charviwadhwa06/swigit

v1.0.12

Published

AI-powered Git CLI with CleanPR protection: automate commits, prevent leaks, and ship code in one command.

Readme

Swigit

npm version Node.js Version

Swigit is a high-performance Command Line Interface (CLI) designed to modernize the standard Git workflow. By integrating Large Language Models (LLMs) and local security auditing, Swigit automates the generation of standardized commit messages, prevents accidental credential exposure, and streamlines remote synchronization.


Core Architecture

1. AI-Driven Documentation Engine

Swigit leverages the Google Gemini 1.5 Flash API to perform deep semantic analysis of repository diffs. Unlike basic automated commit tools, Swigit understands the context of code changes to produce high-quality, "Conventional Commits" compliant messages.

2. CleanPR Security Shield

A proactive security layer that performs real-time entropy analysis and pattern matching on staged files. It identifies and intercepts:

  • Private keys (RSA, SSH, PGP)
  • Cloud provider credentials (AWS, GCP, Azure)
  • Database connection strings and environment variables
  • Authentication tokens (JWT, OAuth)

3. Atomic Sync Workflow

To maintain a clean project history, Swigit automates the rebase-pull pattern. It safely handles local work-in-progress (WIP) using a stash-pull-pop mechanism, ensuring that your local branch is always updated against the remote head before a push.


Installation and Requirements

System Requirements

  • Node.js version 18.0.0 or higher
  • Git 2.0.0 or higher
  • Valid Google Gemini API Key

Global Installation

npm install -g @charviwadhwa06/swigit

Direct Execution

npx @charviwadhwa06/swigit

Technical Configuration

Initial Setup

Run the setup utility to authorize the CLI with your Gemini API credentials. This configuration is stored globally for use across all local repositories.

swigit setup

Main Execution Logic

The primary swigit command executes a multi-stage pipeline:

  1. Discovery: Identifies modified and untracked files.
  2. Staging: Performs a recursive git add . to prepare the workspace.
  3. Analysis: Routes the current diff to the Gemini engine for message generation.
  4. Audit: Triggers the CleanPR scanner for secret detection.
  5. Finalization: Executes the commit and pushes to the current upstream branch.
swigit

Command Reference

| Command | Description | | :--- | :--- | | swigit | Default shipping workflow (Add, AI Commit, Audit, Push). | | swigit init <url> | Initializes a local repository and establishes a remote origin. | | swigit sync | Performs a stash-based rebase pull to stay current with remote. | | swigit clone <url> | Clones a repository and auto-installs Node.js dependencies. | | swigit info | Displays current branch status, remotes, and commit metadata. | | swigit undo | Reverts the most recent commit while preserving file changes. | | swigit setup | Manages global configuration and API credentials. |


Workflow Comparison

Standard Manual Workflow

Manual workflows often lead to non-descriptive messages and increased risk of secret leakage.

git add .
git commit -m "fix bug"
git pull origin main
# (Manual conflict resolution)
git push origin main

Swigit Automated Workflow

Swigit ensures every commit is documented, secure, and synchronized.

swigit

Security Policy

Swigit is built with a "Local First" security philosophy. The CleanPR Security Shield executes all scanning logic within the local environment. No source code or sensitive credentials are ever transmitted to external servers for the purpose of auditing.