{"id":40663,"library":"borderline-server","title":"Borderline Server","description":"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.","status":"maintenance","version":"0.3.12","language":"javascript","source_language":"en","source_url":"https://github.com/dsi-icl/borderline-server","tags":["javascript","borderline","etriks","server"],"install":[{"cmd":"npm install borderline-server","lang":"bash","label":"npm"},{"cmd":"yarn add borderline-server","lang":"bash","label":"yarn"},{"cmd":"pnpm add borderline-server","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"HTTP server framework for handling requests","package":"express","optional":false},{"reason":"Real-time bidirectional event-based communication","package":"socket.io","optional":false}],"imports":[{"note":"ESM-only since v0.3.0","wrong":"const BorderlineServer = require('borderline-server')","symbol":"BorderlineServer","correct":"import BorderlineServer from 'borderline-server'"},{"note":"Named export, not default","wrong":"import configure from 'borderline-server'","symbol":"configure","correct":"import { configure } from 'borderline-server'"},{"note":"Named export for server start","wrong":"import startServer from 'borderline-server'","symbol":"startServer","correct":"import { startServer } from 'borderline-server'"}],"quickstart":{"code":"import BorderlineServer, { configure } from 'borderline-server';\nimport express from 'express';\nimport { createServer } from 'http';\nimport { Server } from 'socket.io';\n\nconst app = express();\nconst httpServer = createServer(app);\nconst io = new Server(httpServer);\n\nconfigure({ io });\n\nconst server = new BorderlineServer({ port: process.env.PORT ?? 3000 });\nserver.start();\n\nhttpServer.listen(server.port, () => {\n  console.log(`Listening on ${server.port}`);\n});","lang":"typescript","description":"Shows how to set up BorderlineServer with Express and Socket.IO for real-time multi-browser visualization."},"warnings":[{"fix":"Use import syntax; do not use require().","message":"Version 0.3.0 changed from CommonJS to ESM only.","severity":"breaking","affected_versions":">=0.3.0"},{"fix":"Call configure() with io instance before new BorderlineServer().","message":"The configure() function must be called before instantiating BorderlineServer.","severity":"gotcha","affected_versions":">=0.2.0"},{"fix":"Replace with configure({ io: socket }) before creating server instance.","message":"The option `socket` in constructor is deprecated; use configure() instead.","severity":"deprecated","affected_versions":">=0.3.0"}],"env_vars":null,"search_vec":"'0.3.12':30 '6.0.0':37 '8.0.0':34 'across':22 'backend':17 'borderlin':1,3,46,70 'browser':9,24,67 'compon':43 'configur':63 'cross':66 'cross-brows':65 'current':26 'data':21,54 'differenti':59 'ecosystem':47 'etrik':71 'focus':49 'javascript':69 'lightweight':16 'minim':62 'multi':8 'multi-brows':7 'multipl':23 'node.js':33 'npm':36 'provid':14 'real':52 'real-tim':51 'requir':32 'serv':19 'server':2,4,12,41,72 'server-sid':40 'setup':58 'side':42 'simpl':57 'stabl':27 'support':68 'synchron':55 'time':53 'tool':11 'version':28 'visual':10,20","created_at":"2026-06-04T18:48:39.642021+00:00","updated_at":"2026-06-04T18:48:39.642021+00:00","problems":[{"fix":"Run `npm install borderline-server` and ensure it's in node_modules.","cause":"Package not installed or path incorrect.","error":"Cannot find module 'borderline-server'"},{"fix":"Switch to import syntax.","cause":"Using require() in ESM package.","error":"ReferenceError: require is not defined"},{"fix":"Call configure({ io: yourIoInstance }) before starting the server.","cause":"Socket.IO instance not passed to configure().","error":"io is not defined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dsi-icl/borderline-server#readme","github":"https://github.com/dsi-icl/borderline-server","docs":null,"changelog":null,"pypi":null,"npm":"borderline-server","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}