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

gojs-extensions

v4.0.2

Published

GoJS extension classes (tools, layouts, figures, and more) for the gojs diagramming library

Readme

gojs-extensions

Extension classes for GoJS — custom tools, layouts, links, figures, and other reusable components that build on the main GoJS diagramming library.

These are the same extensions documented on the Extensions introduction page and used throughout the GoJS samples. This package requires GoJS itself, which is published separately as gojs.

In production, we recommend you copy the extension code

Extensions are not part of the core GoJS API. Their behavior and API may change with any version, even point releases. If you intend to use an extension in production, you should either pin the version or copy its source into your own project and maintain it there, rather than importing it from this package as a long-lived dependency.

Every extension file repeats this guidance in its own header comment. Treat this package as a convenient, versioned source of extension code to read, learn from, and copy.

Installation

npm install gojs
npm install gojs-extensions

The package contains two parallel copies of every extension:

| Folder | Format | Use when | | ---------------- | --------------------------------- | --------------------------------------------------------- | | extensionsJSM/ | ES modules (.ts source + .js) | Using import go from 'gojs' | | extensions/ | Plain browser scripts (.js) | Loading GoJS from a <script> tag to use the global go |

The extensionsJSM/ files are the TypeScript source of truth; the extensions/ files are the same classes with the import/export statements stripped for use as globals.

Usage

As ES modules (extensionsJSM/)

Each extension imports GoJS from 'gojs' and exports its class:

import * as go from 'gojs';
import { BalloonLink } from 'gojs-extensions/extensionsJSM/BalloonLink';

const diagram = new go.Diagram('myDiagramDiv');
diagram.linkTemplate = new BalloonLink(/* ... */);

As plain browser scripts (extensions/)

Load go.js first, then the extension script; the class is added to the global scope:

<script src="https://cdn.jsdelivr.net/npm/gojs/release/go.js"></script>
<script src="path/to/gojs-extensions/extensions/BalloonLink.js"></script>
<script>
  const diagram = new go.Diagram('myDiagramDiv');
  diagram.linkTemplate = new BalloonLink(/* ... */);
</script>

Recommended workflow

  1. Browse the extension you want on the Extensions introduction page or in the Samples.
  2. Either pin your version of gojs-extensions, or copy the relevant file from extensionsJSM/ (or extensions/) into your own source tree.
  3. If copied, further adapt it as your own code.

Links

  • GoJS website: https://gojs.net
  • Extensions introduction page: https://gojs.net/latest/learn/extensions
  • Samples: https://gojs.net/latest/samples
  • Support: https://nwoods.com/support
  • Forum: https://forum.nwoods.com/c/gojs

License

See license.html. GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation.