{"id":13450809,"url":"https://github.com/anbraten/gitea-js","last_synced_at":"2025-04-06T19:11:36.243Z","repository":{"id":57251244,"uuid":"457281738","full_name":"anbraten/gitea-js","owner":"anbraten","description":"A Typescript library to access Gitea API","archived":false,"fork":false,"pushed_at":"2025-01-13T12:52:37.000Z","size":1678,"stargazers_count":39,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T18:08:32.527Z","etag":null,"topics":["gitea","javascript","typescript"],"latest_commit_sha":null,"homepage":"https://anbraten.github.io/gitea-js/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anbraten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-09T09:00:05.000Z","updated_at":"2025-02-05T20:47:21.000Z","dependencies_parsed_at":"2023-12-19T18:32:00.223Z","dependency_job_id":"c0c78978-2cd7-4398-b6d4-13742cdce63d","html_url":"https://github.com/anbraten/gitea-js","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"7ea9780b815b72a19953a0ee85d76dac1f555176"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbraten%2Fgitea-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbraten%2Fgitea-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbraten%2Fgitea-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbraten%2Fgitea-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anbraten","download_url":"https://codeload.github.com/anbraten/gitea-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247535517,"owners_count":20954576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gitea","javascript","typescript"],"created_at":"2024-07-31T07:00:38.794Z","updated_at":"2025-04-06T19:11:36.200Z","avatar_url":"https://github.com/anbraten.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","SDK","Active projects"],"sub_categories":["For internal use","SDK"],"readme":"# Gitea-js api client with Typescript support\n\n[![NPM Version](https://img.shields.io/npm/v/gitea-js)](https://www.npmjs.com/package/gitea-js)\n[![NPM Types](https://img.shields.io/npm/types/gitea-js)](https://anbraten.github.io/gitea-js/)\n[![GitHub license](https://img.shields.io/github/license/anbraten/gitea-js)](https://github.com/anbraten/gitea-js/blob/main/LICENSE)\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/anbraten/gitea-js/Release)](https://github.com/anbraten/gitea-js/actions)\n[![Docs](https://img.shields.io/badge/Docs-up_to_date-brightgreen)](https://anbraten.github.io/gitea-js/)\n\nGitea-js is an api client automatically created from the official [Open api definition](https://gitea.com/swagger.v1.json) of Gitea. The client uses the [Fetch Api](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) (native browser support) to make requests. For node you can use [cross-fetch](https://www.npmjs.com/package/cross-fetch) to polyfill the Fetch Api.\n\n## Version mapping\n\nThe 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.\n\n| Gitea-js | Gitea |\n| -------- | ----- |\n| 1.23.x   | 1.23  |\n| 1.22.x   | 1.22  |\n| 1.21.x   | 1.21  |\n| 1.20.x   | 1.20  |\n| 1.19.x   | 1.19  |\n| 1.18.x   | 1.18  |\n| 1.16.x   | 1.17  |\n| \u003c 1.2.0  | 1.17  |\n\n## Examples\n\n### Browser\n\n```ts\nimport { giteaApi } from 'gitea-js';\n\nconst api = giteaApi('https://try.gitea.com/', {\n  token: 'access-token', // generate one at https://gitea.example.com/user/settings/applications\n});\n\nconst repo = api.repos.repoGet('anbraten', 'gitea-js');\nconsole.log(repo);\n```\n\n### Node.js\n\n```js\nconst { giteaApi } = require('gitea-js');\nconst fetch = require('cross-fetch'); // You have to use a fetch compatible polyfill like cross-fetch for Node.JS\n\nconst api = giteaApi('https://try.gitea.com/', {\n  token: 'access-token', // generate one at https://gitea.example.com/user/settings/applications\n  customFetch: fetch,\n});\n\nconst repo = api.repos.repoGet('anbraten', 'gitea-js');\nconsole.log(repo);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbraten%2Fgitea-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanbraten%2Fgitea-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbraten%2Fgitea-js/lists"}