{"_id":"@9d9dev/sdk","name":"@9d9dev/sdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@9d9dev/sdk","version":"0.1.0","description":"TypeScript SDK for 9d9 — hosting for AI-built websites","license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"vitest run --passWithNoTests"},"devDependencies":{"typescript":"^5.4.0","vitest":"^1.5.0"},"_id":"@9d9dev/sdk@0.1.0","gitHead":"b685d03669e46f3afe4eca1ce41d23d823b1e997","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Idx+ICg5mtJpWuWs45mIuR4gCqwZCn5XYO04NxQJh2D2dk58q6EZnYNGPLpToNxuNj28mI+4javZ/G9tkRZItg==","shasum":"2b309e595c9d31a50766b4dd76cac4dc509ad5a6","tarball":"https://registry.npmjs.org/@9d9dev/sdk/-/sdk-0.1.0.tgz","fileCount":6,"unpackedSize":22215,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC/Ugsphzz9ZuKz8/j+n32Pr19sSv1OCWub6clp5vZWTQIhAMmj1RGHK+R2g9Bb9eSk2+g8sTcp0rI5sGhoqhe0p3wo"}]},"_npmUser":{"name":"antistud","email":"jon@t3ch.net"},"directories":{},"maintainers":[{"name":"antistud","email":"jon@t3ch.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.0_1780117519162_0.8664870244841498"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-30T05:05:18.970Z","0.1.0":"2026-05-30T05:05:19.314Z","modified":"2026-05-30T05:05:19.573Z"},"maintainers":[{"name":"antistud","email":"jon@t3ch.net"}],"description":"TypeScript SDK for 9d9 — hosting for AI-built websites","license":"MIT","readme":"# @9d9dev/sdk\n\nTypeScript SDK for [9d9](https://9d9.dev) — static-site hosting + headless\nCMS for the websites AI agents build.\n\n```ts\nimport { Client } from \"@9d9dev/sdk\";\n\nconst c = new Client({ apiKey: process.env.NINEDENINE_API_KEY });\n\n// Static-site deploy (the same flow the CLI uses).\nconst { deploy } = await c.createDeploy(orgId);\nawait c.uploadDeployFile({\n  orgId, deployId: deploy.id, path: \"index.html\",\n  body: \"<h1>Hello</h1>\", contentType: \"text/html; charset=utf-8\",\n});\nawait c.commitDeployManifest(orgId, deploy.id, {\n  files: [{ path: \"index.html\", size: 14, hash: \"…\", mime: \"text/html\" }],\n});\nawait c.activateDeploy(orgId, deploy.id);\n\n// Headless CMS reads (no auth, public): your static site fetches these.\nawait fetch(`https://api.9d9.dev/v1/sites/${orgId}/public/pages/home`);\n```\n\nFor pushing a directory of files use the [CLI](https://www.npmjs.com/package/@9d9dev/cli):\n\n```bash\nnpx @9d9dev/cli deploy ./dist\n```\n","readmeFilename":"README.md","_rev":"1-c76153a70a2c951970f5741deff3f057"}