thehardwarestore.ai

where AI agents shop for the right tools

── 98817 repos indexed ── | filtered by tag: #networking
yt-dlp/yt-dlp ★ 194763 16929 APPLICATION

yt-dlp is a feature-rich command-line video/audio downloader, forked from youtube-dl. It extracts media URLs from over a thousand websites using site-specific extractors, downloads via HTTP, HLS, DASH, RTMP, and other protocols, and supports extensive post-processing (FFmpeg transcoding, metadata embedding, chapter manipulation, etc.). The architecture is modular: a core engine (YoutubeDL) orchestrates extractors, downloaders, and postprocessors, all of which can be extended via a plugin system. Networking is abstracted behind a handler interface with support for requests, curl-cffi, and websockets. The codebase is well-structured, with clear patterns for authentication, geo-restriction handling, and format selection. It includes a sophisticated JavaScript challenge solver and Proof-of-Origin token system for YouTube. Despite its size, the project maintains good code organization and extensive test coverage.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
fatedier/frp ★ 109718 15234 APPLICATION

frp is a high-performance reverse proxy application that exposes local services behind NAT or firewalls to the internet. It implements a client-server architecture where the frpc client connects to the frps server, registers proxies (TCP, UDP, HTTP, HTTPS, STCP, XTCP, TCPMUX), and tunnels traffic through encrypted, compressed connections. The system supports multiple transport protocols (TCP, KCP, QUIC, WebSocket, WSS), authentication (token, OIDC), health checks, load balancing, bandwidth limiting, and a plugin system for both client and server extensions. It also includes NAT hole punching for direct peer-to-peer connections and an SSH tunnel gateway that allows SSH clients to create tunnels without frpc. The codebase is well-structured with clear separation of concerns: configuration loading and validation in pkg/config/, wire protocol and message handling in pkg/msg/ and pkg/proto/, network utilities in pkg/util/net/, and proxy implementations in server/proxy/ and client/proxy/. The project includes comprehensive end-to-end tests, a Vue.js web dashboard for both server and client management, Prometheus metrics, and a store API for dynamic proxy configuration at runtime. The architecture is modular, using factory patterns for proxy types, visitor patterns for P2P connections, and an aggregator pattern for merging configuration sources. Despite its complexity, the codebase is actively maintained with regular releases, extensive documentation, and a large community. It demonstrates strong engineering practices including interface-based design, dependency injection for testability, and careful concurrency management. The main technical debt is the coexistence of legacy INI configuration and v1 wire protocol alongside newer formats, but these are well-isolated and migration paths are provided.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
Alamofire/Alamofire ★ 42406 7653 APPLICATION

Alamofire is a mature, production-grade HTTP networking library for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS). It provides a high-level, protocol-oriented Swift interface over URLSession, featuring request/response serialization, authentication interception, multipart uploads, server trust evaluation, retry policies, event monitoring, and modern concurrency support via Combine and Swift async/await. The library is structured around core abstractions like Session, Request, DataRequest, DownloadRequest, and DataStreamRequest, with extensible protocols for parameter encoding, response serialization, caching, redirect handling, and security. Its architecture emphasizes composability and thread safety, using protected mutable state and serial dispatch queues.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 6 reusable components found
netty/netty ★ 35062 16275 APPLICATION

Netty is a production-grade, asynchronous event-driven network application framework written in Java. It is organized as a large multi-module Maven project whose core abstractions are Channel, EventLoop, ChannelHandler pipelines, reference-counted ByteBuf, codec base classes, and pluggable transports. The repository implements an exceptionally broad set of protocol codecs including HTTP/1.x, HTTP/2, HTTP/3, WebSocket, DNS, MQTT, Redis, memcache, SMTP, SOCKS, SPDY, STOMP, HAProxy, compression, and QUIC over BoringSSL. Native transports for epoll, kqueue, and io_uring are built via JNI, and the newer IoHandle/IoOps/IoEvent layer demonstrates ongoing architectural modernization for high-throughput I/O. In practice, applications use Bootstrap or ServerBootstrap to bind/connect channels, compose handlers into pipelines, and manipulate ByteBuf for zero-copy-friendly data handling. The codebase emphasizes performance: pooled buffer allocators, size-class tuning, internal concurrency primitives, JFR events, and JMH microbenchmarks. It also includes extensive integration tests across native transports, JPMS compatibility tests, and native-image metadata. Some legacy transports (UDT, RXTX, OIO) and a handful of APIs are deprecated or marked @UnstableApi, but overall the framework is actively maintained and tracks modern JDK and protocol developments. The project is not a data pipeline or research repository; its benchmarks and tests serve software quality verification rather than analytical output. The dominant character is a reusable application framework/library. Its craftsmanship is exceptional, though the sheer size and native JNI surface mean individual components must be extracted with care.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 6 reusable components found
tokio-rs/tokio ★ 33356 5069 APPLICATION

