@enc-protocol/node-cli — NodeSdk
A host app that bundles the reference enclaves — DM, Group, Personal, Registry, and more — so a single node deployment can serve them all from one definition.
Extends AppSdk. Enclaves: DM, Group,
Personal, Registry.
No encryption, no own write surface.
Install
npm config set @enc-protocol:registry https://npm-registry.ocrybit.workers.dev/
npm install @enc-protocol/node-cliConstruct
import { NodeSdk } from '@enc-protocol/node-cli'
const sdk = new NodeSdk({ mode: 'cf', nodeUrl: process.env.NODE_URL, identity })
await sdk.init() // registers all six bundled enclavesOptions are the standard AppSdk constructor.
A host, not a feature app
NodeSdk has no generated submit* / query* methods of its own — it exists to register
and host the bundled enclaves so they're available under one deployment. To actually read or
write, use the individual app SDKs (personal, dm,
group, …) or drop to the underlying AppClient:
const client = sdk.raw()
await client.submit('Personal', 'public', { draft: 'gm' })This is the SDK counterpart to running an ENC node: the node serves the
enclaves, and NodeSdk bundles their manifests so a deployment can stand them all up at once.
See also
- Run a Node — hosting enclaves on a real node
- Enclave profiles — the catalog of bundled enclaves
- App SDK pattern ·
cli-sdk-base