{"id":29629077,"url":"https://github.com/ruivieira/srhtclient","last_synced_at":"2026-05-15T12:33:41.200Z","repository":{"id":62422022,"uuid":"347478585","full_name":"ruivieira/srhtclient","owner":"ruivieira","description":"A Deno client to sourcehut REST API","archived":false,"fork":false,"pushed_at":"2021-03-17T21:36:00.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T20:36:25.958Z","etag":null,"topics":["client","deno","module","rest-api","sourcehut"],"latest_commit_sha":null,"homepage":"https://deno.land/x/srhtclient","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruivieira.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}},"created_at":"2021-03-13T21:05:12.000Z","updated_at":"2023-07-26T11:01:27.000Z","dependencies_parsed_at":"2022-11-01T17:32:57.745Z","dependency_job_id":null,"html_url":"https://github.com/ruivieira/srhtclient","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ruivieira/srhtclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruivieira%2Fsrhtclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruivieira%2Fsrhtclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruivieira%2Fsrhtclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruivieira%2Fsrhtclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruivieira","download_url":"https://codeload.github.com/ruivieira/srhtclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruivieira%2Fsrhtclient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["client","deno","module","rest-api","sourcehut"],"created_at":"2025-07-21T09:34:27.395Z","updated_at":"2026-05-15T12:33:41.176Z","avatar_url":"https://github.com/ruivieira.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![builds.sr.ht status](https://builds.sr.ht/~ruivieira/srhtclient/commits/.build.yml.svg)](https://builds.sr.ht/~ruivieira/srhtclient/commits/.build.yml?) [![test](https://github.com/ruivieira/srhtclient/actions/workflows/main.yml/badge.svg)](https://github.com/ruivieira/srhtclient/actions/workflows/main.yml)\n\n# srht-client\n\nA Deno client to [sourcehut](https://sourcehut.org/) REST API.\n\n## Usage\n\n- The client requires an OAuth token.\n- If no base is specified for the REST API endpoints, `https://sr.ht` is the default.\n\nImports are available from:\n\n- deno.land: https://deno.land/x/srhtclient\n- nest.land: https://nest.land/package/srhtclient\n\n### Issue tracker\n\nAn example of using the issue tracker's API.\n\nInitialisation of the `Todo` issue tracker manager:\n\n```typescript\nimport {Todo} from \"https://deno.land/x/srhtclient/rest/todo.ts\";\n\nconst token: string = \"your token\";\n\nconst todo = new Todo(token);\n```\n\nGet the name of all trackers associated with this user:\n\n```typescript\nconst trackers = await todo.getAllTrackers();\n\ntrackers.results\n    .forEach((tracker) =\u003e console.log(tracker.name));\n```\n\nCreate a new ticket called `test` on the `deno` tracker.\n\n```typescript\ntodo.createTicket(\"deno\", {\n    title: \"test\",\n    description: \"Just testing the API\",\n});\n```\n\nList all tickets on a tracker\n\n```typescript\ntodo.getAllTrackerTickets(\"deno\")\n    .then((r) =\u003e console.log(r));\n```\n\nUpdate a ticket\n\n```typescript\nimport {\n    TicketStatus,\n    TicketUpdate,\n} from \"https://deno.land/x/srhtclient/rest/todo.ts\";\n\nconst update: TicketUpdate = {\n    comment: \"This is a comment from srhtclient\",\n    status: TicketStatus.CONFIRMED,\n};\n\nawait todo.updateTrackerTicket(\"deno\", 6, update);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruivieira%2Fsrhtclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruivieira%2Fsrhtclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruivieira%2Fsrhtclient/lists"}