Sharp is a high-performance Node.js native addon for image processing, built on libvips. It provides a fluent, chainable API for resizing, converting, and manipulating images in formats like JPEG, PNG, WebP, GIF, AVIF, HEIF, TIFF, SVG, and raw pixel data. The architecture cleanly separates a JavaScript API layer (in lib/*.mjs) from a C++ core (src/*.cc) that leverages libvips via N-API async workers, enabling non-blocking, multithreaded processing. The library supports streaming, buffer, and file-based I/O, and includes advanced capabilities such as ICC profile management, metadata preservation, animation handling, gain map support, and tiling for deep zoom formats. Sharp is distributed as prebuilt binaries for a wide range of platforms and architectures, with a build-from-source fallback. The codebase demonstrates strong engineering practices: a comprehensive unit test suite using node:test, a CI pipeline that tests on multiple OS/arch combinations, and meticulous handling of format-specific edge cases. It is actively maintained and keeps pace with libvips updates, with a low technical drift.
uWebSockets.js is a high-performance native Node.js addon that wraps the uWebSockets C++ library to provide blazing-fast HTTP/1.1, WebSocket, and QUIC (HTTP/3) server capabilities. It exposes a clean TypeScript/JavaScript API with features such as per-message compression, backpressure management, streaming responses, pub/sub, and SNI support. The architecture centers on a V8 addon compiled for multiple Node.js ABIs (22/24/26) using a custom build script that also builds BoringSSL and lsquic. The JavaScript layer defines a DeclarativeResponse class that encodes response instructions as typed array opcodes for zero-copy native execution. The codebase includes extensive benchmarks with A/B comparison, automated fuzz testing, and a standalone V8 host for testing. While primarily an application library, it incorporates sophisticated data engineering patterns in its benchmarking and performance measurement infrastructure. The repository is actively maintained with recent commits and low open issue count, though it depends on a volatile V8 API and an external submodule.
`@openclaw/fs-safe` is a production-grade Node.js library providing capability-style filesystem roots for secure, confined file operations. It enforces path boundaries, rejects symlink/hardlink escapes, and defends against TOCTOU races. The library offers atomic read/write/replace operations, secure archive extraction (ZIP/TAR with entry budgets and integrity checks), cross-process file locking, JSON stores with durability guarantees, permission inspection for POSIX and Windows, and secret file handling. It bundles a Rust native addon (via napi-rs) to accelerate critical operations on Linux, macOS, and Windows, with a transparent JavaScript fallback. The API is organized into modular subpath exports (e.g., `root`, `archive`, `file-store`, `file-lock`, `permissions`, `secret`, `durability`, `atomic`, `temp`, `walk`, `advanced`), each with typed error codes and consistent error categories. The package includes an extensive test suite (>3000 tests) covering security regressions, property-based fuzzing, concurrency stress tests, and cross-platform behavior. It is used by the OpenClaw ecosystem and published on npm with SLSA provenance.
node-java is a native Node.js addon that provides a bidirectional bridge between Node.js and the Java Virtual Machine (JVM). It allows JavaScript code to instantiate Java classes, call static and instance methods, get/set fields, create arrays, handle Java exceptions, and create dynamic proxies for Java interfaces. The architecture comprises three layers: C++ native bindings (using NAN and JNI), Java helper classes for reflection and method invocation, and a JavaScript API exposed as a single import. The system manages JVM lifecycle, async method dispatch via libuv, and complex type conversions (including primitives, arrays, varargs, and Unicode strings). It is widely used (1890 stars) with active maintenance and cross-platform support (Linux, macOS, Windows, ARM).
NodeGui is a Node.js native addon that wraps the Qt framework to enable building native, cross-platform desktop applications using JavaScript or TypeScript. The architecture consists of two layers: TypeScript wrapper classes (under `src/lib/`) that provide a developer-friendly API, and C++ N-API (node-addon-api) wrappers (under `src/cpp/`) that directly interface with Qt widgets, layouts, and core types. A custom Node.js fork called Qode merges the Qt event loop with Node's event loop, and Facebook's Yoga library provides CSS Flexbox layout integration. The project exposes over 100 Qt widgets, including buttons, dialogs, tables, trees, text editors, menus, system tray, and clipboard, along with a comprehensive set of Qt enums and signal/event handling. The build system uses CMake with reusable modules for Qt, Napi, and Qode support, and the project includes a Docusaurus documentation site with API references and development guides.