Skip to content

AI, robotics and 3D, built by RESBROTHERX.

Watch us YouTube @resbrotherx
Contact Us
Documentation

Brainbox design overview

How Brainbox is designed: the SDKs, the background log collector, the backend pipeline and the safety rules for database access. Brainbox is in development.

Last checked 15 November 2026 · About Brainbox

Brainbox is in development. Its packages have not been published, so this page describes the design and there is nothing to install yet. The source is on GitHub.

Overview

Brainbox is an AI operations platform. It collects logs from a customer's systems, has AI agents analyse them, helps locate the code involved and lets those agents query the database through a read-only, audited gateway.

Architecture

How the parts connect
Customer infrastructure
├── CLI service        collects logs on a schedule
├── Application SDKs   Python, Node.js, React
└── Customer database  reached through the database SDK

        │  HTTPS
        ▼

Brainbox backend
├── API gateway         authentication and validation
├── Ingestion pipeline  processes what was collected
├── AI agents           analyse and explain
├── Database            stores results and the audit log
└── Dashboard           shows findings

The five SDKs

SDKRuns inPurpose
Python SDKPython applicationsSend events and call Brainbox from Python
Node.js SDKNode.js back endsThe same for Node.js services
React SDKReact front endsBring Brainbox into a web interface
CLI serviceThe serverCollects logs automatically in the background
Database SDKNext to the databaseRuns safe, read-only queries

What the collector gathers

  • Docker container logs
  • System logs
  • Database logs
  • Nginx logs
  • SSL certificate information

The collector is designed to run as a background service and send what it gathers every few minutes over HTTPS.

Backend endpoints for database access

EndpointPurpose
/api/db/test-connectionCheck that the database can be reached
/api/db/schemaList tables and columns
/api/db/queryRun a read-only query
/api/db/audit-logRead the history of queries

Safety rules

  • Read-only enforcement: DELETE, DROP and ALTER are blocked.
  • Parameterised queries to prevent SQL injection.
  • Row limits to prevent large exports.
  • Query auditing: every query is logged.
  • Tenant isolation: data is separated by tenant.
  • Rate limiting and API key validation on every request.
  • HTTPS for all data in transit.

The reasoning behind these rules is explained in Designing safe database access for AI agents.

Planned installation methods

Brainbox is designed to install the way operations teams already install tools: through pip, npm, apt, rpm, snap or Docker. None of these packages has been published yet.

Something unclear?

Tell us and we will fix the page.

Send feedback