{
  "schema": "leumas.docs.page/1",
  "id": "pkg:@leumas/assets-sdk",
  "slug": "packages/assets-sdk",
  "kind": "capabilities",
  "bucket": "package",
  "title": "@leumas/assets-sdk",
  "name": "@leumas/assets-sdk",
  "eyebrow": null,
  "chip": null,
  "summary": "The ONE SDK for shared assets — identity, user storage, and the shared /library/* (logos/icons/3d/fonts). Client for the datacenter service.",
  "keywords": [
    "assets-sdk",
    "assets-sdk api-client",
    "icons",
    "logos",
    "fonts",
    "assets sdk api",
    "leumas assets sdk",
    "datacenter"
  ],
  "audience": "both",
  "funnel": {
    "product": null,
    "cta": null
  },
  "body": "# @leumas/assets-sdk\n\nThe ONE SDK for shared assets: identity (wallet SIWE), user-scoped storage, and the shared\n**`/library/*`** brand-asset layer (logos/icons/3d/fonts). Client for `shared/services/datacenter`.\nNo separate asset SDK — this is it.\n\n**Absorbs (DRY-consolidated from):** `leumas-datacenter/packages/datacenter-sdk` + `datacenter-api` routes; the `/library/*` layer is new (per the plan).\n\n## Usage\n\n```js\nimport { createAssetsClient } from '@leumas/assets-sdk';\n\nconst assets = createAssetsClient({ baseUrl: 'https://assets.leumas.tech', getToken: () => token });\n\nconst logos = await assets.library.list('logos');\nconst logoUrl = assets.library.url('logos', 'leumas-mark.svg');   // <img src={logoUrl} />\nawait assets.storage.upload(file, { path: 'projects', visibility: 'private' });\n```\n\nReuses `@leumas/api-client`'s fetch wrapper (one HTTP layer across the ecosystem).\n",
  "source": {
    "path": "shared/packages/assets-sdk/README.md",
    "blobSha": "",
    "commit": "",
    "committedAt": "",
    "provenance": "no-git",
    "bytes": 1076,
    "hash": "245281f6f292da0ca137ed6d5975cb16ca243215"
  },
  "urls": {
    "html": "/p/packages/assets-sdk",
    "json": "/docs/packages/assets-sdk.json",
    "md": "/docs/packages/assets-sdk.md"
  },
  "links": {
    "composes": [
      "pkg:@leumas/api-client"
    ],
    "usedBy": [
      "pkg:@leumas/features"
    ],
    "product": [
      "pkg:@leumas/admin",
      "pkg:@leumas/studio",
      "pkg:@leumas/web"
    ],
    "howTo": [],
    "skills": [
      "skill:cinematic-frontend-director",
      "skill:threejs-leumas"
    ]
  },
  "exports": {
    "total": 1,
    "component": 0,
    "hook": 0,
    "helper": 1,
    "names": [
      {
        "n": "createAssetsClient",
        "k": "helper"
      }
    ]
  }
}
