New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@booboo-brain/serve

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@booboo-brain/serve

Query a Booboo snapshot over REST + MCP. In-memory index: search, neighbors, shortest-path, layer stats.

Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

@booboo-brain/serve

Query a Booboo snapshot over REST and MCP. One in-memory index (BoobooIndex) powers both: search, neighbours, shortest-path, layer stats. Read-only.

REST

booboo serve --snapshot my.booboo.json --port 8787
RouteReturns
GET /graphmeta + counts
GET /stats{ nodes, links, byLayer }
GET /search?q=&limit=ranked nodes (exact > prefix > substring)
GET /nodes?layer=&cluster=&type=&q=&limit=&offset={ total, nodes }
GET /nodes/:idone node (404 if missing)
GET /neighbors/:id?depth=&limit={ center, nodes, links }
GET /path/:from/:to{ path } (chain of nodes, or null)

CORS is open, so a browser viewer can fetch a live graph directly.

MCP

booboo mcp --snapshot my.booboo.json

Speaks MCP over stdio. Point any client at it (Claude Desktop / Claude Code):

{ "mcpServers": { "booboo": { "command": "booboo", "args": ["mcp", "--snapshot", "/abs/path/my.booboo.json"] } } }

Tools: booboo_stats · booboo_search · booboo_node · booboo_neighbors · booboo_path.

API

import { BoobooIndex, loadSnapshot, createRestServer, runMcp } from "@booboo-brain/serve";

const ix = new BoobooIndex(loadSnapshot("my.booboo.json"));
ix.search("invoice");           // ranked nodes
ix.neighbors("dionisos", 2);    // 2-hop neighbourhood
ix.path("a", "b");              // shortest path or null
createRestServer(ix).listen(8787);

BoobooIndex is pure (no Node/network deps), so it also runs in the browser.

FAQs

Package last updated on 13 Jul 2026

Related posts