{"id":15020014,"url":"https://github.com/docker/node-sdk","last_synced_at":"2025-09-08T15:31:56.462Z","repository":{"id":40709975,"uuid":"270971212","full_name":"docker/node-sdk","owner":"docker","description":"Docker CLI gRPC JavaScript SDK","archived":false,"fork":false,"pushed_at":"2024-06-17T20:19:43.000Z","size":941,"stargazers_count":113,"open_issues_count":28,"forks_count":39,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-12-27T05:06:15.363Z","etag":null,"topics":["docker","javascript","nodejs","sdk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docker.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":"2020-06-09T10:23:29.000Z","updated_at":"2024-12-17T13:37:42.000Z","dependencies_parsed_at":"2024-09-22T14:10:34.523Z","dependency_job_id":null,"html_url":"https://github.com/docker/node-sdk","commit_stats":{"total_commits":60,"total_committers":7,"mean_commits":8.571428571428571,"dds":0.6166666666666667,"last_synced_commit":"e224ebd6c4ea4c4d71bd173635015efa00d8b860"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker%2Fnode-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker%2Fnode-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker%2Fnode-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker%2Fnode-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docker","download_url":"https://codeload.github.com/docker/node-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232320250,"owners_count":18504974,"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":["docker","javascript","nodejs","sdk"],"created_at":"2024-09-24T19:54:28.055Z","updated_at":"2025-01-03T10:10:24.359Z","avatar_url":"https://github.com/docker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker CLI JavaScript SDK\n\n![CI](https://github.com/docker/node-sdk/workflows/CI/badge.svg)\n\nThis repository contains the source for the Node SDK to work with the\nexperimental Docker command line for Azure integration. The SDK is available as\nan [npm package](https://www.npmjs.com/package/@docker/sdk)\n\n\u003e :warning: This SDK is in beta, expect things to change or break!\n\n## Getting started\n\nAdd `@docker/sdk` to the dependencies\n\n```console\nyarn add @docker/sdk\n```\n\nYou can then use the SDK:\n\n```typescript\n// import the contexts client\nimport { Contexts } from '@docker/sdk';\n// import request and response classes\nimport { ListRequest, ListResponse } from '@docker/sdk/contexts';\n\nconst client = new Contexts();\n\n// Get the list of contexts\nclient.list(new ListRequest(), (err: any, resp: ListResponse) =\u003e {\n  if (err) {\n    console.error(err);\n    return;\n  }\n\n  const contexts = resp.getContextsList().map((c) =\u003e c.getName());\n\n  console.log(contexts);\n});\n```\n\nWhen you run this code you should see a list of contexts, for example:\n\n```console\n$ ts-node example.ts\naci-context\ndefault\n```\n\n## Examples\n\nYou can find examples for how to use this SDK in the [examples](./examples)\ndirectory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocker%2Fnode-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocker%2Fnode-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocker%2Fnode-sdk/lists"}