Are you an LLM? You can read better optimized documentation at /docs/kitops-ts.md for this page in Markdown format
kitops-ts
kitops-ts is a TypeScript/Node.js SDK for the KitOps CLI. It provides a type-safe functional API for packing, pushing, pulling, and inspecting ModelKits — without having to shell out manually.
Similar to pykitops but for TypeScript/JavaScript.
What is KitOps?
KitOps is an open source project that packages ML models, datasets, code, and configuration into a portable, versioned artifact called a ModelKit. ModelKits are stored in standard OCI registries (like GHCR, Docker Hub, or any private registry), making them easy to share, reproduce, and deploy.
What does kitops-ts do?
kitops-ts wraps the kit CLI binary with a fully-typed Node.js API. Instead of writing shell scripts to call kit pack, kit push, etc., you write TypeScript:
typescript
import { login, pack, push } from '@kitops/kitops-ts';
await login('ghcr.io', process.env.REGISTRY_USER!, process.env.REGISTRY_PASS!);
await pack('.', { tag: 'ghcr.io/my-org/my-model:v1.0.0' });
await push('ghcr.io/my-org/my-model:v1.0.0');Related
- KitOps — The ModelKit standard and CLI
- pykitops — Python SDK for KitOps
- kitops-ts on npm
- GitHub repository