thehardwarestore.ai

where AI agents shop for the right tools

── 98817 repos indexed ── | filtered by tag: #c-plus-plus
electron/electron ★ 123373 17575 APPLICATION

Electron is a cross-platform desktop application framework that combines the Chromium rendering engine and the Node.js runtime into a single binary. It enables developers to build native-like desktop applications using web technologies (HTML, CSS, JavaScript/TypeScript). The architecture follows a multi-process model: a main (browser) process manages window creation, native menus, system dialogs, and IPC, while renderer processes handle web content with strict security boundaries (context isolation, sandboxing). The framework exposes a comprehensive API surface via C++ bindings (using Gin and V8) and TypeScript/JavaScript wrappers, covering everything from window management and native menus to file system access, device APIs (USB, Bluetooth, HID), notifications, auto-updates, and crash reporting. Electron also supports Chrome extensions, off-screen rendering, and on-device AI capabilities. The codebase is heavily modular, with platform-specific implementations for Windows, macOS, and Linux isolated behind abstraction layers. Build and release infrastructure includes GN-based compilation, extensive patching of Chromium and Node.js, and CI pipelines for testing across all platforms. This is not an end-user application but the framework itself, used by thousands of desktop applications worldwide.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
nodejs/node ★ 118985 36519 APPLICATION

Node.js is a foundational JavaScript runtime environment built on the V8 engine, designed for server-side and networked applications. The codebase represents a hybrid architecture where core system-level operations (file system, networking, process management) are implemented in C++ for performance, while the public API surface and module system are exposed via JavaScript. It serves as the backbone for a vast ecosystem of web services, CLI tools, and server applications. The runtime integrates deeply with web standards, implementing WHATWG URL, Streams, and WebCrypto APIs alongside traditional Node.js modules like HTTP, TLS, and Worker Threads. It features a robust build system using Python scripts and GYP/Ninja, managing dependencies like OpenSSL, libuv, and ICU. The architecture prioritizes stability and cross-platform compatibility, supporting Linux, macOS, Windows, and AIX across multiple CPU architectures. This repository is not a data research project but a critical infrastructure component. Its primary value lies in its rigorous testing infrastructure, extensive benchmark suite, and strict code quality enforcement. The code demonstrates high craftsmanship in areas like memory management, async context propagation, and native addon interfaces, making it a reference implementation for system-level JavaScript execution.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
bitcoin/bitcoin ★ 90304 39422 APPLICATION

Bitcoin Core is the reference implementation of a Bitcoin full node. It connects to the Bitcoin peer-to-peer network to download and fully validate blocks and transactions according to consensus rules. The system includes a full node daemon (bitcoind), a command-line interface (bitcoin-cli), a graphical user interface (bitcoin-qt), and a set of utility tools (bitcoin-tx, bitcoin-wallet, bitcoin-util). The architecture is modular: a kernel library (libbitcoinkernel) encapsulates consensus-critical code, a node layer manages networking, mempool, and chainstate, a wallet subsystem handles key management and transaction signing, and an IPC layer supports multiprocess separation. External dependencies include LevelDB (storage), libsecp256k1 (elliptic curve cryptography), ZeroMQ (notifications), and Qt (GUI). The system exposes JSON-RPC and REST APIs for programmatic interaction, and supports advanced features like BIP324 encrypted P2P transport, compact block relay, assumeutxo snapshots, and descriptor-based wallets.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
nlohmann/json ★ 50724 7511 APPLICATION

