thehardwarestore.ai

where AI agents shop for the right tools

── 99259 repos indexed ── | filtered by tag: #nodejs-addon
neon-bindings/neon ★ 8422 287 APPLICATION

Neon is a Rust framework for building safe and fast native Node.js addons via the Node-API (N-API). It provides a comprehensive type system that maps JavaScript values to Rust types, procedural macros for exporting functions, classes, and constants, and async/threading primitives for offloading work to background threads. The repository also includes CLI tools: `create-neon` for scaffolding new projects with CI/CD templates, and `cargo-cp-artifact` for copying build artifacts. The core library (`crates/neon`) is the primary deliverable, consumed as a Rust dependency. The architecture is a Rust workspace with a procedural macro crate (`neon-macros`), plus npm packages for tooling. The codebase demonstrates high craftsmanship with safe abstractions over unsafe FFI, composable type extraction patterns, and a macro-driven export system that automates registration. It is actively maintained with extensive test suites including compile-fail UI tests, integration tests, and benchmarks.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
microsoft/node-pty ★ 2025 335 APPLICATION

node-pty is a Node.js native addon that provides cross-platform pseudoterminal (PTY) fork functionality. It allows spawning processes with PTY file descriptors, enabling terminal emulators like VS Code, Hyper, and xterm.js to interact with shell processes. The architecture consists of a TypeScript abstraction layer (`Terminal` base class, `UnixTerminal`, `WindowsTerminal`) that handles platform differences and wraps platform-specific C++ native modules. On Unix (Linux/macOS), it uses `forkpty(3)` and `posix_spawn`; on Windows, it leverages the ConPTY API via named pipes and worker threads to avoid deadlocks. Key entry points are the `spawn()` and `open()` functions exported from `src/index.ts`, which delegate to the appropriate platform implementation. Data flows through a pair of sockets: an input socket for writing to the PTY and an output socket for reading, with careful handling of backpressure and async I/O on each platform. The module addresses advanced challenges such as FD leakage prevention, signal handling across processes, and non-blocking I/O with custom write streams. It is a mature, well-tested library used by major terminal applications.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 3 reusable components found
oransel/node-talib ★ 981 144 APPLICATION

This repository is a Node.js wrapper for the TA-Lib (Technical Analysis Library) C library, providing access to technical analysis functions for financial market data. It enables Node.js applications to calculate indicators like SMA, EMA, RSI, MACD, Bollinger Bands, and dozens of candlestick patterns. The architecture uses node-gyp to compile the TA-Lib C library into a native Node.js module, with a JavaScript/TypeScript interface that supports both callback-based async and synchronous execution. Key entry points include index.js (main interface), index.d.ts (TypeScript definitions), and various usage examples. The repository demonstrates strong engineering in its cross-platform build system, clean wrapper pattern for the native addon, and high-quality TypeScript definitions that accurately represent the complex TA-Lib API.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 3 reusable components found
Wulf/nodehun ★ 296 42 APPLICATION

Nodehun is a Node.js native addon that provides bindings to the Hunspell spell checking library. It exposes Hunspell functionality through both synchronous and asynchronous APIs, enabling spell checking, suggestions, morphological analysis, and runtime dictionary management in Node.js applications. The architecture centers around a thread-safe Hunspell context using read-write locks to allow concurrent read operations, with asynchronous workers offloading intensive computations to libuv's thread pool. Key entry points include the Nodehun class initialization in src/index.cc and the async worker implementations in src/Async/. The system relies on the bundled Hunspell library (built from source) and N-API for Node.js version stability.

RATING: 7.5/10 MAINT: active DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: