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

@freetison/git-super

v0.3.0

Published

AI-powered git commits with OAuth/SSO support - works with any repo, supports enterprise authentication

Readme

@theia-core/git-super

AI-powered git commits with one command. Works with any git repository (Node.js, Python, Java, C++, etc.)

Automates the workflow: git add . → AI-generated commit message → git commitgit push

Features

  • AI-powered commit messages using Ollama (local), Claude, GPT, or enterprise providers
  • 🎯 Customizable templates - Add Jira tickets, Linear issues, or custom prefixes
  • 📝 Conventional Commits format by default
  • 🌍 Framework-agnostic - Works with any git repo, not just Node.js
  • 🔧 Minimal dependencies - Only 1 required dependency (open), optional keytar for secure storage
  • Fast - No compilation, direct execution
  • 🏢 Enterprise Support - OAuth/SSO authentication for Azure OpenAI, GitHub Copilot Enterprise
  • 🔐 Secure - OS keychain integration for token storage
  • 🏗️ Multi-Organization - Switch between work/personal contexts easily

Enterprise & OAuth Support (NEW in v0.2.0)

git-super now supports enterprise authentication with OAuth/SSO, perfect for companies using corporate AI services:

Supported OAuth Providers

  • Azure OpenAI with Azure AD (Microsoft Entra ID)
  • GitHub Copilot Enterprise with GitHub OAuth
  • Generic OIDC for any OpenID Connect compliant provider

Quick OAuth Example

# Setup Azure OpenAI with SSO (no API key needed!)
git super auth login --provider azure-openai
# Browser opens, authenticate with your company SSO
# ✅ Token stored securely in OS keychain

# Use normally - token auto-refreshes
git super

Multi-Organization Contexts

Switch between different organizational contexts (work, personal, client projects):

# List contexts
git super context list

# Switch to work (Azure OpenAI with SSO)
git super context switch work

# Switch to personal (local Ollama)
git super context switch local

# Use git super - automatically uses active context settings
git super

📚 Full Documentation:

Installation

From Verdaccio (Local Testing)

npm install -g @theia-core/git-super --registry http://localhost:4873
git config --global alias.super '!git-super'

From npm (Public)

npm install -g @theia-core/git-super
git config --global alias.super '!git-super'

Quick Start

# Make changes to your code
git super              # Stage, commit with AI message, and push

Usage

git super                        # add + commit + push (AI message)
git super -m "fix: typo"         # use your own message, skip AI
git super --message "feat: ..."  # same as -m
git super --no-push              # add + commit only (no push)
git super --dry-run              # preview message without committing
git super --amend                # amend last commit with new AI message
git super --no-verify            # skip pre-commit hooks
git super --init                 # create config file with defaults
git super --all                  # run on every repo in workspace
git super --help                 # show help

Manual message (-m / --message)

Skip AI generation entirely and provide your own commit message:

git super -m "fix: correct typo in README"
git super -m "chore: bump deps" --no-push
git super --message "feat(auth): add OAuth support"

All other flags (--no-push, --amend, --no-verify, --dry-run) work normally alongside -m.

Configuration

Create Config File

git super --init

This creates ~/.gitsuperrc with customizable settings:

{
  "aiProvider": "ollama",
  "aiModel": "mistral:latest",
  "ollamaUrl": "http://localhost:11434",
  "messageTemplate": null,
  "commitRules": {
    "types": ["feat", "fix", "docs", "style", "refactor", "test", "chore", "perf", "ci", "build"],
    "maxLength": 72,
    "allowEmptyScope": true
  }
}

Message Templates

Add custom prefixes to all commit messages:

{
  "messageTemplate": "VTT-3020: {type}({scope}): {message}"
}

Template Variables:

  • {message} - AI-generated description
  • {type} - Commit type (feat, fix, etc.)
  • {scope} - Commit scope (if any)
  • {ticket} - Custom ticket number (set via ticketNumber config)

Examples:

// Jira tickets
"messageTemplate": "VTT-3020: {type}({scope}): {message}"
// Output: VTT-3020: feat(auth): add OAuth login

// Linear issues
"messageTemplate": "LIN-{ticket}: {type}({scope}): {message}"

// GitHub issues
"messageTemplate": "#{ticket}: {type}({scope}): {message}"

// Simple prefix
"messageTemplate": "PROJECT: {type}: {message}"

// No template (default Conventional Commits)
"messageTemplate": null

Environment Variables

Override config file settings:

AI_PROVIDER=anthropic git super     # Use Claude
AI_MODEL=llama3.2 git super          # Use different Ollama model
OLLAMA_URL=http://remote:11434 git super  # Remote Ollama instance

AI Providers

