This page covers everything you need to get podman-ts installed and importable in your project: runtime and tooling requirements, all supported package managers, module format details, and TypeScript configuration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Pratyay360/podman-ts/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
Before installing, make sure your environment meets these requirements:- Bun >= 1.0 — required at runtime. podman-ts uses Bun-native APIs (
Bun.fetchfor Unix socket connections,Bun.spawnfor tar operations). Download at bun.sh. - Node >= 20 — supported for tooling (type-checking, linting, bundling) but not for execution.
- TypeScript >= 5.x — the library ships with
.d.tsdeclarations generated from TypeScript 5. - Podman running locally — with an accessible Unix socket or TCP endpoint. Verify with
podman info.
Installation
Choose the package manager you’re already using in your project.@pratyay360/podman-ts on both npm and JSR. The JSR entry point (jsr.json) points directly to the TypeScript source.
ESM and CJS support
Theexports field in package.json ships both ESM and CommonJS builds:
| Format | Entry point | Types |
|---|---|---|
| ESM | dist/index.js | dist/index.d.ts |
| CJS | dist/index.cjs | dist/index.d.cts |
exports field (Bun, Node 20+, Vite, esbuild) will resolve the correct build automatically.
The package declares
"sideEffects": false, so bundlers can safely tree-shake any managers or utilities you don’t use.Importing the SDK
After installation, importPodmanClient from the package root: