nodeSpec.ts and nodeImpl.ts.
Node Spec
A node spec usesSpec.makeNode() and GroupSpec.makeNode() to define groups, and FunctionSpec.publicNodeAction() or FunctionSpec.internalNodeAction() to define functions.
By convention, node action specs and impls go in a node/ subdirectory of your confect/ directory, using the standard .spec.ts and .impl.ts suffixes.
confect/node/email.spec.ts
nodeSpec.ts file in your confect/ directory.
confect/nodeSpec.ts
Node Impl
A node impl usesnodeApi from _generated/nodeApi instead of api, and Impl.make(nodeApi) to construct the implementation. Each function impl contains a handler that runs in the Node.js runtime, where you have access to NodeContext services, which are accessible via the @effect/platform package.
confect/node/email.impl.ts
nodeImpl.ts file in your confect/ directory.
confect/nodeImpl.ts
Calling Node Actions
Node actions are exposed under thenode namespace in your refs.