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

@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.

latest
Source
npmnpm
Version
0.5.0
Version published
Weekly downloads
182
171.64%
Maintainers
1
Weekly downloads
 
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 30 Jul 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