Skip to content

Node

The Node platform provides focused adapters for Node-specific, non-isomorphic APIs.

Node adapters are:

  • Focused - Specific adapters for specific Node APIs (no generic @xmachines/node package)
  • Optional - Only install what you need
  • Web Streams first - Web Streams remain the canonical API
  • Interop only - No execution semantics or protocols

Adapters between Node streams and Web Streams.

Process management and lifecycle hooks.

Terminal window
# Install specific adapter
npm install @xmachines/node-stream
# Or install both
npm install @xmachines/node-stream @xmachines/node-process

Node adapters bridge to Web Streams - they don’t replace them.

Node adapters are opt-in. The core runtime works in Node without any Node-specific packages.

Adapters provide raw interoperability. They don’t define protocols or execution patterns.

Coming soon - examples for stream and process adapters will be added as the packages are implemented.