{"_id":"@alphea/foundation","_rev":"4-eb9a845106214208366b8f87d31c7976","name":"@alphea/foundation","dist-tags":{"next":"0.1.0-alpha.1","latest":"0.1.3"},"versions":{"0.1.0-alpha.0":{"name":"@alphea/foundation","version":"0.1.0-alpha.0","license":"Apache-2.0","_id":"@alphea/foundation@0.1.0-alpha.0","maintainers":[{"name":"alphea_henrypark","email":"henrypark@alphea.io"}],"dist":{"shasum":"f62cb57c84ef1014c897f9742bf08936dd086e06","tarball":"https://registry.npmjs.org/@alphea/foundation/-/foundation-0.1.0-alpha.0.tgz","fileCount":71,"integrity":"sha512-J48XDOctUDMxhbtTRZkgifqI6magpe/Ok/mYFCN7RqcKnvRoFyp1KMTzaysvYhMTpcTNyRFfzZrRaC1gSnnHUA==","signatures":[{"sig":"MEUCIQDUPkVP4nOejm4fjBEWPqgqdw+UXbv1TwS2F4BWkxsUGwIgLTLgsoiGhS3Hj3Pfu3jftDv3+ONP4mpsZAFQ5wHLNM4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":252395},"type":"module","types":"./dist/foundation/index.d.ts","engines":{"node":">=22.18.0"},"exports":{".":{"types":"./dist/foundation/index.d.ts","default":"./dist/foundation/index.js"}},"gitHead":"b635a38bdef1ef0e4ea11fb1bdc5c16001e5a10d","_npmUser":{"name":"alphea_henrypark","email":"henrypark@alphea.io"},"repository":{"url":"https://git.alphea.io/Alphea-Dev/alphea-framework.git","type":"git","directory":"packages/foundation"},"_npmVersion":"11.13.0","description":"Credential-bearing Foundation RPC SDK for trusted ALPHEA tooling","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/foundation_0.1.0-alpha.0_1782124140211_0.14776155832964433","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.1":{"name":"@alphea/foundation","version":"0.1.0-alpha.1","license":"Apache-2.0","_id":"@alphea/foundation@0.1.0-alpha.1","maintainers":[{"name":"alphea_henrypark","email":"henrypark@alphea.io"}],"dist":{"shasum":"6b4826440adefba1f26803d4bbc535f4c99d3b9c","tarball":"https://registry.npmjs.org/@alphea/foundation/-/foundation-0.1.0-alpha.1.tgz","fileCount":71,"integrity":"sha512-Tyz4PuIz49lu9roKH2hirLMV4V0eH+PYpv2VoTpaQvtMhI1GlelRgLiUEpQ1YU6F2gvwW0gqWLjMmwy6qYXRyg==","signatures":[{"sig":"MEYCIQCw9pdCCaFFMBTCPfFwfhQ0ScL51KZV0l5ogeQ2iNZPawIhAJR8gVvOCLSVjRP0nFcJOd28W7QWVjdLcFNaFkJ/JWMu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":252395},"type":"module","types":"./dist/foundation/index.d.ts","engines":{"node":">=22.18.0"},"exports":{".":{"types":"./dist/foundation/index.d.ts","default":"./dist/foundation/index.js"}},"gitHead":"d7f72ff0d9b124617d5025144cdde5d233267dfc","_npmUser":{"name":"alphea_henrypark","email":"henrypark@alphea.io"},"repository":{"url":"https://git.alphea.io/Alphea-Dev/alphea-framework.git","type":"git","directory":"packages/foundation"},"_npmVersion":"11.13.0","description":"Credential-bearing Foundation RPC SDK for trusted ALPHEA tooling","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/foundation_0.1.0-alpha.1_1782199666075_0.7805170107558366","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@alphea/foundation","version":"0.1.2","license":"Apache-2.0","_id":"@alphea/foundation@0.1.2","maintainers":[{"name":"alphea_henrypark","email":"henrypark@alphea.io"}],"dist":{"shasum":"4dda7746c06e77fa10671897a281217fb65f10c2","tarball":"https://registry.npmjs.org/@alphea/foundation/-/foundation-0.1.2.tgz","fileCount":79,"integrity":"sha512-ZWWAQBc/mzNSiOnsx4ccx9RUWTvGuR1Tf6dD9x4n1MOWviTLdHydN3A0Y5qd6YiawH1DQ+tIpBB7o/1A+r+qpg==","signatures":[{"sig":"MEUCIQCFAfMOTuCnMNFE1Onm5XtHQJunmbdDllFGTW0h3Rsb6AIgV4ClxQ63271tw3lLIy8376LZ23Q2Qkv+KKlGn4guUz4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":331238},"type":"module","types":"./dist/foundation/index.d.ts","engines":{"node":">=22.18.0"},"exports":{".":{"types":"./dist/foundation/index.d.ts","default":"./dist/foundation/index.js"}},"gitHead":"085d123654ce6414bdb75eaff595ee5fbb926b67","_npmUser":{"name":"alphea_henrypark","email":"henrypark@alphea.io"},"repository":{"url":"https://git.alphea.io/Alphea-Dev/alphea-framework.git","type":"git","directory":"packages/foundation"},"_npmVersion":"11.13.0","description":"Credential-bearing Foundation RPC SDK for trusted ALPHEA tooling","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/foundation_0.1.2_1782290785518_0.7776265308096963","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@alphea/foundation","version":"0.1.3","description":"Credential-bearing Foundation RPC SDK for trusted ALPHEA tooling","license":"Apache-2.0","type":"module","exports":{".":{"types":"./dist/foundation/index.d.ts","default":"./dist/foundation/index.js"}},"types":"./dist/foundation/index.d.ts","repository":{"type":"git","url":"https://git.alphea.io/Alphea-Dev/alphea-framework.git","directory":"packages/foundation"},"sideEffects":false,"publishConfig":{"access":"public"},"engines":{"node":">=22.18.0"},"gitHead":"79aef76766e67251a2d59ba646fd47aa5511b889","_id":"@alphea/foundation@0.1.3","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-H5DYW3ZOCHGQV9zOLHyPtmSyWFiWUEGIrqN4c7eWO+dbR9S38+LnG24xRDNqe+lApQKK+5NoKQsKdLaNpbn2bA==","shasum":"bc9523e5b6ee97a6707deddc015da685cdda8230","tarball":"https://registry.npmjs.org/@alphea/foundation/-/foundation-0.1.3.tgz","fileCount":79,"unpackedSize":331238,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE6TSYur3o/vKVthnlXyJiEEUA5O0UKjoauuU0FeFZUKAiBIJu9+aRUWTC/Z5nBtAwQkX3IrNXLq8BvEV0T5hGzhnQ=="}]},"_npmUser":{"name":"alphea_henrypark","email":"henrypark@alphea.io"},"directories":{},"maintainers":[{"name":"alphea_henrypark","email":"henrypark@alphea.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/foundation_0.1.3_1782450240564_0.6350701853305853"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-22T10:28:59.999Z","modified":"2026-06-26T05:04:00.881Z","0.1.0-alpha.0":"2026-06-22T10:29:00.336Z","0.1.0-alpha.1":"2026-06-23T07:27:46.220Z","0.1.2":"2026-06-24T08:46:25.714Z","0.1.3":"2026-06-26T05:04:00.752Z"},"license":"Apache-2.0","repository":{"type":"git","url":"https://git.alphea.io/Alphea-Dev/alphea-framework.git","directory":"packages/foundation"},"description":"Credential-bearing Foundation RPC SDK for trusted ALPHEA tooling","maintainers":[{"name":"alphea_henrypark","email":"henrypark@alphea.io"}],"readme":"# @alphea/foundation\n\nCredential-bearing Foundation RPC SDK for trusted ALPHEA tooling and server\ncode.\n\nIt serves as the credential-bearing public proto RPC mirror layer, while browser and function facades remain narrower. It provides safe typed low-level mirror access for public Foundation RPCs, as well as ergonomic facades for auth, storage, and functions.\n\nUse this package only where the caller is allowed to provide a Foundation\nbearer/session through the configured transport:\n\n```ts\nimport { createAlpheaFoundationClient } from \"@alphea/foundation\";\n\n// Use an ergonomic facade:\nawait alphea.storage.read(\"wallet://0xabc\", \"/notes.md\");\n\n// Or use the low-level typed mirror call surface for other RPCs:\nconst response = await alphea.rpc(\"Monitor.GetStats\", {});\n\nfor await (const event of alphea.rpcStream(\"Monitor.StreamStats\", {})) {\n  console.log(event);\n}\n\nasync function* nodeMessages() {\n  yield { hello: { node_id: \"node_1\" } };\n}\n\nfor await (const message of alphea.rpcBidiStream(\"Node.ConnectNode\", nodeMessages())) {\n  console.log(message);\n}\n```\n\nThe built-in fetch transport frames streams with Connect JSON over `fetch` and\n`duplex: \"half\"`. That supports server-streaming calls and finite bidirectional\nrequest streams. Production `Node.ConnectNode` workers that keep heartbeats open\nwhile concurrently receiving assignments need an injected full-duplex Connect or\ngRPC transport.\n\nDo not inject this package into browser app code or user-authored function code.\n","readmeFilename":"README.md"}