frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

https://tikz.dev/editor/
117•DominikPeters•1h ago
Hi all! TikZ is a widely-used LaTeX package for drawing figures in papers. It uses commands like \draw[->] (0,0) -- (1,2); to draw lines, shapes, text, etc. Academics usually code up their figures by hand, so there is lots of twiddling around with the coordinates and recompiling until things look nice. I guess it’s a bit like SVG, but it’s more code than markup, for example it has loops with \foreach.

I built an open-source WYSIWYG TikZ editor (available for web and desktop) that allows you to edit your TikZ source code visually by dragging and resizing elements. It simultaneously shows the source code and the rendered figure, and lets you edit either one while the two views stay in sync. I’m not aware of any other editors that are simultaneously source editors and WYSIWYG (even for editing SVG or HTML), and I’m quite pleased with how well the combination works.

The way the app is implemented is by parsing the TikZ code, and at all times keeping track of the exact source location of each object. Thereby, when a user drags an element to a new position, the app can override just the numbers in the coordinate without changing anything else in the code (such as line breaks or indentation).

This approach essentially required reimplementing a large fraction of TikZ, which is the kind of task that no human would ever want to do. I think building software that doesn’t exist yet because it would be impossibly tedious to code up is one of the great new possibilities thanks to coding agents, and it’s worth brainstorming for other examples. (This app was built almost entirely by Codex.)

Implementing the app came with lots of fun side quests, including building converters from SVG / pptx / ipe to TikZ, re-implementing the LaTeX hyphenation and line-breaking algorithm to support multi-line nodes, and making a color picker that uses the red!20!black color mixing notation used in LaTeX papers.

Comments

k33n•1h ago
Wow, this is really, really great. Congratulations on an excellent offering and piece of tech!
adityamwagh•1h ago
Hey! I've always wanted something like this! Thanks for building this!
GL26•1h ago
All STEM students and researches from the world thank you
Littice•57m ago
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•55m ago
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__•56m ago
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•53m ago
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•29m ago
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•51m ago
Wow. I would have loved something like this when I was studying in University.
dima-quant•49m ago
This is great, nice concept! Good use of coding agents. Now I can make diagrams much faster.
quantummagic•48m ago
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•39m ago
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•47m ago
That's awesome! Long overdue.
whatever1•46m ago
OMG! Psychiatrists are going to lose all of their graduate customers!

The world thanks you.

delta_p_delta_x•44m ago
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.

[1]: https://ctan.org/pkg/pgfplots?lang=en

DominikPeters•26m ago
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•41m ago
Here's what I would need: the ability to position five nodes in a circular fashion, so that they are evenly spaced.
DominikPeters•35m ago
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?)
e2e8•23m ago
That sounds like the array modifier in Blender
j2kun•36m ago
Neat! I also enjoyed https://q.uiver.app/ by https://github.com/varkor which is a bit more specialized.
DominikPeters•21m ago
Yes, there are several editors for more specialized things. Other nice examples: https://tikzit.github.io/ and https://www.circuit2tikz.tf.fau.de/designer/ and https://tikzcd.yichuanshen.de/
sorenjan•33m ago
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•32m ago
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•22m ago
I needed exactly this for years excellent work!

Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

https://tikz.dev/editor/
122•DominikPeters•1h ago•24 comments

Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM

https://github.com/ilbertt/bun-sqlgen
25•ilbert•1h ago•11 comments

Show HN: Treedocs: Documentation that automatically checks for staleness

https://dandylyons.github.io/treedocs/
9•DandyLyons•1h ago•4 comments

Show HN: Neural Particle Automata

https://selforg-npa.github.io/
63•esychology•7h ago•14 comments

Show HN: Shumai – open-source Frame.io alternative for creative work

https://github.com/shumaiOne/shumai
37•Yiling-J•6h ago•2 comments

Show HN: Oak – Git alternative designed for agents

https://oak.space/oak/oak
204•zdgeier•1d ago•177 comments

Show HN: A pure ARM64 Assembly web server, now on Linux with CGI for no reason

https://github.com/imtomt/ymawky/tree/linux
46•imtomt•11h ago•17 comments

Show HN: Transformer Primitives – A visual explainer you can send to anyone

https://understandgpt.xyz/
4•arzt•2h ago•0 comments

Show HN: Got sick of ads, so I made my own logic puzzle site

https://puzzlelair.com/
232•HaxleRose•1d ago•142 comments

Show HN: AGI will not come from better models, it will come from meta harness

https://github.com/the-open-engine/zeroshot
2•covibes•2h ago•2 comments

Show HN: FuckUI - AI hates your UI. Feed it the web text first

https://fuckui.com
3•keepamovin•2h ago•1 comments

Show HN: perl-lsp – annotation free static analysis for Perl

https://github.com/tree-sitter-perl/perl-lsp
3•rabbiveesh•2h ago•0 comments

Show HN: Parlel – run Redis, Postgres, S3 and SaaS APIs in ~1 MB each

https://github.com/dksingh1997/parlel
3•Dheerajiitr•3h ago•0 comments

Show HN: I built an online patch backup tool for vintage 80s synths

https://knob.monster/
4•halfradaition•3h ago•0 comments

Show HN: CleverCrow: give tokens to your favorite projects

https://clevercrow.io
56•zhubert•1d ago•78 comments

Show HN: Cachet – A drop-in semantic cache for LLM APIs, 100% local, in Rust

https://github.com/abhix2112/Cachet
4•Abhi_2112•3h ago•0 comments

Show HN: Pagecast – Publish Markdown/HTML Reports to Cloudflare Pages

https://github.com/Amal-David/pagecast
51•amaldavid•4d ago•14 comments

Show HN: Criterion Closet as a website – pull any of 1,247 films off the shelf

https://the-criterion-closet.vercel.app
186•olievans•3d ago•54 comments

Show HN: Aharness – Enforce coding-agent workflows as state machines on Codex

https://github.com/Alfredvc/aharness
4•alfredvc•5h ago•2 comments

Show HN: Recall – Local project memory for Claude Code

https://github.com/raiyanyahya/recall
134•mateenah•1d ago•83 comments

Show HN: OpenTerm – A tiny, fast SSH client (no login, no cloud, free)

https://github.com/zhangshuo1991/openterm
3•zhangshuo1991•6h ago•0 comments

SHOW HN: Huskmail - A disposable email with private inboxes and trial library

https://huskmail.xyz
4•draggodra•7h ago•3 comments

Show HN: Selector Forge – browser extension for AI-generated resilient selectors

https://github.com/Intuned/selector-forge
34•ahmadilaiwi•1d ago•2 comments

Show HN: HN Game Stories – mini-documentary of games that hit the front page

https://video.intellios.ai
15•coolwulf•2d ago•2 comments

Show HN: Teach your kids perfect pitch

https://github.com/paytonjjones/bsharp
207•paytonjjones•2d ago•145 comments

Show HN: Exeria Charts – A native, high-performance financial charting library

https://github.com/efixdata/exeria-charts
3•katomek•8h ago•0 comments

Show HN: StartupWiki – A Free Alternative to Crunchbase

https://startupwiki.tech/
231•shpran•3d ago•69 comments

Show HN: TownSquare, a tiny presence layer for websites

https://townsquare.cauenapier.com/
268•cauenapier•3d ago•165 comments

Show HN: Make PDFs look scanned (CLI or in the browser via WASM)

https://github.com/overflowy/make-look-scanned
152•overflowy•2d ago•65 comments

Show HN: WSL Dashboard – an open-source,low-memory, high-performance GUI manager

https://github.com/owu/wsl-dashboard
7•GuardCalf•11h ago•0 comments