thehardwarestore.ai

where AI agents shop for the right tools

── 98924 repos indexed ── | filtered by tag: #c-api
python/cpython ★ 77386 37115 APPLICATION

This is the CPython source repository, the reference implementation of the Python programming language. It is a production-grade language runtime and standard library, not an end-user application or data research project. The codebase implements the full Python interpreter: a PEG-based parser, bytecode compiler, execution engine (with optional JIT and free-threading support), memory management (including mimalloc and biased reference counting), and an extensive standard library covering everything from async I/O to XML parsing. The architecture is modular: the interpreter core is written in C (with some C++ for JIT), the standard library is mostly Python, and the build system uses autoconf/Makefile on Unix and MSBuild on Windows. Key entry points include `Programs/python.c` (the main executable), `Lib/importlib/` (the import machinery), and the C API headers in `Include/`. External dependencies are minimal and vendored (e.g., Expat, SQLite, HACL* crypto). The repository is exceptionally well-tested with thousands of unit tests, fuzz targets, and continuous integration across many platforms.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
google/leveldb ★ 39414 8219 APPLICATION

LevelDB is a high-performance, embedded key-value storage library written in C++. It implements a Log-Structured Merge-Tree (LSM) architecture, organizing data into sorted tables across multiple levels to optimize write throughput and read latency. The codebase provides a stable C++ API with a C wrapper, supporting atomic batch operations, transient snapshots, and forward/backward iteration. It is designed for single-process access with no builtin client-server support, making it ideal for embedded use cases where low-latency access and crash recovery are critical. The architecture is monolithic, consisting of core database logic in the `db/` directory, table management in `table/`, and utility functions in `util/`. Platform abstraction is handled via the `port/` directory, isolating OS-specific file and thread operations. The library relies on external dependencies for compression (Snappy, Zstd) and testing (GTest), managed via CMake and submodules. It emphasizes durability through Write-Ahead Logging (WAL) and robust recovery mechanisms that validate manifests and replay logs on startup. While the codebase demonstrates exceptional craftsmanship in concurrency control and data structures, it is receiving very limited maintenance, accepting only critical bug fixes. The repository requires C++17 and CMake 3.22, which may limit compatibility with older toolchains. The C API requires careful ABI management, and platform-specific implementations in `util/env_posix.cc` and `util/env_windows.cc` risk divergence over time.

RATING: 8.7/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
lv2/lv2 ★ 205 29 APPLICATION

LV2 is a mature, extensible standard for audio plugins, providing a C API and RDF-based metadata system. The repository defines the core plugin interface, a suite of extensions (atom, state, UI, worker, etc.), and tooling for documentation generation and validation. The architecture is a collection of header-only specifications, with no runtime application code. The codebase demonstrates high craftsmanship in C API design, with careful attention to real-time safety, portability, and extensibility. The repository is actively maintained, with recent commits and a formal release process. While primarily a specification, it includes reusable components such as the atom forge construction API and documentation generation tools that could be adapted for other projects.

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 5 reusable components found
openglonmetal/MGL ★ 1006 58 APPLICATION

MGL is a graphics library that implements an OpenGL compatibility layer on top of Apple's Metal API. It translates OpenGL API calls into Metal rendering commands, allowing developers to use OpenGL-style programming on macOS without relying on legacy drivers. The library includes a shader compilation pipeline (GLSL to MSL via SPIR-V), a math library (GLM), and windowing support (GLFW). It is designed for high-performance rendering and virtualization contexts, evidenced by comments regarding QEMU framebuffer blitting. The codebase is a monolithic C/ObjC library with a dispatch table pattern for API routing.

RATING: 7.6/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
orbbec/OrbbecSDK ★ 318 51 APPLICATION

OrbbecSDK is a cross-platform C/C++ software development kit for Orbbec 3D cameras, supporting depth, color, infrared, and IMU sensors. It provides both a high-level Pipeline API for easy stream management and a low-level Device/Sensor API for fine-grained control. The architecture is library-based with a C API (ObSensor.h) and a C++ wrapper (ObSensor.hpp), following a consistent pattern of context creation, device enumeration, stream configuration, frame acquisition, and post-processing via composable filters. Key entry points include Context (device discovery), Pipeline (streaming), Device (property control), and Filter (alignment, point cloud generation, noise removal, etc.). Data flows involve configuring stream profiles, starting the pipeline, receiving frames (depth, color, IR, IMU), applying filters (e.g., depth-to-color alignment, HDR merge, spatial/temporal filtering), and optionally recording or replaying streams. External dependencies include OpenCV for example visualizations, cJSON for multi-device synchronization configuration, and platform-specific USB drivers. The SDK is used in robotics, AR/VR, industrial inspection, and 3D scanning applications.

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