Ollama (Default - Local & Free)

  1. Install Ollama: https://ollama.ai
  2. Pull a model: ollama pull mistral
  3. Run: git super

Recommended models:

  • qwen2.5-coder - Best for code
  • deepseek-coder - Great for commits
  • mistral - Fast and accurate
  • codellama - Good all-rounder

Anthropic Claude

export ANTHROPIC_API_KEY='sk-ant-...'
AI_PROVIDER=anthropic git super

OpenAI GPT

export OPENAI_API_KEY='sk-...'
AI_PROVIDER=openai git super

Examples

Basic Workflow

# Make changes
echo "new feature" > feature.js

# One command does everything
git super
# ✨ Output:
# → git add .
# 🤖 Generating AI message...
# 📝 Commit message: "feat(core): add new feature implementation"
# → git commit
# ✅ Commit successful
# → git push origin HEAD
# ✅ Push successful

With Custom Template

git super --init
# Edit ~/.gitsuperrc: "messageTemplate": "PROJ-123: {type}: {message}"

git super
# Output: "PROJ-123: feat: add authentication module"

Preview Before Committing

git super --dry-run
# Shows AI-generated message without committing

Commit Without Pushing

git super --no-push
# Useful for local branches or when you want to amend later

Configuration Priority

Settings are applied in this order (later overrides earlier):

  1. Built-in defaults
  2. ~/.gitsuperrc (global config)
  3. Environment variables
  4. Command-line flags

Use Cases

Team Standards

Create a shared config template for your team:

{
  "messageTemplate": "TEAM-{ticket}: {type}({scope}): {message}",
  "commitRules": {
    "types": ["feat", "fix", "docs", "refactor", "test", "chore"],
    "maxLength": 100
  }
}

Multiple Projects

Different teams, different prefixes - just edit ~/.gitsuperrc when switching contexts or set per-project ENV vars.

Non-Node.js Projects

Works perfectly with any language:

# Python project
cd my-python-app/
git super  # ✅ Works!

# Java project
cd my-java-app/
git super  # ✅ Works!

# C++ project
cd my-cpp-app/
git super  # ✅ Works!

Troubleshooting

Ollama not found

# Check if Ollama is running
curl http://localhost:11434

# Start Ollama
ollama serve

# Install a model
ollama pull mistral

Model not found

The tool auto-detects available models. If your configured model isn't found, it will suggest alternatives.

Commit rejected by hooks

git super --no-verify  # Skip pre-commit hooks (use with caution)

Development

# Clone repo
git clone https://github.com/Theia-plataform/theia-core-packages
cd theia-core-packages/packages/git-super

# Install globally for testing
npm install -g .

# Test
git super --help

License

MIT © Angel Sola

Contributing

Issues and PRs welcome at theia-core-packages

Related

  • Part of the @theia-core package ecosystem
  • Works standalone - no Theia dependencies required

Testing Session ✅

Follow this quick testing session to verify package behavior and CI readiness.

  1. Prerequisites

    • Ensure Verdaccio is running: curl http://localhost:4873
    • Ensure Ollama is running: curl http://localhost:11434 (or set AI_PROVIDER/API keys for remote providers)
  2. Publish locally

    • npm publish --registry http://localhost:4873
  3. Install & verify

    • npm install -g @theia-core/git-super --registry http://localhost:4873
    • git super --help to confirm installation
  4. Basic checks (dry-run & commit)

    • git super --init creates ~/.gitsuperrc
    • In a test repo: git super --dry-run to preview message
    • git super --no-push to commit locally without pushing
  5. Templates & env vars

    • Edit ~/.gitsuperrc messageTemplate (e.g., Jira or custom prefixes) and test with changes
    • Override settings with env vars like AI_PROVIDER, AI_MODEL, OLLAMA_URL
  6. Cross-language smoke tests

    • Run git super --dry-run in Python, Java, and C++ repos (no build required) to ensure language-agnostic behavior
  7. Edge cases & error handling

    • Non-git directory: expect a clear "Not a git repository" message
    • No changes: expect "No changes to commit"
    • Ollama or provider down: expect graceful fallback messaging
  8. Validation & limits

    • Test commitRules.maxLength (e.g., set to a small number) to verify truncation/warnings
  9. Success criteria ✅

    • Package publishes to Verdaccio and installs globally
    • --init creates a valid ~/.gitsuperrc
    • --dry-run shows expected AI messages
    • Templates and template variables apply correctly
    • Works across different languages and with alternate AI providers
    • Clear error messages and fallback behavior when providers fail

For a full, step-by-step testing workflow and troubleshooting tips, see the repository's testing docs or the original TESTING.md (now consolidated into this README).