brainy/docs/guides/installation.md
David Snelling 33caa52c2d docs(8.0): remove unbacked Cortex '5.2x' perf claim + dangling /docs/cortex/comparison link
The installation guide asserted a '5.2x geometric mean speedup' linking a /docs/cortex/comparison
page that does not exist (404) and has no backing benchmark — an unbacked performance claim
shipping in the public package, against the evidence rule. Replaced with a qualitative
native-acceleration statement (no number, no dead link) until a measured, reproducible
open-core-vs-native comparison is published. Also dropped the dead 'cortex/comparison' next-link
from PLUGINS.md frontmatter.
2026-06-15 12:52:04 -07:00

2.1 KiB

title slug public category template order description next
Installation getting-started/installation true getting-started guide 1 Install Brainy with npm, bun, yarn, or pnpm. Works in Node.js 22+ and Bun 1.0+ (server-only since 8.0). TypeScript included.
getting-started/quick-start
guides/storage-adapters

Installation

Requirements

  • Node.js 22+ or Bun 1.0+
  • TypeScript is optional — Brainy ships with full type definitions

Install

npm install @soulcraft/brainy

Or with your preferred package manager:

bun add @soulcraft/brainy
yarn add @soulcraft/brainy
pnpm add @soulcraft/brainy

Verify

import { Brainy } from '@soulcraft/brainy'

const brain = new Brainy()
await brain.init()

console.log('Brainy ready.')

Native Acceleration (Optional)

For production workloads, add Cortex for Rust-accelerated SIMD distance calculations and native embeddings:

npm install @soulcraft/cortex
import { Brainy } from '@soulcraft/brainy'

const brain = new Brainy({ plugins: ['@soulcraft/cortex'] })
await brain.init()  // native providers registered during init

Cortex registers native (Rust/SIMD) vector, metadata, and graph engines behind the same Brainy find() API — no code changes, an optional dependency for production-scale workloads.

Server-only since 8.0

Brainy 8.0 runs on Node.js 22+ and Bun 1.0+. Browser support (OPFS storage, Web Workers, in-browser WASM embeddings) was removed in 8.0 — the 7.x line remains available on npm if you need it.

TypeScript

Brainy ships with full TypeScript types. No @types/ package needed:

import { Brainy, NounType, VerbType } from '@soulcraft/brainy'

const brain = new Brainy()
await brain.init()

const id = await brain.add({
  data: 'Hello, Brainy',
  type: NounType.Concept,
  metadata: { created: Date.now() }
})

Next Steps