# GoJS, a JavaScript Library for HTML Diagrams [GoJS](https://gojs.net) is a JavaScript and TypeScript library for creating and manipulating diagrams, charts, and graphs. [![npm](https://img.shields.io/github/release/NorthwoodsSoftware/GoJS.svg)](https://www.npmjs.com/package/gojs) [![open issues](https://img.shields.io/github/issues-raw/NorthwoodsSoftware/GoJS.svg)](https://github.com/NorthwoodsSoftware/GoJS/issues) [![last commit](https://img.shields.io/github/last-commit/NorthwoodsSoftware/GoJS.svg)](https://github.com/NorthwoodsSoftware/GoJS/commits/master) [![downloads](https://img.shields.io/npm/dw/gojs.svg)](https://www.npmjs.com/package/gojs) [![Twitter Follow](https://img.shields.io/twitter/follow/NorthwoodsGo.svg?style=social&label=Follow)](https://twitter.com/NorthwoodsGo) [See GoJS Samples](https://gojs.net/latest/samples) [Get Started with GoJS](https://gojs.net/latest/learn) GoJS is a flexible library that can be used to create a number of different kinds of interactive diagrams, including data visualizations, drawing tools, and graph editors. There are samples for [flowchart](https://gojs.net/latest/samples/flowchart.html), [org chart](https://gojs.net/latest/samples/orgChartEditor.html), [business process BPMN](https://gojs.net/latest/samples/bpmn/BPMN.html), [swimlanes](https://gojs.net/latest/samples/swimLanes.html), [timelines](https://gojs.net/latest/samples/timeline.html), [state charts](https://gojs.net/latest/samples/statechart.html), [kanban](https://gojs.net/latest/samples/kanban.html), [network](https://gojs.net/latest/samples/network.html), [mindmap](https://gojs.net/latest/samples/mindMap.html), [sankey](https://gojs.net/latest/samples/sankey.html), [family trees](https://gojs.net/latest/samples/familyTree.html) and [genogram charts](https://gojs.net/latest/samples/genogram.html), [fishbone diagrams](https://gojs.net/latest/samples/Fishbone.html), [floor plans](https://gojs.net/latest/projects/gojs-floorplanner/index.html), [UML](https://gojs.net/latest/samples/umlClass.html), [decision trees](https://gojs.net/latest/samples/decisionTree.html), [PERT charts](https://gojs.net/latest/samples/PERT.html), [Gantt](https://gojs.net/latest/samples/gantt.html), and [hundreds more](https://gojs.net/latest/samples/index.html). GoJS includes a number of built in layouts including tree layout, force directed, circular, and layered digraph layout, and many custom layout extensions and examples. GoJS is renders either to an HTML Canvas element (with export to SVG or image formats) or directly as SVG DOM. GoJS can run in a web browser, or server side in [Node](https://nodejs.org/en/) or [Puppeteer](https://github.com/GoogleChrome/puppeteer). GoJS Diagrams are backed by Models, with saving and loading typically via JSON-formatted text. [](https://gojs.net/latest/samples/index.html) Read more about GoJS at [gojs.net](https://gojs.net) The [GitHub repository](https://github.com/NorthwoodsSoftware/GoJS) and the [GoJS website](https://gojs.net) contain not only the library, but also the sources for all samples, extensions, and documentation. However the [npm package](https://www.npmjs.com/package/gojs) contains only the library. You can install the GoJS library using npm: ```html $ npm install gojs ``` The extensions are published separately in the `gojs-extensions` package: ```html $ npm install gojs-extensions ``` The samples and documentation are not on npm; they are available in the GitHub repository and on the website. You can use the GitHub repository to quickly [search through all of the sources](https://github.com/NorthwoodsSoftware/GoJS-Samples/search?q=setDataProperty&type=Code).

Minimal Sample

Diagrams are built by creating one or more templates, with desired properties data-bound, and adding model data. ```html
``` The above diagram and model code creates the following graph. The user can now click on nodes or links to select them, copy-and-paste them, drag them, delete them, scroll, pan, and zoom, with a mouse or with fingers. [](https://gojs.net/latest/samples/minimal.html) _Click the above image to see the interactive GoJS Diagram_

Using GoJS with AI coding assistants

GoJS publishes an [llms.txt](https://gojs.net/llms.txt) primer that orients LLMs and coding agents (Claude, Copilot, Cursor, etc.) toward correct, idiomatic GoJS 4.0+ code — typed constants (`go.Figures`, `go.Arrowheads`, …), the fluent `new go.Node(...).add(...)` API, generic models, and common gotchas. The full, machine-readable TypeScript API surface ships in this package as `gojs/release/go.d.ts`.

Support

Northwoods Software offers a month of free developer-to-developer support for GoJS to prospective customers so you can finish your project faster. Read and search the official GoJS forum for any topics related to your questions. Posting in the forum is the fastest and most effective way of obtaining support for any GoJS related inquiries. Please register for support at Northwoods Software's registration form before posting in the forum. For any nontechnical questions about GoJS, such as about sales or licensing, please visit Northwoods Software's contact form.

License

GoJS is commercial software, not open-source. As of September 2026, GoJS is free for individuals for non-commercial use, such as learning and hobby projects, under the Non-Commercial Software License Agreement. See the deployment instructions for non-commercial license keys. Use of GoJS by or on behalf of an organization, including any company, non-profit, educational institution, or government agency, is commercial use and requires a purchased license under the software license, or private evaluation under the evaluation license. Copyright, Northwoods Software Corporation