@effect/platform-node package provides Node.js-specific implementations for the abstractions defined in @effect/platform, allowing you to write platform-independent code that integrates smoothly with Node.js.
Installation
Available Modules
HTTP
NodeHttpServer
Create HTTP servers using Node.js’s built-inhttp and https modules:
NodeHttpClient
Make HTTP requests using Node.js’s native client or Undici:File System
NodeFileSystem
Access the file system with Effect-based APIs:Process Management
NodeChildProcessSpawner
Spawn child processes with full Effect integration:Networking
NodeSocket
Create TCP socket clients:NodeSocketServer
Create TCP socket servers:Redis
NodeRedis
Integrate with Redis using ioredis:Workers
NodeWorker
Use Node.js Worker Threads:Streams
NodeStream
Convert between Node.js streams and Effect streams:Utilities
NodePath
Path manipulation utilities:NodeTerminal
Terminal/TTY operations:Complete Runtime
NodeRuntime
TheNodeRuntime provides all Node.js services in a single layer:
Configuration
Many services accept configuration options:Requirements
- Node.js 18.0.0 or higher
- Effect 4.0.0 or higher