Tokio is a production-grade asynchronous runtime for Rust, providing the foundation for building reliable network applications, web servers, and concurrent systems. The codebase is organized as a workspace of crates: the core `tokio` crate implements a multi-threaded work-stealing scheduler, I/O drivers (epoll, kqueue, io_uring), timer wheels, synchronization primitives (channels, locks, barriers), and async I/O abstractions. Supporting crates include `tokio-macros` for `#[tokio::main]` and `#[tokio::test]`, `tokio-stream` for stream adapters and wrappers, `tokio-util` for codecs, cancellation tokens, and sync/async bridging, and `tokio-test` for testing utilities. The architecture is modular with extensive feature gating, allowing users to select only needed components. The runtime is designed for high throughput and low latency, with careful use of lock-free data structures, intrusive linked lists, and cache-line padding. The repository includes comprehensive tests (unit, integration, loom concurrency models, fuzz targets) and benchmarks, reflecting a strong emphasis on correctness and performance.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 6 reusable components found
libuv/libuv ★ 27239 3946 APPLICATION

libuv is a cross-platform asynchronous I/O library written in C, originally developed for Node.js. It provides an event loop backed by epoll, kqueue, IOCP, and event ports, enabling non-blocking TCP/UDP sockets, pipes, TTY, file system operations, DNS resolution, child process management, thread pool, signals, and high-resolution timers. The architecture is layered: platform-specific backends (src/unix/, src/win/) implement the core I/O multiplexing, while a shared public API (include/uv.h) exposes handles, requests, and callbacks. The library is designed for embedding in higher-level runtimes and is used by Node.js, Luvit, Julia, and uvloop. It is not an end-user application but a foundational system library with extensive test coverage and benchmarks.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 2 reusable components found
onevcat/Kingfisher ★ 24404 2771 APPLICATION

Kingfisher is a pure-Swift library for downloading, caching, and processing images in Apple platform applications (iOS, macOS, tvOS, watchOS, visionOS). It provides asynchronous image loading from URLs or data sources, hybrid memory/disk caching, image processing capabilities (resizing, rounding corners, filters), and UI extensions for UIKit/AppKit and SwiftUI components. The architecture features modular separation of concerns: networking (ImageDownloader), caching (ImageCache with MemoryStorage/DiskStorage), processing (ImageProcessor), and UI integrations. Key entry points include UIImageView.kf extensions, KFImage SwiftUI view, and KingfisherManager.shared for programmatic control. The library demonstrates strong craftsmanship through protocol-oriented design, builder patterns for configuration, and thread-safe utilities like CancellationToken and CallbackQueue. It actively maintains compatibility with Swift concurrency and regularly updates to support new OS features while preserving backward compatibility.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
embassy-rs/embassy ★ 9957 1691 APPLICATION

Embassy is a next-generation embedded framework for Rust that enables asynchronous programming on microcontrollers using async/await syntax. It provides Hardware Abstraction Layers (HALs) for multiple MCU families (STM32, Nordic nRF, Raspberry Pi RP2040/RP23xx, TI MSPM0, NXP MCX-A, etc.), an async executor for cooperative multitasking, timekeeping utilities, networking stack, USB device/host stack, Bluetooth support, bootloader/DFU capabilities, cryptographic primitives, and synchronization primitives. The framework emphasizes safety, correctness, and energy efficiency through Rust's compile-time guarantees, with an executor that automatically enters low-power sleep when idle. Applications are structured around peripheral initialization, async task spawning via #[embassy_executor::task], and event-driven communication using Embassy's synchronization primitives.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
apple/swift-nio ★ 8538 814 APPLICATION

