JavaScript overview
Understand the public Node.js surface.
Node.js installation
@xbbg/core.The public npm package resolves a supported native addon, then connects to the same Rust/Arrow engine used by Python.
npm install @xbbg/corebun add @xbbg/corePackage page: npm / @xbbg/core
@xbbg/core loads a packaged native addon through platform-specific optional dependencies on supported targets.
INFO
The platform-specific @xbbg/core-* packages are installation artifacts behind @xbbg/core. Public docs stay centered on @xbbg/core itself.
After install, point the package at the Bloomberg endpoint you use:
import * as xbbg from '@xbbg/core';
xbbg.configure({
host: 'localhost',
port: 8194,
});For B-PIPE, leased-line, or advanced auth scenarios, connect() and configure() accept the structured EngineConfig object exposed by the package. Direct B-PIPE hosts use host / port or servers; ZFP over leased lines uses zfpRemote: '8194' | '8196' plus tls credentials and must not be combined with direct hosts or SOCKS5.
import * as xbbg from '@xbbg/core';
console.log(xbbg.version());
console.log(xbbg.blp);
console.log(xbbg.ext);If you need to build the addon yourself, follow the repository instructions in js-xbbg/README.md. The public docs stay focused on the installable package; contributor and unsupported-platform workflows live in the package README.
Understand the public Node.js surface.
Choose between xbbg and @xbbg/core.
Browse the generated TypeScript reference.