Wow, this is really, really great. Congratulations on an excellent offering and piece of tech!
adityamwagh•Jun 23, 2026
Hey! I've always wanted something like this! Thanks for building this!
GL26•Jun 23, 2026
All STEM students and researches from the world thank you
Littice•Jun 23, 2026
The killer feature for me is not drawing TikZ visually, but being able to touch old TikZ without turning the source into generated-looking soup.
DominikPeters•Jun 23, 2026
Exactly, I wanted to avoid that. In contrast, if you open an SVG in (for example) Inkscape and make a minimal change and save, the resulting file has little to do with the original.
__mharrison__•Jun 23, 2026
This is very cool, but I'm going to say the inevitable...
How hard would it be to support cetz? I'm not touching LaTeX if I can avoid it, but I'm using Typst all the time.
master-lincoln•Jun 23, 2026
As a student I really wanted something like this. Thanks for making it open source. My theoretical computer science prof happened to be Till Tantau the inventor of TikZ. An awesome communicator too.
DominikPeters•Jun 23, 2026
Schleswig-Holsteiners are everywhere :) Till Tantau also started the beamer package for making LaTeX presentations. Both beamer and tikz are very important contributions to science communication.
hosteur•Jun 23, 2026
Wow. I would have loved something like this when I was studying in University.
dima-quant•Jun 23, 2026
This is great, nice concept! Good use of coding agents. Now I can make diagrams much faster.
quantummagic•Jun 23, 2026
Great job! Thank you for making it open source.
At some point the people who seethe with hate for AI, and claim it's all hallucinations and illegitimate hype, are going to have to admit they were wrong. Projects like this are the proof staring them right in the face, if they care to look.
Barbing•Jun 23, 2026
They’ve updated their criticisms since - bottom of career ladder disruption, skill atrophy.
(Not on HN but I do still see some folks who last tested LLMs before Nov ‘25, those folks might still be mostly out of touch.)
david_2107•Jun 23, 2026
That's awesome! Long overdue.
whatever1•Jun 23, 2026
OMG! Psychiatrists are going to lose all of their graduate customers!
The world thanks you.
delta_p_delta_x•Jun 23, 2026
This is superb. Will you consider adding support for pgfplots[1]? When I was a student I was long considering writing a native application for real-time TikZing.
I think pgfplots should in principle be possible. I've postponed it thus far because pgfplots is GPL licensed, while the editor is MIT licensed, so I would need to distribute pgfplots support as a separate add-on. But in due course, putting in add-on infrastructure could make sense, because it would also allow adding support for stuff like tikzcd and CircuiTikZ (or tikzpingus!).
emil-lp•Jun 23, 2026
Here's what I would need: the ability to position five nodes in a circular fashion, so that they are evenly spaced.
DominikPeters•Jun 23, 2026
Intriguing thought. Of course by writing code it can be done
\foreach \i in {1,...,5} {
\node[circle, draw] (n\i) at ({90 - 72*(\i-1)}:1cm) {$\i$};
}
but I'm not sure how to expose that as a UI in a nice way (maybe: if something uses polar coordinates and the user holds shift, then during drag the radius stays fixed, and I nudge towards even angular spacing + multiples of 15 degrees?)
Looks really nice. You might consider adding some presets to make it easier to get started, like some common neural net architectures and other use cases for TikZ.
DominikPeters•Jun 23, 2026
Good idea. There is File > Open Example, but it could be extended for sure. On desktop you can even directly open an arXiv paper!
dvorka•Jun 23, 2026
I needed exactly this for years excellent work!
cubefox•Jun 23, 2026
That's cool. I guess it doesn't support TikZ' relative positioning (left of etc) because WYSIWYG features like drag-and-drop require absolute positioning?
DominikPeters•Jun 23, 2026
It does support editing it if relative positioning is used in the code, i.e. if you drag the object it will continue being relatively positioned. But if you add new elements with the various tools, they will be absolutely positioned (not sure what would be a good UI for switching an element to relative positioning) unless you edit the source. You can try with
\begin{tikzpicture}
\node[draw] (A) at (0,0) {A};
\node[draw, right of=A] (B) {B};
\end{tikzpicture}
delta_p_delta_x•Jun 23, 2026
> not sure what would be a good UI for switching an element to relative positioning
1. Right-click on an existing object, offer drop-down context menu.
2. Menu item `Position relative to...`.
3. The cursor now selects _other_ objects in the field.
a. If there is no other object, then offer to create a new label-less node with (x,y); default to the origin.
b. Once an object is selected, then offer `right of`, `left of`, `north of`, `south of`, `southeast of`, etc as a drop-down menu, and a field for radial displacement.
i. As a stretch goal, offer a `Custom position...` button to specify an (x, y) displacement, or a polar angle and radial displacement. These three options (fixed offsets, Cartesian, polar) could also be tabs in the resultant menu from (b) above.
You could use this same UI/UX for `anchor`, too.
srean•Jun 23, 2026
Is their anyone here old enough to remember Xfig ?
I was quite proud of the hours of work I had put in to configure it just so, with the 3d look and all.
bedstefar•Jun 23, 2026
I do. I used it in the late noughts for my cryptology BSc because I was too lazy/busy to learn TikZ proper
srean•Jun 23, 2026
Tikz by hand for busy diagrams can be a whole lot of work.
What I loved about Xfig was that one could use latex and latex fonts in the diagrams.
mcswell•Jun 23, 2026
I'm running Linux Mint (xfce version), and I installed the .deb version (TikZ.Editor_0.4.0_amd64.deb). It's very odd...for example, when I open it or do File/New, many (but not all) of the grid cells are rectangles, not squares. Am I doing something wrong, like installing the wrong version? Or maybe misinterpreting what the faint grey lines are?
DominikPeters•Jun 23, 2026
Yeah that's odd, the grid should be square. Is the web version looking correct in the browser? Feel free to paste some screenshots into https://github.com/DominikPeters/tikz-editor/issues and I can look into it.
cckolon•Jun 23, 2026
This is so cool. I would have loved this in college.
djmips•Jun 23, 2026
"TikZ ist kein Zeichenprogramm" (German for "TikZ is not a drawing program"). :-)
DominikPeters•Jun 23, 2026
An explanation for the name from the TikZ docs:
> TikZ’s name is intended to warn people that TikZ is not a program that you can use to draw graphics with your mouse or tablet. Rather, it is more like a “graphics language”.
While making the app I was worried that I was going against the TikZ philosophy. Maybe I should have named it "TikZ ist doch ein Zeichenprogramm" (TideZ)..
meghanto•Jun 23, 2026
Are you open to people repurposing this app as a plugin to larger apps like obsidian?
DominikPeters•Jun 23, 2026
Generally yes! It is permissively licensed. I originally considered writing this app as a VS Code extension (because most app ideas that include a source editor are more simply done as an extension) but then decided that I wanted to have more control over the source view.
lopsotronic•Jun 23, 2026
Ah, I love CircuitiTikZ. Only way to do simple text-based circuit diagrams.
Some years ago I wired it up with `asciidoctor-diagram` so we could have simple circuits in our Asciidoc maintenance manuals. A very nice complement to the already awesome WireViz (https://github.com/wireviz/WireViz)
23 Comments
How hard would it be to support cetz? I'm not touching LaTeX if I can avoid it, but I'm using Typst all the time.
At some point the people who seethe with hate for AI, and claim it's all hallucinations and illegitimate hype, are going to have to admit they were wrong. Projects like this are the proof staring them right in the face, if they care to look.
(Not on HN but I do still see some folks who last tested LLMs before Nov ‘25, those folks might still be mostly out of touch.)
The world thanks you.
[1]: https://ctan.org/pkg/pgfplots?lang=en
https://www.lyx.org/
I was quite proud of the hours of work I had put in to configure it just so, with the 3d look and all.
What I loved about Xfig was that one could use latex and latex fonts in the diagrams.
> TikZ’s name is intended to warn people that TikZ is not a program that you can use to draw graphics with your mouse or tablet. Rather, it is more like a “graphics language”.
While making the app I was worried that I was going against the TikZ philosophy. Maybe I should have named it "TikZ ist doch ein Zeichenprogramm" (TideZ)..
https://ctan.org/pkg/circuitikz?lang=en
Some years ago I wired it up with `asciidoctor-diagram` so we could have simple circuits in our Asciidoc maintenance manuals. A very nice complement to the already awesome WireViz (https://github.com/wireviz/WireViz)