Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pinpoint-fe/server-map

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pinpoint-fe/server-map

Open-source network-map library, specifically for application topology, written in React.js

  • 0.0.10-rc.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

alpha version

@pinpoint-fe/server-map

  • documentation
  • demo

🔎 Overview

  • ServerMap component is an open-source network-map library, specifically for application topology.
  • With ServerMap component, you will find it easy to understand how your services are interconnected and how the transactions are going on between them.
  • Besides, since we provide a various of cool features such as merge and customizing label, feel free to check out them if you are interested in making your topology look nicer.
  • For your information, ServerMap component builds the network-map using cytoscape.js which is light, highly optimized and well-maintained so it's all ready to provide a pleasant experience.

⚙️ Installation

npm install @pinpoint-fe/server-map

or

yarn add @pinpoint-fe/server-map

🚀 Quick Start

Create your first ServerMap

import React from 'react';
import { ServerMap } from '@pinpoint-fe/server-map';

export default function MyServerMapPage() {
  return (
    <ServerMap 
      data={data}
      baseNodeId={'MY-APP'} 
    />
  );
}

Props

PropsTypeRequiredDescription
data{ nodes: Node[], edges: Edge[] }✔️Data to render
baseNodeIdstring✔️Central node id in the server-map
customThemeThemeTypeCustom style object
onClickNodeClickEventHandler<MergedNode>Callback to execute when clicking nodes
onClickEdgeClickEventHandler<MergedEdge>Callback to execute when clicking edges
onClickBackgroundClickEventHandler<{}>Callback to execute when clicking background
renderNodeLabel(node: MergedNode) => string ㅣ undefinedCustom node label
renderEdgeLabel(node: MergedEdge) => string ㅣ undefinedCustom edge label

FAQs

Package last updated on 12 Sep 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc