libuv is a multi-platform library centered on non-blocking I/O. Node.js and several other runtimes embed it for networking and event handling.
Overview
libuv provides portable abstractions for asynchronous input and output on Unix-like systems, macOS, Windows, and other supported platforms. It was built mainly for Node.js and also powers projects such as Luvit, Julia integrations, and uvloop.
The library exposes a full event loop implementation backed by epoll, kqueue, IOCP, or event ports depending on the host OS. Around that loop sit non-blocking TCP and UDP sockets, DNS lookups, file and filesystem operations, directory change notifications, and TTY control with ANSI escape sequences.
Inter-process communication can share sockets through Unix domain sockets or Windows named pipes. Child process management, a worker thread pool, signal handling, high-resolution timers, and threading primitives round out the surface area developers use when building networked or I/O-heavy applications.
Semantic versioning applies from release 1.0.0 onward, with a stable ABI maintained across major versions so binaries linked against one major line remain compatible as the project evolves.
Key features
- Event loop with epoll, kqueue, or IOCP
- Asynchronous TCP and UDP
- Non-blocking DNS resolution
- Async file and filesystem APIs
- Filesystem change notifications
- Unix or Windows IPC socket sharing
- Child processes and thread pool
- Signals and synchronization primitives
Use cases
- Runtime networking and I/O core
- Event-driven server backends
- Cross-platform async file access
- Portable process and IPC handling