NodeGit exposes libgit2 to JavaScript with async APIs for cloning, history, and repository work in Node and Electron. The maintainers state that the project is no longer maintained.
Overview
NodeGit wraps libgit2 so Node programs can manage Git repositories without shelling out to the git binary. Typical examples clone remotes, open local repos, walk commits, and read objects through promise-based APIs.
Prebuilt binaries cover common platforms so many installs avoid compiling native code. When builds fail, documentation notes system packages such as libssl-dev, libpcre, and krb5 development headers on Linux.
NodeGit is unmaintained: no planned releases, security fixes, or issue review, while existing npm versions and binaries remain available for the foreseeable future.
Electron and desktop Git tools historically relied on NodeGit for embedded version control features.
Key features
- Async libgit2 bindings for Node
- Clone, commit, and history APIs
- Prebuilt binaries on common platforms
- Electron desktop integration
- Examples for common Git workflows
Use cases
- Embedded Git in Electron apps
- Custom Git tooling in Node services
- Programmatic repository inspection