@enc-protocol/node-sdk — NodeSdk
A host app that bundles the reference enclaves so a single node deployment can serve them all from one definition.
Extends AppSdk. Enclaves: DM, Group, Personal, Registry, and other reference enclaves. No encryption, no own write surface.
Install
npm install @enc-protocol/node-sdkConstruct
import { NodeSdk } from '@enc-protocol/node-sdk'
const sdk = new NodeSdk({ mode: 'cf', nodeUrl: process.env.NODE_URL, identity })
await sdk.init() // registers all 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.
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 ·
app-sdk-base