{
  "name": "docling-sdk",
  "version": "2.0.6",
  "description": "TypeScript SDK for Docling - Bridge between Python Docling ecosystem and JavaScript/TypeScript. Supports both CLI and API modes with dual publishing.",
  "type": "module",
  "main": "dist/index.js",
  "module": "dist/index.js",
  "types": "dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/browser.js",
      "bun": "./dist/index.js",
      "deno": "./dist/index.js",
      "node": "./dist/index.js",
      "import": "./dist/index.js",
      "default": "./dist/index.js"
    },
    "./cli": {
      "types": "./dist/cli-entry.d.ts",
      "import": "./dist/cli.js"
    },
    "./browser": {
      "types": "./dist/browser-entry.d.ts",
      "import": "./dist/browser.js"
    },
    "./web": {
      "types": "./dist/web-entry.d.ts",
      "import": "./dist/web.js"
    },
    "./web/worker": {
      "import": "./dist/web-worker.js"
    },
    "./platform": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    }
  },
  "files": [
    "dist/**/*.js",
    "dist/**/*.d.ts",
    "README.md",
    "LICENSE"
  ],
  "sideEffects": [
    "./dist/web-worker.js"
  ],
  "scripts": {
    "build": "tsup && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
    "dev": "tsup --watch",
    "test": "npm run test:unit",
    "test:unit": "vitest run tests/unit",
    "test:integration": "vitest run tests/integration tests/integrations",
    "test:all": "vitest run tests/unit tests/integration tests/integrations",
    "test:coverage": "vitest run tests/unit --coverage",
    "test:ui": "vitest --ui",
    "lint": "biome lint src",
    "lint:fix": "biome lint --write src",
    "format": "biome format src",
    "format:fix": "biome format --write src",
    "check": "biome check src",
    "check:fix": "biome check --write src",
    "typecheck": "tsc --noEmit",
    "clean": "rimraf dist",
    "prepublishOnly": "npm run clean && npm run typecheck && npm run lint && npm run test && npm run build",
    "docs:dev": "typedoc --watch",
    "docs:build": "typedoc",
    "examples:basic-api": "tsx examples/01-basic-api.ts",
    "examples:streaming": "tsx examples/02-streaming.ts",
    "examples:async": "tsx examples/03-async-processing.ts",
    "examples:cli": "tsx examples/04-cli-client.ts",
    "examples:s3": "tsx examples/05-s3-integration.ts",
    "examples:typescript": "tsx examples/06-typescript-types.ts",
    "examples:node": "tsx examples/runtimes/node.ts",
    "examples:bun": "bun run examples/runtimes/bun.ts",
    "examples:deno": "deno run --allow-net --allow-env --allow-read examples/runtimes/deno.ts",
    "examples:browser": "vite examples/runtimes/browser",
    "examples:web-ocr": "cd examples/web-ocr && npm run dev",
    "examples:worker": "cd examples/runtimes/cloudflare-worker && wrangler dev",
    "openapi:fetch": "tsx scripts/fetch-openapi.ts",
    "openapi:generate": "openapi-typescript openapi/docling-serve.json -o src/types/generated/api.ts",
    "openapi:update": "npm run openapi:fetch && npm run openapi:generate"
  },
  "keywords": [
    "docling",
    "document",
    "conversion",
    "pdf",
    "ocr",
    "typescript",
    "sdk",
    "client",
    "api",
    "cli",
    "cross-runtime",
    "browser",
    "bun",
    "deno",
    "nodejs",
    "webgpu",
    "wasm",
    "web-ocr",
    "onnx"
  ],
  "author": "Kauan Guesser <54258870+kauandotnet@users.noreply.github.com>",
  "license": "BSD-3-Clause",
  "repository": {
    "type": "git",
    "url": "https://github.com/btwld/docling-sdk.git"
  },
  "publishConfig": {
    "registry": "https://registry.npmjs.org/"
  },
  "bugs": {
    "url": "https://github.com/btwld/docling-sdk/issues"
  },
  "homepage": "https://github.com/btwld/docling-sdk#readme",
  "engines": {
    "node": ">=18.0.0"
  },
  "dependencies": {
    "mitt": "^3.0.1",
    "ofetch": "^1.4.1",
    "zod": "^4.0.15"
  },
  "optionalDependencies": {
    "archiver": "^7.0.1",
    "ws": "^8.18.0"
  },
  "devDependencies": {
    "@aws-sdk/client-s3": "^3.0.0",
    "@aws-sdk/lib-storage": "^3.0.0",
    "@biomejs/biome": "^1.9.4",
    "@types/archiver": "^6.0.3",
    "@types/node": "^24.9.1",
    "@types/ws": "^8.5.13",
    "@vitest/coverage-v8": "^2.1.8",
    "@vitest/ui": "^2.1.8",
    "openapi-typescript": "^7.10.1",
    "rimraf": "^6.0.1",
    "tsc-alias": "^1.8.16",
    "tsup": "^8.3.5",
    "tsx": "^4.20.5",
    "typedoc": "^0.27.4",
    "typescript": "^5.7.2",
    "vite": "^6.0.0",
    "vitest": "^2.1.8"
  },
  "peerDependencies": {
    "@huggingface/transformers": ">=3.0.0",
    "onnxruntime-web": ">=1.18.0",
    "typescript": ">=4.9.0",
    "unpdf": ">=0.12.0"
  },
  "peerDependenciesMeta": {
    "typescript": {
      "optional": true
    },
    "unpdf": {
      "optional": true
    },
    "@huggingface/transformers": {
      "optional": true
    },
    "onnxruntime-web": {
      "optional": true
    }
  }
}
