{"_id":"@cosmocart/blog-sdk","name":"@cosmocart/blog-sdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@cosmocart/blog-sdk","version":"0.1.0","description":"Typed REST + realtime client for the cosmo-blog API.","license":"AGPL-3.0-only","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"peerDependencies":{"react":"^18 || ^19"},"peerDependenciesMeta":{"react":{"optional":true}},"dependencies":{"socket.io-client":"^4.8.1"},"devDependencies":{"@types/react":"^19.0.0","react":"^19.0.0","tsup":"^8.3.5","typescript":"^5.6.3","@cosmocart/blog-shared-types":"0.0.0"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"echo \"no tests yet\"","lint":"echo \"no lint yet\""},"_id":"@cosmocart/blog-sdk@0.1.0","_integrity":"sha512-N1z+LNrWd/mxYrgFSch03lCGZKZTTMJD0urAgAHZB8qokwPW2cb7Y2oxANtK/u1Iz04+YIZ4MZwJa7EMPyiFEQ==","_resolved":"/tmp/2351726ccc101a7178b89ff56b3150ea/cosmocart-blog-sdk-0.1.0.tgz","_from":"file:cosmocart-blog-sdk-0.1.0.tgz","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-N1z+LNrWd/mxYrgFSch03lCGZKZTTMJD0urAgAHZB8qokwPW2cb7Y2oxANtK/u1Iz04+YIZ4MZwJa7EMPyiFEQ==","shasum":"a8e6af62ae7b05a88a4be9f75e63f024cea1dd7b","tarball":"https://registry.npmjs.org/@cosmocart/blog-sdk/-/blog-sdk-0.1.0.tgz","fileCount":9,"unpackedSize":124140,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIH9OBiqZbPs6zMjUtAoxNn9TUvHOtbu0yc6PdC9ZzuXqAiBrqkGl5vXvEtWsYoryndCAzqhnpoNVCQFzTPmExyK1Jg=="}]},"_npmUser":{"name":"cosmocart","email":"deniellalla@gmail.com"},"directories":{},"maintainers":[{"name":"cosmocart","email":"deniellalla@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/blog-sdk_0.1.0_1778450407567_0.9440850092401383"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-10T22:00:07.470Z","0.1.0":"2026-05-10T22:00:07.717Z","modified":"2026-05-10T22:00:07.923Z"},"maintainers":[{"name":"cosmocart","email":"deniellalla@gmail.com"}],"description":"Typed REST + realtime client for the cosmo-blog API.","license":"AGPL-3.0-only","readme":"# @cosmocart/blog-sdk\n\nTyped REST + realtime client for the cosmo-blog API.\n\n```ts\nimport { CosmoBlogClient } from '@cosmocart/blog-sdk'\n\nconst client = new CosmoBlogClient({\n  apiBaseUrl: 'https://cosmo-blog-api...run.app',\n  pkKey: 'pk_live_...',  // public reads\n  // jwt: supabaseAccessToken, // owner reads/writes\n})\n\nconst { items } = await client.listPublicPosts()\nconst post = await client.getPublicPostBySlug('hello-world')\n```\n\nThe package also exposes the `useAutosave` React hook used by the editor.\n","readmeFilename":"README.md","_rev":"1-adbd58901eca99a7679cba7eeb76b07f"}