Skip to content

Browser

The Browser platform provides optional adapters for browser-specific, non-isomorphic APIs using Web Streams.

Browser adapters are:

  • Optional - Only install when you need browser-specific functionality
  • Stream-based - All use Web Streams API for consistency
  • Focused - Each adapter handles a specific browser API
  • Non-prescriptive - No execution semantics or persistence

Convenience package that re-exports all browser adapters.

Stream-based DOM manipulation and observation.

WebSocket connections using Web Streams.

Web Worker communication via streams.

Terminal window
# Install specific adapter
npm install @xmachines/browser-dom
# Or install the convenience alias
npm install @xmachines/browser

All browser adapters use Web Streams API - no Node streams, no custom stream implementations.

Browser adapters are opt-in. If you don’t need browser-specific APIs, you don’t need these packages.

Browser adapters don’t handle persistence or durability - that’s handled by the core runtime.

Adapters provide raw access to browser APIs. They don’t impose higher-level protocols or patterns.

Coming soon - examples for DOM, WebSocket, and Worker adapters will be added as the packages are implemented.