npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vidi-graph-gl

v0.1.18

Published

Graph visualization package based on three.js

Readme

package

Table of Contents

About The Project

Graph-gl is a minimum package dedicated to render graphs and handel interactions based on WebGL.

Built With

Notification

Check out npm or github release branch for latest version.

The interaction feature is under development and will be released very soon.

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
npm install npm@latest -g

Installation

Using the lib

The library could be installed with

npm install vidi-graph-gl

Develop the lib

  1. Clone the repo
git clone https://github.com/haicatw/graph-gl.git
  1. Install NPM packages
npm install
  1. Lint
npm run lint
  1. Build
npm run build

Usage

  1. Import the library

    import GraphGL from "vidi-graph-gl";
  2. Initialize the instance

    const graphGLInstance = new GraphGL({ selector: "#container" });
  3. Load your graph

    const myGraph = {
        nodes: [
            { id: 0, x: 0, y: 0, size: 40, label: "testing..." },
            { id: 1, x: 3.4, y: -5.2, size: 30, borderWidth: 10, label: "testing" },
            { id: 2, x: 0, y: 10, size: 30, borderWidth: 30, label: "testing label"},
        ],
        edges: [{ id: 0, source: 2, target: 1, color: "#2ec1ac", width: 1 }],
    };
    graphGLInstance.readGraph(myGraph);

    initialization

  4. Update visualization

    graphGLInstance.refresh();
  5. Update graph data

    for(const node of graphGLInstance.nodes()) { // or .edges() for updating edges
        node.color = '#000000'
        node.borderWidth = 40
        node.opacity = 0.5
        node.borderColor = '#2ec1ac'
        node.size = 40
        node.label = "new label"
    }
    graphGLInstance.refresh();

    updated

  6. Clear current graph data

    graphGLInstance.clear();

Roadmap

See the open issues for a list of proposed features (and known issues).

Features

  • [x] Graph model
  • [x] Node visual encoding
  • [x] Edge visual encoding
  • [x] Curved edge
  • [x] Auto fit scene
  • [x] Label
  • [ ] Interaction handler
  • [x] Graph hot updator

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.