nlohmann/json is a widely adopted, header-only C++ library for JSON parsing, serialization, and manipulation. It provides a single-header `json.hpp` (or multi-header variant) that implements a full-featured `basic_json` class template with support for JSON Pointer, JSON Patch, JSON Merge Patch, and binary formats (CBOR, MessagePack, BSON, UBJSON, BJData). The library is designed for modern C++ (C++11 through C++20/23) and emphasizes intuitive syntax, trivial integration, and rigorous testing. It includes a SAX interface for streaming/event-driven parsing, ADL-based customization for user-defined types, and macros for declarative serialization of enums and structs. The architecture is a classic template-based library with a deep hierarchy of internal detail headers under `include/nlohmann/detail/`. The core `basic_json` class is parameterized on object type, array type, string type, boolean type, number types, allocator, and serializer, allowing extensive customization. The library is distributed as both a multi-header tree and an amalgamated single header (generated by a Python script). It has no runtime dependencies beyond the C++ standard library and is compatible with all major compilers and platforms. Key entry points are the `json::parse()` and `json::sax_parse()` functions for deserialization, `json::dump()` for serialization, and the various `to_*`/`from_*` functions for binary formats. The library is extensively tested with over 100 unit test files, fuzz testing (AFL and libFuzzer), and compliance suites (JSONTestSuite, nativejson-benchmark). It is maintained with active CI across Linux, macOS, and Windows, and has a large ecosystem of package manager integrations.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
duckdb/duckdb ★ 41807 3838 APPLICATION

DuckDB is a high-performance, embeddable, in-process analytical SQL database engine written in C++. It provides a full SQL dialect with vectorized execution, columnar storage, advanced compression (ALP, Chimp, dictionary, FSST), adaptive indexing (ART), and a rich optimizer with rule-based and cost-based transformations. The system is designed for OLAP workloads, supporting complex queries with window functions, recursive CTEs, pivot operations, and lambda expressions. It exposes multiple client APIs: a C API (v1 and v2), C++ library, Swift bindings, and a command-line shell. Extensibility is a first-class concern via a plugin system for table/scalar/aggregate functions, custom storage backends, and data format readers (Parquet, CSV, JSON, Arrow). The repository includes extensive benchmark suites (TPC-H, TPC-DS, ClickBench, LDBC, IMDB, recursive CTE) and a comprehensive test infrastructure. While primarily an application (database engine), it also contains research-grade components in query optimization, compression algorithms, and parallel execution, giving it a hybrid character.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
facebook/rocksdb ★ 32172 6950 APPLICATION

RocksDB is a high-performance, embeddable, persistent key-value store library written in C++. It uses an LSM-tree architecture with memtables, sorted string tables (SSTs), multi-level compaction, write-ahead logging (WAL), and advanced caching (LRU, Clock, tiered secondary caches). The codebase is exceptionally well-engineered, with extensive use of templates, platform abstractions, and custom allocators to achieve high throughput and low latency on flash storage. It is not a standalone application but a library consumed by databases (e.g., MyRocks, Cassandra), storage engines, and other infrastructure. The repository includes a comprehensive public API under include/rocksdb/, a C API, Java bindings via JNI, command-line tools (ldb, sst_dump, db_bench), and a fuzz testing suite. The project is actively maintained by Meta and the open-source community, with frequent commits, rigorous CI, and performance benchmarks.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
simdjson/simdjson ★ 24404 1311 APPLICATION

simdjson is a high-performance C++ JSON parsing library that uses SIMD instructions (AVX2, AVX-512, NEON, RVV, etc.) to parse and validate JSON at multi-gigabyte-per-second speeds. It provides two primary APIs: a DOM API (`simdjson::dom`) that builds a complete in-memory tree, and an On-Demand API (`simdjson::ondemand`) that performs lazy, forward-only parsing for streaming and large-document use cases. The library also includes a builder API for JSON serialization, compile-time JSON parsing via C++26 reflection, JSON Pointer/Path support, NDJSON/JSON-sequence streaming, and a single-header amalgamated distribution. The codebase is organized around a two-stage pipeline: stage 1 performs SIMD-accelerated structural indexing and UTF-8 validation, and stage 2 builds the DOM tape or drives the on-demand iterator. Runtime CPU dispatch selects the best implementation for the host architecture, with fallbacks for non-SIMD platforms. The repository is a mature, production-grade library used by major projects (Node.js, ClickHouse, etc.) and is backed by an extensive test suite, fuzzing harnesses, and cross-architecture CI. It is primarily an application/library rather than a data-research repository, though it contains benchmark and research-oriented components (e.g., performance modeling, static reflection experiments).

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
WebAssembly/binaryen ★ 8653 895 APPLICATION

Binaryen is a production-grade compiler and toolchain infrastructure library for WebAssembly, written in C++. It provides a comprehensive intermediate representation (IR) that closely mirrors the WebAssembly specification, enabling fast conversion to and from binary and text formats. The system includes a modular optimization pass framework with over 100 passes covering dead code elimination, type refinement, inlining, constant propagation, GC-specific optimizations, and more. It also features a WebAssembly-to-JavaScript compiler (wasm2js), a full interpreter for constant evaluation and spec testing, and a rich set of command-line tools (wasm-opt, wasm-as, wasm-dis, wasm-merge, wasm-split, wasm-reduce, wasm-ctor-eval, etc.). The architecture is centered on a tree-structured IR with walker-based traversal patterns, a generic lattice-based static analysis framework, and a parallel pass execution engine. External dependencies include LLVM (for DWARF support) and FP16 (for half-precision floating point), but the core is self-contained. The codebase is actively maintained, tracks all major WebAssembly proposals (GC, Strings, SIMD, Tail Calls, Exception Handling, Stack Switching), and is used by Emscripten, wasm-pack, J2CL, Dart/Flutter, Kotlin/Wasm, and other toolchains.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
juce-framework/JUCE ★ 8954 2203 APPLICATION

JUCE is a mature, cross-platform C++ application framework specializing in audio software development. It provides a comprehensive set of modules covering core utilities, GUI, graphics, audio processing, MIDI, DSP, and plugin formats (VST3, AU, AAX, LV2, ARA). The architecture is a modular monolith: each module (e.g., juce_core, juce_audio_basics, juce_gui_basics) is a self-contained library that can be selectively included. Key entry points include JUCEApplication for desktop apps, AudioProcessor for audio plugins, and Component for GUI widgets. Data flows center on audio buffers (AudioSampleBuffer), MIDI messages, and event-driven GUI updates via message queues. External dependencies are minimal at the API level, but the framework bundles many third-party libraries (Opus, FLAC, Vorbis, WebP, HarfBuzz, Box2D, etc.) for codec and graphics support. The repository also includes the Projucer IDE for project generation and build tooling (CMake helpers, resource file management).

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 3 reusable components found
mapbox/earcut.hpp ★ 1030 152 APPLICATION

A header-only C++ library implementing the fast earclipping polygon triangulation algorithm, ported from the JavaScript earcut library. It provides a simple API (`mapbox::earcut`) that takes a polygon (with holes) and returns triangle indices, with an optional Delaunay refinement post-pass (`mapbox::refine`). The library is heavily optimized for real-time triangulation of vector tile geometries, using z-order curve hashing, custom memory allocation (object pool), and a block bounding-box index for efficient hole bridging. It targets C++14 for the public header and C++17 for tests/benchmarks. The repository also includes comprehensive test fixtures loaded at runtime from the upstream JS repository, benchmarks comparing against libtess2, and an interactive OpenGL visualizer.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 1 reusable components found
godotengine/godot ★ 118062 26921 APPLICATION

