{"_id":"@calldatasdk/claude","name":"@calldatasdk/claude","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@calldatasdk/claude","version":"1.0.0","description":"Tiny, AI-friendly helper SDK for Calldata Network. Lets Claude Code and other agents wire Calldata into a backend with very little code: define commands, build a backend, send commands, all in one or two calls.","license":"MIT","homepage":"https://calldata.network","keywords":["calldata","ethereum","evm","claude","claude-code","ai","agents","low-code","helpers","command bus"],"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean --treeshake","prepublishOnly":"npm run build"},"dependencies":{"@calldatasdk/sdk":"^1.0.0","@calldatasdk/server":"^1.0.0"},"peerDependencies":{"ethers":"^6.0.0"},"devDependencies":{"ethers":"^6.13.4","tsup":"^8.3.5","typescript":"^5.6.3"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@calldatasdk/claude@1.0.0","_nodeVersion":"24.7.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-gFXxxA9O+UgQE3c7xyHFvbJJI+jVErIzvqO9IdeP70XLVguFK2nJaSrzy0ZYpDChviDvGz8Fd7fG4Ww4B96Ckg==","shasum":"a90adbe585b9b083696acfbbdd24e045548eb04a","tarball":"https://registry.npmjs.org/@calldatasdk/claude/-/claude-1.0.0.tgz","fileCount":7,"unpackedSize":20112,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDzMQ7iXWoJqNYt+s/RJppV7L4MjrzvLSBQXcBbc33cQAIhAJ7W/ZTAtvvcNe4zsQ0JecTiMtSaDuPVHWtxslPIHAI/"}]},"_npmUser":{"name":"calldatanetwork","email":"calldata@vouchaai.com"},"directories":{},"maintainers":[{"name":"calldatanetwork","email":"calldata@vouchaai.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/claude_1.0.0_1782841837240_0.7817662742027367"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-30T17:50:37.004Z","1.0.0":"2026-06-30T17:50:37.401Z","modified":"2026-06-30T17:50:38.203Z"},"maintainers":[{"name":"calldatanetwork","email":"calldata@vouchaai.com"}],"description":"Tiny, AI-friendly helper SDK for Calldata Network. Lets Claude Code and other agents wire Calldata into a backend with very little code: define commands, build a backend, send commands, all in one or two calls.","homepage":"https://calldata.network","keywords":["calldata","ethereum","evm","claude","claude-code","ai","agents","low-code","helpers","command bus"],"license":"MIT","readme":"# @calldatasdk/claude\n\nTiny, AI-friendly helpers for [Calldata Network](https://calldata.network). Nothing\nwild, just useful: a small set of functions that let Claude Code (or any agent, or\nany human) wire Calldata into a backend with very little code.\n\nBuilt on `@calldatasdk/sdk` (client) and `@calldatasdk/server` (backend). `ethers`\nv6 is a peer dependency.\n\n```bash\nnpm install @calldatasdk/claude ethers\n```\n\n## A backend in a few lines\n\n```ts\nimport { app, str, startBackend } from '@calldatasdk/claude';\n\nconst board = app({\n  namespace: 'board',\n  controlAddress: '0xAppInbox...',\n  commands: {\n    post: {\n      args: { text: str({ max: 280 }) },\n      handler: (ctx) => console.log(ctx.signer, 'said', ctx.args.text),\n    },\n  },\n});\n\nconst sub = startBackend({ rpcUrl: process.env.RPC!, apps: [board], openMode: true });\n// later: await sub.stop();\n```\n\n## Sending a command\n\n```ts\nimport { createClient } from '@calldatasdk/claude';\n\nconst client = createClient({ rpcUrl: process.env.RPC!, privateKey: process.env.PK! });\nconst hash = await client.send('0xAppInbox...', 'post', { text: 'gm, on chain' });\n```\n\n## What you get\n\n- `app(spec)` / `command(spec)` , define a command language with no boilerplate.\n- `schema(fields)` with `str()`, `num()`, `bool()` , inline validators, no schema library.\n- `startBackend({ rpcUrl, apps })` , provider + relayer + interpreter in one call. Returns `{ stop() }`.\n- `createClient({ rpcUrl, privateKey })` , `.send(controlAddress, cmd, args)` returns the tx hash.\n- Re-exports `encodeEnvelope`, `decodeEnvelope`, `encodeCommandData`, `decodeCommandData`.\n\nDesigned so an AI assistant can scaffold a full Calldata integration from a short\nprompt. The real protocol lives in `@calldatasdk/sdk` and `@calldatasdk/server`.\n\nLearn more at [calldata.network](https://calldata.network). MIT licensed.\n","readmeFilename":"README.md","_rev":"1-4247e2b9d82ebd7744ddcf41c5ae7cff"}