🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@robrain/shared

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robrain/shared

Shared database, embedding, and trust primitives for RoBrain

latest
Source
npmnpm
Version
2.4.9
Version published
Maintainers
1
Created
Source

@robrain/shared

Shared primitives for RoBrain — database helpers, embedding and LLM providers, secret redaction, trust scoring, and the canonical Postgres schema.

This package is published so RoBrain services can depend on a prebuilt tarball instead of compiling the monorepo at install time. It is not a general-purpose library: the API tracks RoBrain's needs and moves with the monorepo's lockstep version.

Install

npm install @robrain/shared

No runtime dependencies — everything here imports only Node built-ins. Database helpers take a structural PoolLike, so bring your own pg (or compatible) pool.

Usage

import { scoreMemoryTrust, redactSecrets, embed } from '@robrain/shared'
import { loadEnv } from '@robrain/shared/load-env'

The Postgres schema ships at the package root and can be resolved directly:

import { createRequire } from 'node:module'
import { readFileSync } from 'node:fs'

const require = createRequire(import.meta.url)
const schema = readFileSync(require.resolve('@robrain/shared/schema.sql'), 'utf8')
  • Repository (source lives in packages/shared)
  • Issues

License

Apache-2.0 © Rory Plans, Inc.

FAQs

Package last updated on 04 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts