GoJS, a JavaScript Library for HTML Diagrams
manim
Our great sponsors
GoJS, a JavaScript Library for HTML Diagrams | manim | |
---|---|---|
13 | 151 | |
7,404 | 18,745 | |
0.9% | 5.9% | |
5.8 | 8.9 | |
12 days ago | 3 days ago | |
HTML | Python | |
GNU General Public License v3.0 or later | MIT License |
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
-
Burning money on paid ads for a dev tool – what we've learned
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
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?
used goJS in one project and konva in another
-
Ask HN: What is the most impactful thing you've ever built?
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
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?
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
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?
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
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
I have some problem with gojs(https://gojs.net/),
manim
-
3Blue1Brown: Visualizing Attention, a Transformer's Heart
Also check out community edition: https://www.manim.community
-
This Week In Python
manim – A community-maintained Python framework for creating mathematical animations
- I'm new to try manim and it met some questions TypeError: __init__() got an unexpected keyword argument 'line_join'
-
Old blog of Matt Henderson, beautiful math animations
I recently wanted to make something similar and I completely fell in love with https://www.manim.community/ created by 3B1B.
- Animated AI
-
Text-to-CAD: Risks and Opportunities
https://github.com/gumyr/build123d :
> Build123d is a python-based, parametric, boundary representation (BREP) modeling framework for 2D and 3D CAD. It's built on the Open Cascade geometric kernel and allows for the creation of complex models using a simple and intuitive python syntax. Build123d can be used to create models for 3D printing, CNC machining, laser cutting, and other manufacturing processes. Models can be exported to a wide variety of popular CAD tools such as FreeCAD and SolidWorks.
> Build123d could be considered as an evolution of CadQuery where the somewhat restrictive Fluent API (method chaining) is replaced with stateful context managers* - e.g. with blocks - thus enabling the full python toolbox: for loops, references to objects, object sorting and filtering, etc.*
"Build123d: A Python CAD programming library" (2023) https://news.ycombinator.com/item?id=37576296
BREP: Boundary representation: https://en.wikipedia.org/wiki/Boundary_representation
Manim, Blender, PhysX, o3de, [FEM, CFD, [thermal, fluidic,] engineering]: https://github.com/ManimCommunity/manim/issues/3362
NURBS: Non-Uniform Rational B-Splines: https://en.wikipedia.org/wiki/Non-uniform_rational_B-spline
NURBS for COMPAS: https://github.com/gramaziokohler/compas_nurbs :
> This package is inspired by the NURBS-Python package, however uses a NumPy-based backend for better performance.
> Curve, and Surface are non-uniform non-rational B-Spline geometries (NUBS), RationalCurve, and RationalSurface are non-uniform rational B-Spline Geometries (NURBS). They all built upon the class BSpline. Coordinates have to be in 3D space (x, y, z)
test_curve.py, test_surface.py
compas_rhino, compas_blender
Blender docs > Modeling Surfaces; NURBs implementation, limits, challenges:
-
Ask HN: What would you show an interviewer if they asked you for code samples?
A template language that I wrote for generating HTML. Meant to be included as a C++ library. https://github.com/Ghoti-io/Tang
Plenty of other C++ code of mine is on Github (such as a bunch of utility stuff, a thread pool, and a HTTP server that I'm writing from scratch), even though I would only call myself an intermediate C++ programmer. I just happen to like the language.
Or, if I had to throw other stuff into the mix, a fairly recent patch to Manim (Python) that got accepted (https://github.com/ManimCommunity/manim/pull/3155).
If I were really pressed, I would dig up a lot of my Drupal (PHP) stuff that I did years ago.
-
What are you rewriting in rust?
I would love to have this https://github.com/manimCommunity/manim written in Rust. There have been previous attempts (bevy_manim and another one using nannou) but all of them are outdated
- Ask HN: What packages can be used to create interactive mathematics simulations?
-
Manim Slides v4.14 - Slides to PDF conversion, JOSE paper, automatic detection for background color and resolution, and more
NOTE: Manim Slides a Python tool that extends Manim, a math animation engine developed by the very popular Youtube 3Blue1Brown. In short, Manim Slides offers the possibility to present a sequence of animations in a PowerPoint-like manner, using its own graphical interface, with RevealJS for HTML embedding, or with PowerPoint.
What are some alternatives?
d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
Javis.jl - Julia Animations and Visualizations
draw.io - draw.io is a JavaScript, client-side editor for general diagramming.
processing - Source code for the Processing Core and Development Environment (PDE)
react-vis - Data Visualization Components
cheatsheets - Official Matplotlib cheat sheets
three.js - JavaScript 3D Library.
python_turtle_art - Using Python Turtle module to draw this masterpiece - a combination of 2D geometry, Pop Art and Coding
fabric.js - Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
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
geogebra - GeoGebra apps (mirror)