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.

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,
})

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