This is the Godot Engine, a fully-featured, cross-platform 2D and 3D game engine. The repository contains the complete source code for the engine runtime, the built-in editor, and all supporting modules (rendering, physics, audio, networking, scripting, etc.). The architecture is a monolithic C++ core with a modular plugin system, supporting multiple rendering backends (Vulkan, D3D12, Metal, OpenGL), physics engines (Jolt, GodotPhysics), and scripting languages (GDScript, C# via Mono). The editor is a full-featured IDE built on the engine itself, with scene editors, debugger, asset pipeline, and export system. The codebase is exceptionally well-structured, with clear separation of concerns between core, servers, scene, and platform layers. It demonstrates world-class engineering in real-time graphics, physics simulation, audio processing, and cross-platform abstraction. While the code is tightly coupled to the Godot framework, many individual components (math libraries, spatial data structures, serialization utilities) exhibit high craftsmanship and could be extracted with moderate effort.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
facebookresearch/faiss ★ 40987 4532 APPLICATION

FAISS (Facebook AI Similarity Search) is a high-performance library for efficient similarity search and clustering of dense vectors. It serves as the de facto standard library for approximate nearest neighbor (ANN) search in production environments, supporting hardware-accelerated (CPU with SIMD, GPU via CUDA/Metal) and research-grade algorithms. The codebase implements dozens of index types (flat, IVF, PQ, SQ, HNSW, NSG, RaBitQ, additive quantizers, binary, etc.), each with multiple encoding and scanning strategies. The architecture is layered: a core C++ library with extensible index and quantizer abstractions, a full C API, Python bindings via SWIG, and optional GPU or Intel SVS backends. Key entry points include the string-based index factory, training/search methods, and serialization utilities. The library is designed for both offline indexing and real-time search, with extensive auto-tuning and benchmark infrastructure.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
fmtlib/fmt ★ 25874 3083 APPLICATION

The {fmt} library is a modern C++ formatting library providing a safe, fast alternative to C printf and C++ iostreams. It implements Python-like format string syntax (e.g., "{}", "{:d}", "{:.2f}") with compile-time and runtime validation, ensuring type safety and preventing format string vulnerabilities. The library is header-only by default with optional shared/static library builds, has zero external dependencies, and delivers consistent cross-platform output. Key architectural features include an extensible formatter system (users specialize formatter<T> for custom types), compile-time format string checking via FMT_COMPILE and user-defined literals, and high-performance algorithms like Dragonbox for floating-point formatting. The library offers specialized support for chrono types, ranges, STL containers, and colored/text-styled output via ANSI escape codes. Its design emphasizes locale independence by default, automatic memory management, and minimal compile-time overhead. The library is actively maintained with comprehensive testing (unit tests, OSS-Fuzz fuzzing) and CI across Linux/macOS/Windows. It tracks C++20/23 standards while maintaining backward compatibility through conditional compilation. The codebase is warning-clean at high warning levels (-Wall -Wextra -pedantic) and demonstrates exceptional craftsmanship in performance optimizations, safety features, and ease of use, evidenced by adoption in projects like PyTorch, MongoDB, and Redis.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
ceres-solver/ceres-solver ★ 4553 1139 APPLICATION

Ceres Solver is a production-grade C++ library for solving large-scale non-linear least squares problems, widely used in computer vision (bundle adjustment, SLAM) and robotics. It provides a flexible API where users define cost functions (analytical, automatic, or numerical differentiation), residual blocks, and parameter manifolds (Euclidean, quaternion, sphere, etc.), then solve via trust-region or line-search methods backed by a variety of sparse/dense linear solvers (Eigen, SuiteSparse, CUDA, Apple Accelerate). The architecture is modular: a core minimizer orchestrates strategy objects (Levenberg-Marquardt, Dogleg, BFGS), while evaluators and Jacobian writers support block-sparse and dynamic sparsity. The library also includes utilities like thread pools, concurrent queues, and graph algorithms for visibility-based preconditioning. Despite a complex build matrix with optional backends, the code is well-structured, heavily tested, and actively maintained.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
dragonflydb/dragonfly ★ 31736 1274 APPLICATION

DragonflyDB is a high-performance, Redis-compatible in-memory data store written in C++. It implements the Redis wire protocol (RESP) and Memcached protocol, providing drop-in replacement capabilities with significantly higher throughput and lower latency, especially on multi-core machines. The architecture is based on a shared-nothing, multi-threaded design using fibers (boost.fibers) and a custom proactor event loop (epoll/io_uring). Data is partitioned across shards, each with its own thread, and transactions use a VLL-based locking scheme to minimize contention. The system supports replication via a write-ahead journal, cluster mode with slot migration, persistence via RDB snapshots, and tiered storage for offloading cold data to SSD. It also includes a full-text search engine with vector similarity (HNSW), JSON document store, Lua scripting, ACL-based security, and probabilistic data structures (Bloom, Cuckoo, Count-Min Sketch, Top-K). The codebase demonstrates advanced engineering in memory management (custom allocators, SIMD probing, compact object encoding) and concurrency (fiber-aware synchronization, RCU patterns). While primarily an application, it contains research-grade data structures and algorithms, giving it a hybrid character between production service and systems research project.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
Chlumsky/msdfgen ★ 4919 517 APPLICATION

This repository is a high-quality C++ library and command-line tool for generating signed distance fields (SDFs) from vector shapes, including font glyphs and SVG paths. It supports conventional single-channel SDFs, perpendicular distance fields, multi-channel SDFs (MSDF) for sharp corner preservation, and combined MTSDF with an additional true distance channel. The architecture is modular: a dependency-free core library implements all key data structures (Shape, Contour, edges, bitmap, distance transformation) and algorithms (distance computation, edge coloring, error correction). An extensions layer provides font loading via FreeType, SVG parsing via TinyXML2 or dropXML, PNG output via libpng or LodePNG, and optional geometry preprocessing via Skia. The standalone executable wraps all functionality into a comprehensive CLI with many configuration options. The code is well-structured, performant (supports OpenMP parallelization), and actively maintained with regular releases and a detailed changelog. While the core is purely numerical, the extensions introduce external dependencies, but the project provides build presets and vcpkg integration for easy compilation.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 2 reusable components found
aseprite/aseprite ★ 39925 9184 APPLICATION

Aseprite is a desktop application for creating and editing animated sprites and pixel art. It features a modular architecture with a document model (layers, frames, cels), a custom UI framework, and a command-based undo/redo system. The application supports Lua scripting for extensibility and provides a command-line interface for batch processing. Key reusable components include the command pattern for undo/redo, the Lua scripting integration system, and the observer pattern for decoupling components. The codebase is actively maintained with recent commits, a large community, and continuous integration. Technical drift is low due to regular updates, use of modern C++ practices, and dependency management. The project demonstrates strong engineering practices in its modular design and pattern usage.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 3 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
include-what-you-use/include-what-you-use ★ 4763 432 APPLICATION

include-what-you-use (IWYU) is a Clang-based static analysis tool for C/C++ that enforces minimal and correct `#include` directives. It analyzes every symbol used in a translation unit and ensures that the file directly includes the header that provides that symbol, suggesting removal of unused includes and addition of missing ones. The tool is designed for integration into build systems (e.g., CMake, Make, or via a compilation database driver) and can generate automatic fixes through its companion script `fix_includes.py`. The architecture is a pipeline: the Clang preprocessor and AST callbacks (`IwyuPreprocessorInfo`, `IwyuAstConsumer`) track macro expansions, symbol references, and template instantiations. A core component is the `IncludePicker` which maintains a large built-in map of symbol-to-header and private-to-public header mappings (for libc, libstdc++, libc++, Clang builtins) and supports user-supplied mapping files in YAML/JSON format. The analysis output is structured text that `fix_includes.py` parses to rewrite source files. The codebase is thoroughly tested with hundreds of small regression tests and a large monolithic test (`badinc.cc`), plus unit tests for internal utilities. IWYU is tightly coupled to Clang's AST and preprocessor APIs, requiring regular updates to track Clang mainline. Despite this, the project maintains a sophisticated handling of C++ complexities: templates, alias templates, forward declarations, macros, inline namespaces, and pragmas for manual override. The mapping system is extensible and includes generators for popular libraries (Boost, Qt, Python, Windows SDK). The tool is mature enough for production use in large codebases, though it acknowledges some known limitations (marked as `IWYU_XFAIL` tests).

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 2 reusable components found
f3d-app/f3d ★ 4667 444 APPLICATION

F3D is a fast, minimalist 3D viewer and rendering library (libf3d) built on VTK, providing both a desktop application and a reusable C++ library with bindings for C, Python, Java, and WebAssembly. It loads and interactively visualizes dozens of 3D file formats (glTF, USD, STEP, STL, OBJ, FBX, etc.) through a plugin architecture. The application offers a rich CLI, interactive console, configurable rendering options, animations, and scientific visualization features like volume rendering, scalar coloring, and point clouds. The library exposes a clean public API (engine, scene, window, camera, interactor, options) that can be embedded in other applications or used for offscreen rendering. The codebase demonstrates strong engineering: modular plugin system, extensive test suite (including pixel comparison and event recording), cross-platform support, and thorough documentation. Its architecture separates concerns cleanly between application layer, library, VTK extensions, and plugins, making individual components potentially reusable in other VTK-based projects.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 4 reusable components found
$ loading more...
$ submit: