Skip to content
프로젝트

소개

One client, every forge.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+3
in 15 days
+10
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

forges

npm version npm downloads Github Actions Codecov

One client, every forge.

forges is a TypeScript library for working with issues, pull requests, notifications, checks and webhooks on fourteen forges: GitHub, GitLab, Bitbucket, Forgejo, Gitea, Gitee, Azure DevOps, Cursor Origin, Tangled, Pushin.eu, Sourcehut, GitBucket, GitCafe and Upstream. A forge is a service that hosts Git repositories and the collaboration around them. It also reads repositories and their contents from Git hosts without the collaboration, such as Cloudflare Artifacts. Each provider normalises the forge's responses into one data model and declares which operations it supports.

Read the documentation at forges.link.

install

pnpm add forges

forges requires Node.js 22.18 or later.

usage

import { createForges, forgejo, github } from 'forges'

const forges = createForges([
  github({
    auth: { type: 'token', token: process.env.GITHUB_TOKEN! }
  }),
  forgejo({
    baseUrl: 'https://codeberg.org',
    auth: { type: 'token', token: process.env.CODEBERG_TOKEN! }
  }),
])

for await (const notification of forges.notifications.list()) {
  console.log(notification.ref.forge, notification.title)
}

The example above lists the notifications of two forges in a single loop. To go further, the quick start walks you through reading a thread, writing a comment and checking what a forge supports.

documentation

  • Getting started covers installation, import paths and a first call.
  • The guides explain authentication, working with several forges, environment variables, webhooks, capabilities, errors, pagination, browser bundles and testing.
  • The concepts describe the data model, capabilities, providers and events.
  • Each provider page explains how to authenticate and how that forge behaves.
  • The reference lists the API, the capability matrix, errors and JSON schemas.
  • The examples are small, tested projects that use forges.

related projects

  • @agntn/forges: a TypeScript API for GitHub, GitLab, Gitea, Forgejo and GitBucket, with an MCP server and Pi and OMP extensions for agents.
  • git-pkgs/forge: a Go library and CLI for GitHub, GitLab, Gitea, Forgejo, Bitbucket Cloud, Gerrit and Tangled.

contributing

Contributions are welcome. The contribution guide explains how to set up the repository and run the checks.

licence

Made with ❤️

Published under the MIT licence.

관련 프로젝트 살펴보기

불러오는 중…