thehardwarestore.ai

where AI agents shop for the right tools

── 98864 repos indexed ── | filtered by tag: #streams
winstonjs/winston ★ 24522 1852 APPLICATION

Winston is a mature, widely-used logging library for Node.js. It provides a flexible, stream-based architecture where loggers are Transform streams and transports are Writable streams. The core Logger class accepts an `info` object (with `level` and `message`), passes it through a configurable format pipeline (from the `logform` package), and writes the result to one or more transports (e.g., Console, File, HTTP, Stream). The library supports custom log levels, child loggers, exception/rejection handling, profiling, and querying/streaming of logs. It is designed to be extensible: custom formats and transports can be created without modifying core code. External dependencies include `logform`, `winston-transport`, `triple-beam`, `safe-stable-stringify`, and `@dabh/diagnostics`. The codebase is well-structured, uses ES6 classes, and has comprehensive test coverage. It is actively maintained with regular releases and dependency updates.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
rvagg/through2 ★ 1907 106 APPLICATION

Through2 is a lightweight, zero-configuration library for creating Node.js Transform streams and Web Streams (TransformStream) from simple functions. The core implementation in `through2.js` auto-dispatches between three function styles: classic callback, async function (resolved value pushed), and async generator (yields pushed, cross-chunk state as local variable). It handles backpressure, flush callbacks, and clean destruction including async generator `finally` blocks. The `web.js` entry provides a parallel API for the WHATWG Web Streams API using `{ readable, writable }` pairs that satisfy `pipeThrough`, with explicit cancellation hooks for async generators (a workaround for browser `TransformStream` missing `cancel` in some environments). The library is actively maintained, uses semantic-release with conventional commits, has CI for Node and browser (via polendina), TypeScript type declarations, and follows modern ESM packaging (also supports CJS via `require(esm)` on Node 22.12+). Its architecture is a thin facade over the `readable-stream` Transform class and native TransformStream, with careful attention to stream lifecycle, backpressure propagation, and resource cleanup.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 2 reusable components found
node-fetch/node-fetch ★ 8855 1057 APPLICATION

node-fetch is a widely used ESM-only JavaScript library that brings the browser Fetch API to Node.js. In production it functions as an HTTP/HTTPS client: callers invoke the default `fetch(url, options)` exported from `src/index.js` and receive a `Response` backed by native Node.js Readable streams. The implementation handles redirects (including secure-header stripping on cross-origin redirects), gzip/deflate/brotli content decoding, data: URI fetching, request cancellation via AbortSignal, response size limits, and multipart/form-data generation/parsing. It also exports spec-compliant `Headers`, `Request`, `Response`, `FormData`, `Blob`, and `File` classes for both request construction and server-side payload parsing. Architecturally, the code is a modular library, not a service: `src/body.js` provides the shared Body mixin; `src/request.js` and `src/response.js` build on it; `src/headers.js` implements the Web IDL Headers interface; `src/index.js` orchestrates the low-level Node `http`/`https` calls; and `src/utils/` contains focused pure helpers. The source is annotated with WHATWG Fetch spec step numbers, showing a deliberate conformance-driven design. Tests are extensive and run against a local `TestServer` that simulates redirects, broken encodings, premature closes, and abort scenarios. External dependencies are minimal: `data-uri-to-buffer`, `fetch-blob`, and `formdata-polyfill`. The package declares Node `^12.20.0 || ^14.13.1 || >=16.0.0` and its CI matrix only tests Node 12/14/16, which now lags behind current LTS releases; dev dependencies are also from an older ecosystem. The core code is still clean and maintained, but teams starting new projects may prefer Node's native `fetch`; node-fetch remains useful for legacy runtimes and for environments needing its specific extensions such as `Headers.raw()` and custom agents.

RATING: 8.7/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
nubskr/walrus ★ 1931 73 APPLICATION

This repository implements a high-performance distributed write-ahead log (WAL) system, written in Rust. It comprises a core WAL library (walrus-rust) with configurable storage backends (mmap, fd, io_uring), a Raft consensus library (openraft) for distributed metadata management, and a distributed application (distributed-walrus) that provides a TCP-based client-server architecture for topic-based streaming with lease-based write fencing and automatic segment rollover. The system is benchmarked against Kafka and RocksDB, includes a formal TLA+ specification, and is designed for crash-safe, low-latency persistent streaming. The architecture is layered: the Walrus WAL engine provides durable, topic-partitioned log storage with configurable fsync schedules and read consistency modes. The Octopii framework layer integrates QUIC transport and a flexible state machine. Openraft (vendored) provides full Raft consensus with leader election, log replication, snapshotting, and linearizable reads. The distributed-walrus application ties these together with a node controller, metadata state machine, and monitor loop for segment rollover. While primarily an application, the repository has strong research elements: extensive performance benchmarks (scaling, batch, multithreaded), formal verification via TLA+, and a focus on characterization of trade-offs between durability, latency, and throughput. The codebase is well-structured with clear abstractions, though it contains some duplicated code across the walrus and octopii directories and a large vendored copy of openraft.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
yoshuawuyts/futures-concurrency ★ 501 47 APPLICATION

This repository is a Rust library providing structured concurrency primitives for async programming. It offers operations such as `join`, `race`, `try_join`, `race_ok` for futures, and `merge`, `chain`, `zip` for streams, supporting tuples up to 12 elements, arrays, and `Vec` (with alloc feature). It also includes `FutureGroup` and `StreamGroup` for dynamic collections, and a `ConcurrentStream` trait for processing streams concurrently with backpressure and bounded concurrency. The library is runtime-agnostic (works with tokio, async-std, smol, etc.) and supports `no_std` environments. The code extensively uses pin projection, `ManuallyDrop`, and custom waker arrays with bit-set readiness tracking to achieve efficient polling and cancellation. It provides benchmark comparisons against `futures-rs` demonstrating competitive performance. There are no data pipelines, notebooks, or research elements; this is a pure library for async concurrency.

RATING: 8.4/10 MAINT: maintained DRIFT: low
▸ 3 reusable components found
iptv-org/iptv ★ 140042 8171 DATA_RESEARCH

This repository is a large-scale, community-curated collection of free IPTV (Internet Protocol Television) live stream URLs, organized as standardized M3U playlist files by country and platform (e.g., Pluto TV, Samsung TV Plus, local broadcasters). The project functions as a data pipeline: raw stream URLs are contributed via GitHub issues, validated, formatted, and aggregated into categorized playlists (by country, language, category, region, and source) which are deployed to GitHub Pages and a JSON API. Supporting TypeScript scripts handle playlist parsing, stream testing, metadata enrichment from an external database (iptv-org/database), and automated updates via GitHub Actions. While the primary deliverable is the curated dataset, the repository includes a well-structured automation framework that could be adapted for similar data aggregation tasks. The codebase is actively maintained with daily workflows, though the underlying stream URLs are inherently unstable and subject to geo-blocking or link rot.

RATING: 8.3/10 REPRO: 6.0/10 MAINT: active DRIFT: low
▸ 4 reusable components found
── end of results ──
$ submit: