Skip to content
CAI
Software that uses CAICheck a score

basho/riak-erlang-client

64.6

Adequate · 13 November 2026

5.8k

lines of production code

Erlang

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an Erlang client library for interacting with the Riak distributed database. It provides a modernized build infrastructure and comprehensive support for Riak's eventually-consistent data types, including counters, flags, registers, sets, hyperloglogs, and maps. The library also facilitates standard database operations such as secondary indexing, search, and MapReduce queries, all backed by extensive unit and integration tests.

Features

Add Riak client type specifications and macros

The \riakc.hrl\ header file is introduced, defining Erlang types and macros for the Riak protocol buffer client. This includes type specifications for client options, bucket and key identifiers, MapReduce query terms, and secondary index result records. It also defines constants for timeouts and connection parameters, enabling the client to support features like secondary indexes, search, and MapReduce with proper type checking.

include · high confidence

Added support for Riak's eventually-consistent data types

The client library now supports Riak's eventually-consistent data types, including counters, flags, registers, sets, generalised sets, hyperloglogs, and maps. These new modules (riakc\_counter, riakc\_flag, riakc\_register, riakc\_set, riakc\_gset, riakc\_hll, and riakc\_map) implement a common datatype behaviour, allowing users to perform local updates that are later applied to the server. The changes also include the addition of the riakc.app.src file to define the application structure and dependencies.

src · high confidence

Removals

Removal of riakc application file

The riakc application file (ebin/riakc.app) has been removed from the project. This change affects the packaging and structure of the Riak client library, potentially impacting how the application is loaded or referenced by the Erlang runtime.

ebin · high confidence

Behavioural changes

Updated styling for generated documentation pages

The visual presentation of the generated documentation (edoc) has been updated with new CSS rules. This includes baseline typography settings (font sizes, line heights, margins) for headings and paragraphs, specific styling for code blocks and preformatted text, and custom formatting for headers, lists, and function specifications to improve readability and visual hierarchy.

priv · high confidence

Upgrade to Erlang/OTP 20+ and modernize build configuration

The client library now requires Erlang/OTP 20 or later, as reflected in the new \require\_otp\_vsn\ constraint in \rebar.config\. The build system has been modernized to use Rebar3, with the \Makefile\ delegating to \./rebar3\ for all build targets. Additionally, the \rebar.config\ file has been expanded to include EUnit verbosity, stricter compiler warnings, platform-specific defines for OTP 19 and 20 deprecations, and Xref checks for unused or undefined functions.

(repo-wide) · high confidence

Test coverage

Added unit and integration tests for the Riak client library

Added new test suites for the Erlang client, including protocol buffer socket connection handling (auto-reconnect, linger options, and disconnected states), timeseries (TS) operations, and utility functions. The tests verify connection stability, client ID management, server version retrieval, and proper error handling for invalid operations like adding to an HLL map.

test · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 63 → 65 (+1.4)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 94 → 94 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 45 → 43 (-2.5)
  • Readiness 68 → 78 (+10.0)
  • Security 85 → 85 (+0.0)

New (7)

  • Edited copy of a member (12 corresponding lines) (src/riakc_pb_socket.erl)
  • Edited copy of a member (13 corresponding lines) (src/riakc_ts.erl)
  • Edited copy of a member (31 corresponding lines) (src/riakc_pb_socket.erl)
  • Edited copy of a member (35 corresponding lines) (src/riakc_pb_socket.erl)
  • Edited copy of a member (4 corresponding lines) (src/riakc_pb_socket.erl)
  • Edited copy of a member (7 corresponding lines) (src/riakc_ts_get_operator.erl)
  • Edited copy of a member (8 corresponding lines) (src/riakc_ts.erl)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

basho/riak-erlang-client was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 3b6ad6e92dcb55833e9add829b2871be8468a68e — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-b8b1a43ae4c3.