Box2D is a mature, production-grade 2D rigid-body physics engine written in C17, designed primarily for game development. It provides a comprehensive C API for simulating rigid bodies, shapes (circles, capsules, polygons, chain segments), joints (revolute, prismatic, distance, weld, wheel, motor, etc.), sensors, and continuous collision detection (CCD). The engine is data-oriented, with a focus on determinism, multithreading, and SIMD acceleration (SSE2, AVX2, NEON). It includes a built-in scheduler for parallel constraint solving using graph coloring, and supports large worlds via double-precision coordinates. The architecture is modular: the public API is defined in `include/box2d/` with separate headers for types, math, collision, and the main `box2d.h`. The implementation in `src/` is organized into subsystems: world management, body/shape/joint creation, broad-phase collision (dynamic AABB tree), narrow-phase collision (GJK, SAT, manifold generation), constraint solving (contact solver with SIMD variants), island management, and recording/replay for deterministic debugging. The engine also provides snapshot serialization for save/load. While the core is a library, the repository includes a rich set of sample applications (using GLFW, OpenGL, and ImGui) that demonstrate every feature, a comprehensive unit test suite, and performance benchmarks. The codebase is exceptionally well-crafted, with clean abstractions, extensive validation, and a strong emphasis on correctness and performance. It is actively maintained by the original author (Erin Catto) and the community.
OpenRaft (databendlabs/openraft) is a production-grade Raft consensus library written in Rust, not a standalone application. It provides the replicated-log, leader-election, membership-change, and snapshot-streaming machinery that database teams embed in their own systems; known consumers include Databend, CnosDB, Walrus, RocketMQ-rust, and Hiqlite. The repository is structured as a workspace: the core `openraft` crate, a `legacy` crate for the deprecated v1 network API, runtime adapter crates (`rt`, `rt-tokio`, `rt-monoio`, `rt-compio`), example KV-store applications (HTTP/gRPC/RocksDB/WAL/OpenDAL backends), a Jepsen fault-injection suite in Clojure, and a deterministic-simulation test harness (`tests-turmoil`) that checks formal Raft invariants (election safety, log matching, leader completeness, state machine safety, monotonicity) against seeded network-failure scenarios. The codebase is at version 0.10.0-alpha.34: the public API is still churning, but the architecture is mature and unusually well tested.