# nodegit/nodegit

Native Node bindings to Git.

Repository: https://github.com/nodegit/nodegit
Canonical: https://ross.abutalabs.com/products/nodegit
Homepage: https://www.nodegit.org/
Language: JavaScript
License: MIT
License Family: permissive
Topics: libgit2, javascript, nodegit, git, nodejs, node, macos, windows, linux, js, mit, electron, c-plus-plus
Last push: 2026-07-16T18:47:08+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 8, longevity 100
- inputs: {"age_days": 5675, "days_push": 48, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5753, forks 700 (observed 2026-08-28T04:09:29.058824+00:00)

## What it is
NodeGit provides asynchronous native Node.js bindings to the libgit2 C library, exposing a full Git API (clone, commit, diff, rebase, etc.) to JavaScript. It ships prebuilt binaries for Node and Electron on macOS, Windows, and Linux.

## Use cases
- programmatically clone and read git repositories from node
- build a git gui or desktop app with electron
- read commit history and diffs in a javascript tool
- implement custom git workflows like rebase or cherry-pick in code
- inspect repository status, branches, and stashes without shelling out to git cli

## When to choose
- you need deep, fine-grained git operations in Node.js beyond what child_process git offers
- you're building an Electron app that needs native git support
- you want cross-platform git functionality without requiring users to install git

## When to avoid
- you only need simple git commands - shelling out to the git CLI is simpler
- you need a pure-JavaScript solution with no native binaries
- your runtime or Electron version lacks prebuilt binaries and you can't compile native code

## Facets
- artifact type: library
- maturity: maintenance
- function: version-control, developer-tools, sdk
- domain: developer-tools, version-control, cross-platform
- platform: windows, cross-platform
- tags: git, libgit2, native-bindings, npm, async, nodejs, electron, macos, linux

## Member repositories
- nodegit/nodegit (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:29.058824+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:53:17.503044+00:00, confidence not recorded.
  - readme: https://github.com/nodegit/nodegit (fetched 2026-08-28T04:09:29.058824+00:00, sha f54dfb06004b)
  - homepage: https://www.nodegit.org/ (fetched 2026-08-29T08:48:56.568973+00:00, sha b8431936afec)
  - site_page: https://www.nodegit.org/guides/install (fetched 2026-08-29T08:48:56.580742+00:00, sha eb176f66d7ca)
  - site_page: https://www.nodegit.org/guides/install/electron (fetched 2026-08-29T08:48:56.582493+00:00, sha 7600067dc5db)
  - site_page: https://www.nodegit.org/api (fetched 2026-08-29T08:48:56.572304+00:00, sha ef79f318d802)
  - site_page: https://www.nodegit.org/changelog (fetched 2026-08-29T08:48:56.575950+00:00, sha eb5204124fcd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
