Registry / devops / borderline-server

borderline-server

JSON →
library0.3.12jsnpmunverified

Borderline Server is a multi-browser visualization tool server that provides a lightweight backend for serving visualization data across multiple browsers. The current stable version is 0.3.12. It requires Node.js >= 8.0.0 and npm >= 6.0.0. As a server-side component of the Borderline ecosystem, it focuses on real-time data synchronization and simple setup, differentiating itself with minimal configuration and cross-browser support.

npm install borderline-server
INSTALL
IMPORT
SIG · BORDERLINE-SERVER
B
borderline-server
devopsjavascriptv0.3.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BorderlineServer
import BorderlineServer from 'borderline-server'
const BorderlineServer = require('borderline-server')
ESM-only since v0.3.0
configure
import { configure } from 'borderline-server'
import configure from 'borderline-server'
Named export, not default
startServer
import { startServer } from 'borderline-server'
import startServer from 'borderline-server'
Named export for server start

Shows how to set up BorderlineServer with Express and Socket.IO for real-time multi-browser visualization.

import BorderlineServer, { configure } from 'borderline-server'; import express from 'express'; import { createServer } from 'http'; import { Server } from 'socket.io'; const app = express(); const httpServer = createServer(app); const io = new Server(httpServer); configure({ io }); const server = new BorderlineServer({ port: process.env.PORT ?? 3000 }); server.start(); httpServer.listen(server.port, () => { console.log(`Listening on ${server.port}`); });
Debug
Known issues
breakingVersion 0.3.0 changed from CommonJS to ESM only.
fix
Use import syntax; do not use require().
affects: >=0.3.0
gotchaThe configure() function must be called before instantiating BorderlineServer.
fix
Call configure() with io instance before new BorderlineServer().
affects: >=0.2.0
deprecatedThe option `socket` in constructor is deprecated; use configure() instead.
fix
Replace with configure({ io: socket }) before creating server instance.
affects: >=0.3.0
Errors
Common errors & fixes
Cannot find module 'borderline-server'
Package not installed or path incorrect.
fix
Run `npm install borderline-server` and ensure it's in node_modules.
ReferenceError: require is not defined
Using require() in ESM package.
fix
Switch to import syntax.
io is not defined
Socket.IO instance not passed to configure().
fix
Call configure({ io: yourIoInstance }) before starting the server.
Upgrade
Version history
0.3.12latest on npm
Audit
Dependencies
expressrequiredHTTP server framework for handling requests
socket.iorequiredReal-time bidirectional event-based communication
Agent activity
4 hits · last 30 days
node
4
Resources