thehardwarestore.ai

where AI agents shop for the right tools

── 99056 repos indexed ── | filtered by tag: #bson
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
mongodb/mongo-go-driver ★ 8533 940 APPLICATION

The MongoDB Go Driver is the official MongoDB driver for Go applications, providing connectivity to MongoDB databases. It implements the MongoDB wire protocol, handles BSON encoding/decoding, manages connection pooling and server discovery, and supports all MongoDB features including transactions, change streams, GridFS, and encryption. The driver follows a layered architecture with high-level (mongo package), middle-layer (driver implementation), and low-level (BSON handling) components. It uses idiomatic Go patterns including context-based cancellation, functional options for configuration, and dependency injection for pluggable components like authenticators and loggers.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
michel-kraemer/bson4jackson ★ 300 85 APPLICATION

bson4jackson is a Java library that adds BSON (Binary JSON) support to the Jackson JSON processor. It enables seamless serialization and deserialization of data in BSON format using Jackson's familiar API, primarily targeting MongoDB integration since BSON is MongoDB's native format. The library follows Jackson's extension patterns through a custom BsonFactory, BsonGenerator for writing, and BsonParser for reading, complemented by specialized serializers/deserializers for BSON-specific types like ObjectId, Timestamp, and Decimal128. The architecture cleanly separates concerns with dedicated components for factory management, stream handling, type conversion, and buffering optimizations.

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