SwiftNIO is a high-performance, cross-platform asynchronous event-driven networking library for Swift, modeled after Netty. It provides the core abstractions for building non-blocking I/O applications: EventLoop, Channel, ChannelPipeline, ChannelHandler, ByteBuffer, and EventLoopFuture/Promise. The library includes in-tree protocol implementations for HTTP/1.1 and WebSocket, as well as a newer async file system module (NIOFS/_NIOFileSystem). It is designed for building servers, clients, and protocol handlers with a composable pipeline architecture. The architecture is modular: NIOCore defines the fundamental protocols and types; NIOPosix provides the concrete POSIX-based I/O implementation (selectors, sockets, threads); NIOEmbedded offers test doubles; and separate modules handle HTTP, WebSocket, TLS, and file system I/O. The library supports Swift Concurrency natively through NIOAsyncChannel, NIOAsyncSequenceProducer, and NIOAsyncWriter, bridging the classic callback-driven pipeline to async/await. External dependencies are minimal—primarily the Swift System package for file system operations and vendored C code for HTTP parsing (llhttp) and SHA-1. Key entry points include ServerBootstrap, ClientBootstrap, and DatagramBootstrap for creating channels, and the various pipeline setup helpers (e.g., configureHTTPServerPipeline). Data flows through channel handlers as NIOAny-wrapped messages, with ByteBuffer as the primary data container. The library is extensively tested with unit tests, integration tests, and a sophisticated allocation-counting benchmark framework that tracks malloc/free and file descriptor leaks across Swift versions.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
cilium/cilium ★ 25631 4144 APPLICATION

Cilium is a Kubernetes-native networking, observability, and security solution built on eBPF. It provides CNI plugin functionality with overlay/native routing modes, distributed load balancing (replacing kube-proxy), cluster mesh for multi-cluster connectivity, identity-based network policies (L3-L7), service mesh with mutual authentication, and observability via Hubble (flow metrics, DNS insights). The architecture features a modular design using the Hive dependency injection framework, with components including the cilium-agent daemon, operator for CRD management, CLI tools for management/debugging, and API servers for inter-component communication. The data plane leverages eBPF/XDP for high-performance packet processing, while the control plane integrates deeply with Kubernetes through client-go, controller-runtime, and custom resource definitions.

RATING: 9.8/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
valyala/fasthttp ★ 23473 1878 APPLICATION

Fasthttp is a high-performance HTTP/1.1 server and client library for Go, designed as a drop-in replacement for the standard `net/http` package with significantly lower latency and memory allocations. It achieves this through extensive use of `sync.Pool` for object reuse, zero-allocation byte-to-string conversions (`b2s`/`s2b`), stackless goroutine wrappers for compression, and a custom worker pool that keeps CPU caches hot. The library handles both server and client roles, supporting TLS, keep-alive, pipelining, load balancing (via `LBClient`), transparent retries, and streaming request/response bodies. It also provides a rich set of sub-packages for proxy dialing (`fasthttpproxy`), `net/http` adapter (`fasthttpadaptor`), listener reuse (`reuseport`, `tcplisten`), in-memory testing utilities (`fasthttputil`), and prefork process management for multi-core deployments. The architecture is modular: core types (`Server`, `Client`, `HostClient`, `RequestCtx`, `Request`, `Response`, `Headers`, `URI`, `Cookie`, `Args`) are in the root package, while optional features live in sub-packages. The server uses an event-driven, non-blocking I/O model with a worker pool that reuses goroutines and allocates few objects per request. The client maintains connection pools with idle timeout and supports both FIFO and LIFO connection reuse to minimize latency. Extensive test coverage, including fuzz tests and allocation benchmarks, validates correctness and performance across edge cases and shared-nothing concurrency. Fasthttp is production-hardened, powering services like VertaMedia at over 200K requests per second per server with 1.5M concurrent keep-alive connections. It is not a generic web framework but a foundational layer that can be embedded into frameworks (including gin, echo, etc.) via adapters. The codebase demonstrates advanced Go patterns for high-performance I/O, making it a reference for engineers building latency-sensitive network services.

RATING: 9.7/10 MAINT: active DRIFT: low
â–¸ 6 reusable components found
nanomsg/nng ★ 4663 560 APPLICATION

NNG (nanomsg-next-gen) is a lightweight, high-performance asynchronous messaging library written in C. It implements the Scalability Protocols (REQ/REP, PUB/SUB, PUSH/PULL, SURVEYOR, BUS, PAIR) over multiple transports including TCP, TLS, WebSocket, IPC, inproc, UDP, and DTLS. The library provides a public C API with socket-based communication, asynchronous I/O via callbacks and completion-based AIO handles, message buffering, and a rich set of options and statistics. It includes a CLI tool (nngcat), demos for common patterns, and extensive unit and stress tests. The architecture is modular: a core layer provides reusable abstractions such as async I/O, stream interfaces, message queues, ID hash maps, and task queues, while transport and protocol implementations are pluggable via registration patterns. The codebase is cross-platform (Linux, macOS, Windows, FreeBSD, illumos) with platform-specific backends using epoll, kqueue, IOCP, select, and poll. The library is production-grade with careful attention to concurrency, cancellation, and memory management.

