
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@robrain/shared
Advanced tools
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.
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.
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')
packages/shared)Apache-2.0 © Rory Plans, Inc.
FAQs
Did you know?

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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.