@tailworks/node
v0.2.0
Published
tw Node process tier SDK: verified caller (x-tw-caller), attributed egress (proxy fetch / undici dispatcher)
Readme
@tailworks/node
The SDK for tailworks' Node.js
process tier ("runtime": "node" apps).
getCaller(req)/requireCaller(req): the verified tailnet caller that tailworks passes in the signedx-tw-callerheader.capValues(caller, cap): the caller's app capability values.fetch,dispatcher(),installGlobalDispatcher(): egress through the workload's tailnet node, attributed to the workload.enforceEgress(): refuse egress that bypasses the tailnet proxy.
tw init my-svc --template node-workflow creates a working app. Docs:
node-tier.md.
