{"id":29057555,"url":"https://github.com/hyperweb-io/kubernetesjs","last_synced_at":"2025-06-27T06:05:58.223Z","repository":{"id":296126854,"uuid":"795936820","full_name":"hyperweb-io/kubernetesjs","owner":"hyperweb-io","description":"TypeScript Client for Kubernetes","archived":false,"fork":false,"pushed_at":"2025-06-10T04:33:53.000Z","size":2148,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-10T04:40:23.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/hyperweb-io.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,"zenodo":null}},"created_at":"2024-05-04T12:53:54.000Z","updated_at":"2025-06-10T04:33:57.000Z","dependencies_parsed_at":"2025-05-29T04:31:45.442Z","dependency_job_id":"81a4bc71-17b8-43a6-8042-6af5109b16a2","html_url":"https://github.com/hyperweb-io/kubernetesjs","commit_stats":null,"previous_names":["hyperweb-io/kubernetesjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hyperweb-io/kubernetesjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fkubernetesjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fkubernetesjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fkubernetesjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fkubernetesjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperweb-io","download_url":"https://codeload.github.com/hyperweb-io/kubernetesjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperweb-io%2Fkubernetesjs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262202496,"owners_count":23274380,"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":[],"created_at":"2025-06-27T06:05:54.977Z","updated_at":"2025-06-27T06:05:58.198Z","avatar_url":"https://github.com/hyperweb-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KubernetesJS\n\n\u003cp align=\"center\" width=\"100%\"\u003e\n  \u003cimg src=\"https://github.com/hyperweb-io/interweb-utils/assets/545047/89c743c4-be88-409f-9a77-4b02cd7fe9a4\" width=\"80\"\u003e\n  \u003cbr/\u003e\n  TypeScript Client for Kubernetes\n  \u003cbr /\u003e\n   \u003ca href=\"https://github.com/hyperweb-io/kubernetesjs/actions/workflows/ci.yml\"\u003e\n    \u003cimg height=\"20\" src=\"https://github.com/hyperweb-io/kubernetesjs/actions/workflows/ci.yml/badge.svg\"/\u003e\n  \u003c/a\u003e\n   \u003ca href=\"https://github.com/hyperweb-io/kubernetesjs/blob/main/LICENSE\"\u003e\n    \u003cimg height=\"20\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\nKubernetesJS is a **fully-typed**, zero-dependency TypeScript library designed to simplify interactions with Kubernetes APIs. With comprehensive TypeScript support, it provides a strongly-typed interface that makes managing Kubernetes resources clear and predictable, ideal for TypeScript developers looking to integrate Kubernetes management into their applications.\n\n## Features\n\n- **🔒 Fully Typed**: Complete TypeScript definitions for all functions and models for an enhanced development experience.\n- **🚀 Zero Dependencies**: Works out of the box without the need for additional installations.\n- **📡 Full Kubernetes API Coverage**: Supports all Kubernetes API endpoints with detailed TypeScript types.\n- **🌐 Cross-Platform**: Works with both Node.js and browser environments.\n\n## Installation\n\nTo install KubernetesJS, you can use npm or yarn:\n\n```bash\nnpm install kubernetesjs\n# or\nyarn add kubernetesjs\n\n```\n\n## Example\n\n```js\nimport { KubernetesClient } from \"kubernetesjs\";\n\nconst client = new KubernetesClient({\n  restEndpoint: 'http://127.0.0.1:8001'\n});\n\nconst result = await client.listCoreV1NamespacedPod({\n  path: { namespace: 'default' }\n});\n\nif (result.items \u0026\u0026 result.items.length) {\n  result.items.forEach(item =\u003e {\n    console.log('NODE:', item.spec.nodeName);\n\n    const initContainers = item.status.initContainerStatuses?.map(ic =\u003e ({\n      image: ic.image,\n      name: ic.name,\n      ready: ic.ready,\n      state: ic.state\n    }));\n\n    const containers = item.status.containerStatuses?.map(c =\u003e ({\n      image: c.image,\n      name: c.name,\n      ready: c.ready,\n      state: c.state\n    }));\n\n    console.log({ containers });\n    console.log({ initContainers });\n  });\n}\n```\n\n## Related\n\nCheckout these related projects:\n\n* [`schema-typescript`](https://github.com/hyperweb-io/schema-typescript/tree/main/packages/schema-typescript)  \n  Provides robust tools for handling JSON schemas and converting them to TypeScript interfaces with ease and efficiency.\n* [`@schema-typescript/cli`](https://github.com/hyperweb-io/schema-typescript/tree/main/packages/cli)  \n  CLI is the command line utility for `schema-typescript`.\n* [`schema-sdk`](https://github.com/hyperweb-io/schema-typescript/tree/main/packages/schema-sdk)  \n  Provides robust tools for handling OpenAPI schemas and converting them to TypeScript clients with ease and efficiency.\n* [`starship`](https://github.com/hyperweb-io/starship) Unified Testing and Development for the Interchain.\n\n## Credits\n\n🛠 Built by Hyperweb — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/hyperweb-io)\n\n## Disclaimer\n\nAS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.\n\nNo developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperweb-io%2Fkubernetesjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperweb-io%2Fkubernetesjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperweb-io%2Fkubernetesjs/lists"}