@molecule/api-git-provider-gitea
v1.0.3
Published
Git hosting provider for Gitea (gitea.com) — OAuth endpoints, token auth shape, repository listing and lookup.
Readme
@molecule/api-git-provider-gitea
Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit
src/index.tsJSDoc, not this file.
@molecule/api-git-provider-gitea — a @molecule/api-git-provider bond.
Register it with registerGitProvider(provider) in setupBonds(); the app
then never names this host. See the core package for the interface and for
why basicAuthUsername may be null.
Quick Start
import { registerGitProvider } from '@molecule/api-git-provider'
import { provider } from '@molecule/api-git-provider-gitea'
registerGitProvider(provider)Type
provider
Installation
npm install @molecule/api-git-provider-gitea @molecule/api-git-provider @molecule/api-httpAPI
Constants
provider
The Gitea provider.
defaultHost is gitea.com, the project's own hosted instance, but Gitea is
overwhelmingly SELF-HOSTED — Forgejo and Codeberg are the same API. Point a
deployment at its own instance by overriding the host; the API paths below are
identical across all of them.
const provider: GitProviderCore Interface
Implements @molecule/api-git-provider interface.
Bond Wiring
Setup function to register this provider with the core interface:
import { registerGitProvider } from '@molecule/api-git-provider'
import { provider } from '@molecule/api-git-provider-gitea'
export function setupGitProviderGitea(): void {
registerGitProvider(provider)
}Injection Notes
Requirements
Peer dependencies:
@molecule/api-git-provider^1.0.2@molecule/api-http^1.0.1
Runtime Dependencies
@molecule/api-git-provider@molecule/api-http
