{"id":14967171,"url":"https://github.com/golemfactory/ya-ts-client","last_synced_at":"2025-10-19T09:31:38.041Z","repository":{"id":41982319,"uuid":"286526205","full_name":"golemfactory/ya-ts-client","owner":"golemfactory","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-08T21:45:58.000Z","size":1277,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T04:19:28.858Z","etag":null,"topics":["golem"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/golemfactory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-08-10T16:31:01.000Z","updated_at":"2024-04-16T13:30:10.520Z","dependencies_parsed_at":"2024-02-28T15:51:11.439Z","dependency_job_id":"f57d5aed-f87c-4e15-b1e0-bd5caff064e0","html_url":"https://github.com/golemfactory/ya-ts-client","commit_stats":null,"previous_names":["mdtanrikulu/ya-ts-client"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golemfactory%2Fya-ts-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golemfactory%2Fya-ts-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golemfactory%2Fya-ts-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golemfactory%2Fya-ts-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/golemfactory","download_url":"https://codeload.github.com/golemfactory/ya-ts-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869246,"owners_count":16555571,"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":["golem"],"created_at":"2024-09-24T13:37:34.043Z","updated_at":"2025-10-19T09:31:37.525Z","avatar_url":"https://github.com/golemfactory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yagna TS Client\n\nThe `ya-ts-client` package provides low level API bindings in form of collection TypeScript clients generated from\nthe [Yagna public API](https://github.com/golemfactory/ya-client) OpenApi specifications.\n\nThe primary and only purpose of this package is to provide that basic implementation. As a \"core\" library, it shouldn't need to be added as a dependency to any user code, only to other Golem Network related SDKs or libraries.\n\nIf you want to start building solutions using Golem Network, here are more suitable options:\n\n- [Official JS SDK - @golem-sdk/golem-js](https://www.npmjs.com/package/@golem-sdk/golem-js) - which models the Decentralized Computation Marketplace logic\n- [TaskExecutor - @golem-sdk/task-executor](https://www.npmjs.com/package/@golem-sdk/task-executor) - built on top of `@golem-sdk/golem-js` and provides a \"task oriented\" API for simple distributed computation scenarios\n\n## Installation\n\n```bash\nnpm install --save ya-ts-client\n```\n\n## Usage\n\nThe library exposes multiple API clients which are auto-generated from the official OpenApi specifications. The documentation of the generated API is [hosted on GitHub pages](https://golemfactory.github.io/ya-ts-client/).\n\n### Working with API Clients\n\nHere's just one example of how to use the `Payment` module's `ApiClient` to obtain the list of allocations.\n\n```ts\nimport { PaymentApi } from \"ya-ts-client\";\n// Or refer to the whole library:\n//import * as YaTsClient from \"ya-ts-client\";\n\n/**\n * Example of usage of the Payment API\n */\nconst payment = new PaymentApi.Client({\n  BASE: \"http://localhost:7465/payment-api/v1\",\n  HEADERS: {\n    Authorization: \"Bearer your-app-key\",\n  },\n});\n\nconst allocations = await payment.requestor.getAllocations();\nconsole.log(\"Allocated funds:\", allocations);\n```\n\n## See also\n\n- [Official Golem JS SDK repo](https://github.com/golemfactory/golem-js)\n- [Documentation for JS Creators](https://docs.golem.network/docs/creators/javascript)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolemfactory%2Fya-ts-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgolemfactory%2Fya-ts-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolemfactory%2Fya-ts-client/lists"}