GoJS, a JavaScript Library for HTML Diagrams VS Konva

Compare GoJS, a JavaScript Library for HTML Diagrams vs Konva and see what are their differences.

Konva

Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications. (by konvajs)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
GoJS, a JavaScript Library for HTML Diagrams Konva
13 30
7,404 10,704
0.9% 2.2%
5.8 8.4
11 days ago 13 days ago
HTML TypeScript
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

GoJS, a JavaScript Library for HTML Diagrams

Posts with mentions or reviews of GoJS, a JavaScript Library for HTML Diagrams. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-29.
  • Burning money on paid ads for a dev tool – what we've learned
    2 projects | news.ycombinator.com | 29 Sep 2023
    Have spent six figures yearly on ads, mostly for reach for the developer-focused diagram library GoJS (https://gojs.net)

    > Each experiment will need ~$500 and 2 weeks

    I would add a zero if you want serious data. I would also double the timescale. $5,000 over 4 weeks

    I second the uselessness of Google Display, it might look like conversions numbers are good but they are 100% too good to be true. As soon as you look into them you find the sources are things like "ad from HappyFunBabyTime Android app". You have to ruthlessly prune daily for months to get anything real, and even then I'm skeptical of value. For a developer tool with very strict conversion metrics!

    But I disagree on Google Search:

    > Good for conversion, bad for awareness.

    Before we were popular it was excellent for awareness. Post popularity its much more arguable.

  • Purescript bindings for GoJS
    3 projects | /r/purescript | 29 Jun 2023
    Creating the Halogen components would be simple enough if one takes inspiration from gojs-react. The issue is that there are no PureScript bindings for the GoJS types themselves, but GoJS does provide .ts.d declarations, which means I could use purescript-read-dts, but that library's maturity/usability seems somewhat ambiguous, according to an author's post from 3 years ago.
  • Any Ideas How to Create a Graph Builder UI in React?
    2 projects | /r/reactjs | 24 Jan 2023
    used goJS in one project and konva in another
  • Ask HN: What is the most impactful thing you've ever built?
    33 projects | news.ycombinator.com | 18 Nov 2022
    I built GoJS, which is one of the most popular commercial JS diagramming libraries: https://gojs.net

    I built carefulwords, a very fast thesaurus and quote site for inspiration, used by... tens of people a day. Eg: https://carefulwords.com/gift https://carefulwords.com/solitude

    I mostly made it for myself, me and my wife use it all the time. I am slowly editing down the thesaurus to managable size.

    I built a 12x16 "Goose Palace" barn out of local pine timbers, which taught me timber framing, and taught my tiny baby who turned 2 years old while doing it that this is just the kind of thing that people normally do, build barns in their driveway. Some context: https://simonsarris.substack.com/p/the-goose-palace

    Some photos of building it with the baby: https://twitter.com/simonsarris/status/1584169368203956225

    I designed my house, and have been writing extensively about that. Maybe this is the most impactful, since photos of it are all over Pinterest and other sites, now. The first post on that: https://simonsarris.substack.com/p/designing-a-new-old-home-...

    I am not sure what is most impactful. Maybe ultimately it is building my family.

  • Node-Based UIs
    10 projects | news.ycombinator.com | 17 Nov 2022
    I made a pull request for GoJS (https://gojs.net)

    I have been building this canvas-based graphing library since 2011, and it contains a good number of features around customization and interactivity that are not found in other libraries. It is commercial for non-academic use however.

  • Where I can learn how to do the following in React?
    1 project | /r/reactjs | 11 Nov 2022
    in one project we use konva, in another we used gojs. Any of them or some other library needs some training and introduce own limitations but it still way way way better than handing all the coordinates, calculations, routing etc on your own.
  • TypeScript is terrible for library developers
    16 projects | news.ycombinator.com | 23 Aug 2022
    I am really surprised by this guy's opinion. I make GoJS (https://gojs.net/), a diagramming library written in TypeScript. The project began in 2011 and we converted it to TS in 2018. It's been a huge plus. The sole downside was the initial time it took during conversion, but even in doing so we caught bugs with incorrect input types, documentation mistakes, etc.

    On our end, it enforces type safety better than the Google Closure Compiler. There has scarcely been a problem with type complexity that was not ultimately our fault. Just a couple minor things that TS amended later. For that matter the TS experience has only gotten better, generally.

    On our users end, we can now give them a .d.ts file that's much richer and easier for us to produce to aid their autocompletion. And we can use that .d.ts file to ensure that all the methods we intended to expose/minify are getting exposed. The advantages with the .d.ts and documentation make it feel almost essential to me for library developers to consider TS.

    TypeScript has only made debugging easier, much easier since it catches errors at time of typing unlike the closure compiler. The sole exception is that debugging is a bit slower since I have to transpile instead of just refreshing the browser. But I have tsc set to compile a relatively unminified version of the JS. But if the slowness gets to me, I can just edit the JS output until I solve the issue, and then carry those edits over to the TS. This has never felt like a problem, though maybe his library is significantly more complicated.

    Feel free to ask me anything if you have questions about library design + TS.

  • Ask HN: How to quickly animate sketches and 2D diagrams?
    8 projects | news.ycombinator.com | 10 Mar 2022
    GoJS might work for you: https://gojs.net

    Although the focus of the library is interactivity and not setting up sequences of animation, but that is possible too.

  • It's always been you, Canvas2D
    12 projects | news.ycombinator.com | 4 Mar 2022
    My livelihood has been primarily building a Canvas diagramming library since 2010 (https://gojs.net), if anyone has any questions about 2D Canvas use in the real-world I'd be happy to answer them.

    roundRect is great. Though you don't need 4 arcTo in order to make a rounded rect, you can use bezier instead (we do). Their example is also 1% amusing because they set the `fillStyle` but then call `stroke` (and not `fill`). I'll have to do some performance comparisons, since that's the operative thing for my use case (and any library author).

    text modifiers are very welcome. It's crazy how annoying measuring still is, especially if you want thinks to look perfectly consistent across browsers. Though the chrome dominance is making things easier in one way, I guess.

    context.reset is kinda funny. Most high-performance canvas apps will never want to use it. For that matter you want to set all properties as little as possible, especially setting things like context.font, which are slow even if you're setting it to the same value. (Or it was, I haven't tested that in several years).

    I'm sure most users know this by now, but generally for performance the fewer calls you make to the canvas and the context, the beter. This is even true of transforms: It's faster to make your own Matrix class, do all your own matrix translation, rotation, multiplication, etc, and then make a single call to `context.setTransform`, than it is to call the other context methods.

  • Problem with some gojs gantt model
    1 project | /r/learnjavascript | 6 Jun 2021
    I have some problem with gojs(https://gojs.net/),

Konva

Posts with mentions or reviews of Konva. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-03.
  • How I choose Fabric.js again
    2 projects | dev.to | 3 Sep 2023
    Based on this, I found that some of the libraries are dead and no longer have any support. Only two libraries are still alive and have significant amount of stars on GitHub and downloads on NPM. They are Fabric.js and Konva.js.
  • I'm trying to make a Nextjs canva clone for my company
    1 project | /r/developersIndia | 2 Sep 2023
    I have been assigned a task to create a sort of a canva clone which will have almost same features as canva with authentication, access control and rating system(not in this phase). I need help in finding libraries similar to https://konvajs.org/ which has updated docs and great support for Nextjs.
  • What is the appropriate webpack loader for the 'canvas' package in a Node.js environment?
    2 projects | /r/nextjs | 26 May 2023
    I'm currently using konva (& react-konva) package, to utilize it in Node.js enviroment I also need canvas package installed in. However, when running the code encountering this error:
  • Any Ideas How to Create a Graph Builder UI in React?
    2 projects | /r/reactjs | 24 Jan 2023
    used goJS in one project and konva in another
  • How to make something like this in react? (video in description)
    1 project | /r/webdev | 23 Jan 2023
    All the UI part would make sense to do in React. The actual drawing board you likely would need to implement in canvas or SVG. It still could be a React component, but for actual drawing, you'd probably use something like Konva (https://konvajs.org/).
  • Interactive web-based system map
    1 project | /r/learnpython | 18 Jan 2023
  • React: Comparison of JS Canvas Libraries (Konvajs vs Fabricjs)
    3 projects | dev.to | 13 Nov 2022
    Konvajs - is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.
  • Plug Konva events into RxJS
    1 project | dev.to | 26 Oct 2022
    During the development of a complex interactive UI for the configuration of a digital laboratory ecosystem, we were utilizing the Konva.js library. Konva is a wrapper around the HTML canvas that simplifies working with shapes and interacting with the canvas a lot. Everybody dealing with the plain canvas API knows how much code certain tasks require, especially when user interaction with the drawn shapes is required. The most important features Konva offers to me are
  • which technology or framework is used to create geometry-draggable canvas like this?
    7 projects | /r/Frontend | 23 Oct 2022
    Konva.js - example
  • I made a website that puts your face on your pet, using Cloud Vision and ML. The results are absurd as they are ridiculous
    4 projects | /r/webdev | 22 Oct 2022
    Have a go at petswitch.com if you wish... I made the original Petswitch almost ten years ago, and it's had mild success since then, including CNET writing an article about it and it receiving the prestigious honour of 'most useless website' in week 41 of 2018, as determined by theuselesswebindex.com. Aside from the obvious question of why I even made this, it was getting pretty creaky – I originally built it with PHP and ImageMagick, with the facial features being manually selected via jQuery UI. So I decided to rebuild the whole thing with a full face-to-pet ML pipeline, on static hosting. To get the human face features, the app renders the upload to a temporary img element. This is a handy way to orient the image correctly via the browser, and saves having to deal with EXIF data. It's then resized, rendered to a canvas element, converted to a base64 string, then sent via fetch to Google's Cloud Vision API, which returns landmark coordinates of the face. I use these coordinates to correct any tilt on the face, mask the eyes and mouth via a mask image, then store each masked element as an additional canvas. Detecting pet faces was trickier. Google, Amazon and Microsoft all offer object detection APIs via transfer learning, and the approach is largely the same: you supply a series of images with bounding boxes around the objects you want to detect, either added via a web interface or uploaded via their API. You train a model online from these supplied images, then the service will return the estimated coordinates of any detected objects in an uploaded image. I found a dataset of both cats and dogs that had been labelled with landmarks on their faces, then wrote a script to convert the landmarks into bounding boxes around their eyes and nose, the dimensions based on a simple formula around the distance between the eyes in each image. All in all it's been trained on about 17,000 images of cats and dogs, and the accuracy seems to be pretty good. I was pleased to discover it actually works pretty well on other pets too. I've also added some friendly pets to the Petswitch family for those that don't have a pet on hand. I decided not to use a framework for this, it's written from scratch using a series of ES6 modules – although I did use Konva to handle the manual selection of facial features if the API can't detect a face. I used ParcelJS as my task runner, and my detection APIs are hosted on Firebase Cloud Functions. Let me know if you have any questions, although I can offer no good explanation for why I created this monstrosity...

What are some alternatives?

When comparing GoJS, a JavaScript Library for HTML Diagrams and Konva you can also consider the following projects:

d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

PixiJS - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.

draw.io - draw.io is a JavaScript, client-side editor for general diagramming.

fabric.js - Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser

react-vis - Data Visualization Components

React Konva - React + Canvas = Love. JavaScript library for drawing complex canvas graphics using React.

three.js - JavaScript 3D Library.

react-canvas - High performance <canvas> rendering for React components

p5.js - p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —

joint - A proven SVG-based JavaScript diagramming library powering exceptional UIs

A-Frame - :a: Web framework for building virtual reality experiences.