Skip to content
CAI
Software that uses CAICheck a score

cloudant-labs/hastings

54.3

Adequate · 2 October 2026

2.7k

lines of production code

Erlang

primary language

2

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a geospatial index manager for CouchDB, named Hastings, designed to handle the lifecycle of spatial indexes including creation, updates, and purging. It provides distributed search capabilities and exposes HTTP endpoints for querying and retrieving geospatial data in various formats. The system integrates with the couch\_epi plugin for configuration and includes comprehensive test coverage to verify index operations and metrics.

Features

Introduce Hastings geospatial index manager

Adds the Hastings application, a new geospatial index manager for CouchDB. This includes the core index lifecycle management (creation, updates, purging, and vacuuming), a fabric layer for distributed search and info queries across shards, and HTTP handlers exposing \\_geo\ and \\_geo\_info\ endpoints. It supports multiple output formats (GeoJSON, legacy, and view) and integrates with the \couch\_epi\ plugin system for configuration and routing.

src · high confidence

New sample loaders for spatial data ingestion and querying

Added two new Python sample scripts, loader.py and loader\_ski\_areas.py, that demonstrate loading GeoJSON feature collections into a Couchbase database and performing spatial queries. These samples utilize the st\_indexes design document for spatial indexing and support bounding-box searches via the \_geo endpoint, with an optional --rm flag to clean up the database after execution.

sample · high confidence

Test coverage

Added test coverage for Hastings geospatial index operations

Added new EUnit and Python tests to verify Hastings geospatial index behavior, including database deletion and index renaming logic, handling of process info messages, index validation, and purge document management, as well as verifying that geospatial metrics are exposed in the stats endpoint and that document revisions are returned in view format.

test · high confidence

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

How this codebase got here

Score

  • CAI 54 → 54 (+0.0)
  • Rubric changed (rubric-2026.09.12 → rubric-2026.09.18) — scores are not directly comparable.

Lenses

  • Code Health 97 → 97 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 48 → 48 (+0.0)
  • Readiness 33 → 33 (+0.0)
  • Security 100 → 100 (+0.0)

New (1)

  • Documentation: no usage examples (README.md)

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

Survey your own repository

cloudant-labs/hastings 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 2 October 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 378c0e12863daf7288302ec35759c7606ceddda1 — the exact code this score is about.
  • Scored under rubric-2026.09.18 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-e569280dd5e2.