Developer SDK

Embed AI Memory Into Any Application

Replace your database layer with an intelligent memory engine. One line of code to install. Scale to millions of records.

go get github.com/Qosil/bRRAIn/sdk

What bRRAIn Embedded Does

Replace Your Database

Swap your PostgreSQL or MySQL layer with bRRAIn's graph memory. Application logic stays the same. Same API, smarter retrieval.

Intelligent Retrieval

Queries automatically enriched with graph context. No more hand-crafted JOINs or full-text kludges. Let the graph do the thinking.

Zero-Trust Security

Every record encrypted, signed, and auditable. HIPAA- and SOC 2-ready envelopes. Your data. Your keys. Your control.

Quick Start

Three tabs. Three steps. Working in under 10 minutes. Full 7-step guide →

go get github.com/Qosil/bRRAIn/sdk
import "github.com/Qosil/bRRAIn/sdk"

client := sdk.NewClient("YOUR_API_KEY",
  sdk.WithHandler("http://localhost:8080"))

ws, err := client.CreateWorkspace("my-app")
if err != nil {
  panic(err)
}
record := map[string]interface{}{
  "type": "patient_note",
  "patient_id": "p123",
  "content": "Follow-up appointment scheduled...",
}

id, err := ws.Store(record,
  sdk.WithContext(map[string]string{
    "visit_date": "2026-04-16",
    "severity": "routine",
  }))

results, _ := ws.Retrieve(sdk.Query{
  Search: "follow-up appointments",
  Limit: 10,
})

Built for every industry

Schema-agnostic ingestion plus domain-specific Handler adapters.

Accounting Firms

Persistent AI memory gives every team member instant access to complete client engagement history.

Read the use case →

Professional Services

Team-wide contextual AI accelerates proposal turnaround and ensures engagement quality at scale.

Read the use case →

Enterprise IT

Persistent incident context and ITSM integration cut mean time to resolution dramatically.

Read the use case →

Marketing Firms

Persistent AI memory maintains campaign history, client preferences, and cross-channel insights across every engagement.

Read the use case →

Legal Firms

AI that remembers every precedent, every case pattern, and every client preference across the entire firm.

Read the use case →

Logistics Firms

Persistent memory that compounds route intelligence, customer preferences, and operational patterns across every shipment.

Read the use case →

Customer Service Firms

AI that knows every customer interaction, every resolution pattern, and every product issue — instantly.

Read the use case →

Tech Support Firms

Persistent AI memory that retains every incident, every resolution, and automatically updates institutional knowledge.

Read the use case →

Mining & Geological

Persistent AI memory ingests sensor data, bore logs, and geological samples into one queryable graph. Query by depth, mineral composition, or geological era across every site the company has ever touched.

Read the use case →

Healthcare

HIPAA-compliant persistent memory unifies the patient graph across every encounter. Find similar cases instantly, audit every AI suggestion, and keep PHI inside your own vault.

Read the use case →

IoT & Teleoperation

Time-series ingestion plus POPE graph over devices, sites, operators, and anomalies. Teleoperators inherit the full fleet memory on day one, and AI agents spot drift before it becomes an incident.

Read the use case →

Manufacturing

bRRAIn ingests every production event into a graph with lineage and dependency edges. Trace a defect from finished SKU to raw-material lot in milliseconds, and compound quality knowledge across plants.

Read the use case →

Architecture

The SDK sits inside your application, complementing your existing database with graph-based intelligent retrieval.

Your Application App DB Transactions, users, state bRRAIn SDK Embed & Query Handler (local or hosted) Schema-agnostic ingestion Graph retrieval bRRAIn Core On-premises or cloud The Vault (encrypted) Workspaces + Consolidator POPE Graph RAG

Complementary to your stack

Capability Your Database bRRAIn SDK Together
Structured queriesYesLimitedYes
Semantic searchNoYesYes
Graph traversalNoYesYes
Full-text searchLimitedYesYes
Zero-trust envelopesNoYesYes
Provenance & auditManualBuilt-inBuilt-in