MCPcopy Index your code
hub / github.com/anbraten/gitea-js

github.com/anbraten/gitea-js @v.17.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v.17.0 ↗ · + Follow
4 symbols 15 edges 5 files 0 documented · 0% 2 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Gitea-js api client with Typescript support

NPM Version NPM Types GitHub license GitHub Workflow Status Docs

Gitea-js is an api client automatically created from the official Open api definition of Gitea. The client uses the Fetch Api (native browser support) to make requests. For node you can use cross-fetch to polyfill the Fetch Api.

Version mapping

The major and minor version of this library is mapped to the version of the Gitea api. The patch version of this library is incremented for every release and uses the latest patch version of Gitea.

Gitea-js Gitea
1.19.x 1.19 (dev)
1.18.x 1.18
1.16.x 1.17
< 1.2.0 1.17

Examples

Browser

import { Api } from 'gitea-js';

const api = new giteaApi('https://try.gitea.com/', {
  token: 'access-token', // generate one at https://gitea.example.com/user/settings/applications
});

const repo = api.repos.repoGet('anbraten', 'gitea-js');
console.log(repo);

Node.js

const { createApi } = require('gitea-js');
const fetch = require('cross-fetch'); // You have to use a fetch compatible polyfill like cross-fetch for Node.JS

const api = new giteaApi('https://try.gitea.com/', {
  token: 'access-token', // generate one at https://gitea.example.com/user/settings/applications
  customFetch: fetch,
});

const repo = api.repos.repoGet('anbraten', 'gitea-js');
console.log(repo);

Core symbols most depended-on inside this repo

exec
called by 2
contrib/generate.ts
getVersions
called by 1
contrib/generate.ts
run
called by 1
contrib/generate.ts
giteaApi
called by 1
src/index.ts

Shape

Function 4

Languages

TypeScript100%

Modules by API surface

contrib/generate.ts3 symbols
src/index.ts1 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add gitea-js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page