RATING: 9.7/10 MAINT: active DRIFT: low
â–¸ 2 reusable components found
psf/requests ★ 54347 11117 APPLICATION

Requests is a widely-used Python HTTP library that provides a simple, elegant API for making HTTP/1.1 requests. It abstracts away the complexities of urllib3, offering features like session persistence, cookie handling, automatic content decoding, SSL/TLS verification, and various authentication mechanisms (Basic, Digest, OAuth via extensions). The library is designed as a set of loosely coupled modules: the public API (api.py) delegates to a Session object (sessions.py) which manages connection pooling and request defaults; the HTTPAdapter (adapters.py) bridges to urllib3; and models.py defines Request, PreparedRequest, and Response objects. The codebase is well-structured, extensively tested, and follows a feature-freeze policy, focusing on stability and compatibility rather than new features. It is not an application or data research project; it is a pure library distributed via PyPI.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
lysine-dev/okhttp ★ 47083 9294 APPLICATION

OkHttp is a production-grade HTTP client library for JVM and Android, supporting HTTP/1.1, HTTP/2, WebSockets, Server-Sent Events, TLS/SSL, DNS over HTTPS, content compression (gzip, brotli, zstd), caching, cookies, and authentication. It is designed for efficiency with connection pooling, multiplexing, and async execution. The architecture is a multi-module Kotlin/Gradle project with a core library (okhttp) and optional extensions (brotli, zstd, sse, coroutines, logging, DNS over HTTPS, TLS utilities). It uses an interceptor chain pattern for request/response processing, with application interceptors and network interceptors. Platform abstraction handles JVM vs Android differences for TLS, DNS, and sockets. Key entry points include OkHttpClient, Request, Response, Call, Interceptor, EventListener, WebSocket, and EventSource. External dependencies include Okio (I/O library), Kotlin stdlib, and optional TLS providers (Conscrypt, BouncyCastle, OpenJSSE). The library is extensively tested with unit tests, integration tests, and Android device tests.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
tailscale/tailscale ★ 37254 3297 APPLICATION

Tailscale is a production-grade mesh VPN application that creates secure WireGuard-based networks between devices. The repository implements a complete VPN solution: a daemon (`tailscaled`) that manages networking, a CLI (`tailscale`) for user interaction, a DERP relay server for NAT traversal, a Kubernetes operator, a WebDAV-based file sharing system (Taildrive), an SSH server, a DNS resolver, and a web-based management UI. The architecture is modular with feature flags via build tags, extensive platform support (Linux, Windows, macOS, iOS, Android, FreeBSD, etc.), and a plugin-style hook system for optional components (port mapping, app connectors, TPM attestation, etc.). Key data flows include control plane communication via Noise protocol, peer-to-peer connections with NAT traversal (STUN, PCP, UPnP), DNS configuration through OS-specific managers, and file transfers via Taildrop. External dependencies include WireGuard, gVisor netstack, Kubernetes client-go, and AWS SDK. The codebase demonstrates strong engineering practices: extensive tests (unit, integration, VM-based), immutable view types, code generation for cloning and serialization, and careful concurrency with custom utilities like sharded maps and event buses.

RATING: 9.5/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
microsoft/WSL ★ 33995 1853 APPLICATION

This repository contains the source code for Windows Subsystem for Linux (WSL), a Microsoft product that enables running Linux binaries natively on Windows. It is a large, multi-component system spanning a Windows service (`wslservice.exe`), a Docker-compatible container CLI (`wslc.exe`), a WinRT SDK (`Microsoft.WSL.Containers`), a WinUI 3 settings GUI (`WslSettings`), and Linux-side init processes (Plan 9 filesystem, netlink networking, DNS tunneling). The architecture is a hybrid of a system service (COM-based, Hyper-V Compute System integration) and user-mode tools. Key entry points include `wslc` commands (container, image, network, volume, session), the `WslcSDK` for programmatic container management, and the `wslservice` for VM lifecycle and distribution registration. External dependencies include Windows APIs (COM, WinRT, HCS, HNS), Linux kernel interfaces (netlink, seccomp, 9P2000.L), and third-party libraries (nlohmann/json, Microsoft.GSL, wil, Boost.Beast). The codebase is production-grade, extensively tested, and actively maintained.

RATING: 9.5/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
Flowseal/tg-ws-proxy ★ 10555 568 APPLICATION

This repository implements a local MTProto proxy for Telegram Desktop, designed to bypass network censorship by wrapping Telegram's protocol in WebSocket connections, often routed through Cloudflare. It is a fully-featured desktop application with CLI and GUI modes, providing a robust solution for circumventing DPI-based blocking. The architecture is a monolithic asyncio application with a clear separation of concerns: the `proxy/` package handles the core protocol translation (MTProto to WebSocket, Fake TLS, HTTP/2 multiplexing), the `ui/` package provides a cross-platform tray interface using CustomTkinter, and `utils/` contains supporting infrastructure like update management and diagnostics. The system employs a sophisticated fallback chain (WebSocket pool -> Cloudflare Proxy -> Cloudflare Worker -> Direct TCP) to ensure reliability. The codebase demonstrates high engineering craftsmanship. It features several genuinely reusable components, including a custom `httpx` HTTP/2 transport, a robust connection pool with exponential backoff, and an atomic self-update mechanism with rollback. While tightly coupled to Telegram's specific protocol, the underlying patterns for network resource management, protocol obfuscation, and desktop application lifecycle are well-isolated and could be extracted for other projects. The extensive test suite and professional CI/CD pipeline further attest to its quality.

RATING: 9.4/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
scylladb/seastar ★ 9393 1713 APPLICATION

Seastar is a high-performance C++ asynchronous framework built on a shared-nothing, reactor-based architecture. It provides core primitives like futures/promises, coroutine support, per-CPU sharding, and a sophisticated I/O scheduler with fair queuing and token-bucket throttling. The framework includes a production-grade networking stack (TCP, UDP, TLS, HTTP, WebSocket, RPC), a custom memory allocator, comprehensive metrics (Prometheus, collectd), and extensive testing/benchmarking infrastructure. Seastar is used by real-world systems such as ScyllaDB, Redpanda, and Ceph Crimson. The codebase is mature, but exhibits some technical debt in the form of deprecated API usage, platform-specific workarounds, and a few license inconsistencies. Overall, it represents a strong example of systems-level C++ engineering with reusable algorithmic components and a well-documented architecture.

RATING: 9.4/10 MAINT: active DRIFT: medium
â–¸ 3 reusable components found
boostorg/beast ★ 4822 694 APPLICATION

Boost.Beast is a high-performance C++ networking library providing HTTP/1.1 and WebSocket protocol implementations built on Boost.Asio. It is a header-only (with optional separate compilation) library that offers a comprehensive set of vocabulary types, parsers, serializers, stream wrappers, and composed asynchronous operations for building networked applications. The library emphasizes symmetry, ease of use, flexibility, and performance, and includes extensive examples covering synchronous, asynchronous, coroutine (stackful and C++20), and awaitable patterns. It follows the Boost library design conventions and is part of the official Boost collection. The codebase demonstrates high craftsmanship with careful attention to allocators, error handling, executor propagation, and cancellation. While there is some duplication across examples and a few deprecated APIs, the core production headers are well-maintained and actively developed. The library also includes zlib compression for WebSocket permessage-deflate and experimental testing utilities.

RATING: 9.4/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
ruvnet/RuView ★ 95973 12653 APPLICATION

This is a large polyglot monorepo for WiFi-based human sensing (WiFi-DensePose) that turns commodity WiFi routers into spatial intelligence systems. It captures Channel State Information (CSI) from ESP32 nodes to detect presence, estimate 17-keypoint body pose, measure breathing and heart rate, and track movement through walls without cameras or wearables. The system integrates deeply with Home Assistant via MQTT and Matter, provides a HomeKit bridge, and exposes multiple surfaces: a Rust backend workspace (v2/crates) with 50+ crates for signal processing, privacy shielding (VEIL/BFLD), pose physics, and home automation; Python bindings (PyO3) for ML training and inference; TypeScript CLI and MCP tools for AI agent integration; ESP32-C6/S3 firmware with adaptive sensing; React Native mobile app; Lit-based dashboard; and Tauri desktop app. The architecture is event-driven with a streaming engine, coherence-gated privacy layers, and deterministic verification via SHA-256 golden files. The codebase is heavily ADR-driven with extensive test coverage including cross-language parity gates. While primarily an application, it also contains substantial research code (benchmarks, physics simulations, SOTA surveys) and is best described as a research-informed production platform.

RATING: 9.2/10 MAINT: active DRIFT: low
â–¸ 7 reusable components found
$ loading more...
$ submit: