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

@gitwand/cli

v2.10.0

Published

GitWand CLI — resolve Git conflicts from your terminal or CI pipeline

Downloads

2,860

Readme

@gitwand/cli

npm License

Auto-resolve trivial Git merge conflicts from your terminal or CI.

Part of GitWand. @gitwand/cli wraps the same conflict resolution engine as the desktop app and MCP server, exposing it as a single binary you can drop into any shell or pipeline.

Install

# One-shot (no install)
npx @gitwand/cli resolve

# Global install
npm install -g @gitwand/cli
gitwand resolve

Requires Node.js ≥ 18.

Quickstart

# Mid-merge, from the repo root:
gitwand resolve              # Resolve every conflicted file GitWand can handle
gitwand resolve --dry-run    # Preview without touching files
gitwand status               # List conflicted files with auto-resolvability

Commands

gitwand resolve [files...]

Auto-resolves trivial conflicts. With no arguments, it picks up every conflicted file from git diff --name-only --diff-filter=U. Pass specific paths to scope the run.

Flags

  • --dry-run — analyze without writing files
  • --verbose — print the decision trace for each hunk
  • --no-whitespace — skip whitespace-only resolutions
  • --concurrency=N — parallel file workers (default: CPU count, min 1)
  • --ci — CI mode: JSON output + semantic exit codes
  • --json — force JSON output (implies --ci semantics)

Exit codes

  • 0 — all conflicts resolved
  • 1 — conflicts remain (in --ci / --json mode)
  • 2 — internal error

gitwand status

Lists conflicted files with per-file counts, detected pattern types, and the share GitWand can handle automatically.

gitwand --help

Full help text.

CI usage

The --ci flag emits a structured JSON report and uses semantic exit codes, so you can wire it into any pipeline:

# .github/workflows/merge-check.yml
- name: Auto-resolve trivial conflicts
  run: |
    git merge origin/main || true
    npx @gitwand/cli resolve --ci

Exit 0 → everything auto-resolved, safe to continue. Exit 1 → there are complex conflicts that need human or LLM attention; the JSON output lists them with ours/theirs/base content.

JSON output shape

{
  "version": "1.6.0",
  "timestamp": "2026-05-20T12:00:00.000Z",
  "summary": {
    "files": 2,
    "totalConflicts": 5,
    "autoResolved": 4,
    "remaining": 1,
    "allResolved": false
  },
  "files": [
    {
      "path": "src/config.ts",
      "totalConflicts": 3,
      "autoResolved": 3,
      "resolutions": [
        {
          "line": 15,
          "type": "one_side_change",
          "resolved": true,
          "confidence": { "score": 95, "label": "certain" },
          "trace": { "selected": "theirs", "summary": "..." }
        }
      ],
      "pendingHunks": []
    }
  ]
}

The pendingHunks array gives you everything needed for a downstream LLM or human review: ours/theirs/base content, classification trace, confidence breakdown.

Configuration

Drop a .gitwandrc at the repo root:

{
  "policy": "prefer-merge",
  "patternOverrides": {
    "*.lock": "prefer-theirs",
    "CHANGELOG.md": "prefer-ours"
  },
  "generatedFiles": ["src/generated/**", "**/*.pb.ts"]
}

Policies: prefer-ours, prefer-theirs, prefer-safety, prefer-merge, strict.

What gets auto-resolved

GitWand only resolves when it's certain. It classifies each hunk against a registry of patterns (same_change, one_side_change, non_overlapping, whitespace_only, reorder_only, insertion_at_boundary, value_only_change, generated_file). Overlapping edits are flagged complex and never touched.

Format-aware resolvers apply to JSON, Markdown, YAML, Vue SFC, CSS, and lockfiles before pure text matching.

Also available

  • @gitwand/mcp — same engine as an MCP server for Claude, Cursor, Windsurf.
  • GitWand desktop app — full Git client with built-in resolution, merge preview, and inline code review.

Links