Skip to main content
wit can be used as a library in your Node.js applications, giving you programmatic access to all version control operations.

Installation

Quick Start

Core Classes

Repository

Main class for repository operations

Search

Search commits, files, and content

Notifications

User notification management

Organizations

Organization and team management

Webhooks

Webhook configuration and delivery

Module Structure

Common Patterns

Error Handling

Async Operations

Most operations are synchronous, but some (like large file operations) are async:

Working with Commits

Working with Diffs

Branching

Type Definitions

Status

Commit

DiffResult

Example: Build Tool Integration

Example: Commit Hook

tRPC API

wit provides a tRPC API for web and programmatic access. See the individual API reference pages for details:

Next Steps

Repository API

Full Repository class reference

Search API

Search and semantic search reference