Pele – Mermaid diagrams as themeable SVG
Posted by dchest 4 days ago
Comments
Comment by lukeify 4 days ago
Styling seems like a trivial problem by comparison.
Comment by kepano 4 days ago
The playground also has a Compare mode https://pele.run/playground
Comment by DenisM 4 days ago
Have you given much thought to diffing diagrams? The source can be version controlled and a source diff can be seen, but a visual diff would be amazing and easily sway me from writing prose to writing diagrams.
Comment by nkmnz 4 days ago
Comment by WhrRTheBaboons 3 days ago
Edit: So is #7 (and almost #8), #9, 10, 11, 12 are identical as well
Comment by krat0sprakhar 3 days ago
Comment by CrimsonRain 4 days ago
Comment by blazarquasar 4 days ago
> Mermaid.js has transitioned to "mermaid.ai" and is losing its original vision. Take a look at their new site.
> The latest version of Mermaid (12.1) ships with yet another layout engine (three now), and has a questionable safety record (see CVEs). In Obsidian 1.13 we had to introduce a new toggle/warning because of potential unsafe Mermaid diagrams.
Comment by kingstonTime 4 days ago
Comment by ferroman 4 days ago
Comment by tptacek 4 days ago
Comment by mcapodici 4 days ago
Comment by alfiedotwtf 4 days ago
Comment by wongarsu 4 days ago
Good layout is a lot more like writing, in that you have to think about how the intended recipient will perceive and what you want them to notice in which order, and how to make it easy to follow the various relationships
Comment by thegagne 4 days ago
Comment by jhoechtl 4 days ago
Comment by jeffreygoesto 4 days ago
Comment by kylepomykala 4 days ago
Comment by jd3 4 days ago
Comment by giancarlostoro 4 days ago
Comment by m-p-3 3 days ago
Comment by subfocal 3 days ago
Comment by oliveralbertini 4 days ago
Comment by Imustaskforhelp 4 days ago
I tried to find the source code of it but I was unable in finding so
Edit: found it, https://github.com/obsidianmd/pele
Also folks, this is a good reminder to please have a github icon on the top of the page to easily show git/github links if the app is open source, also helps in the fact that I can star your projects and bookmark them more easily :-D
Comment by blktiger 4 days ago
Comment by burgeonlab 4 days ago
[1]: https://d2lang.com/
Comment by whimsicalism 3 days ago
Comment by skydhash 3 days ago
Why not
tech that approaches new change with religious recklessness rather than critical thinking will lose out because of users that are tired of regressions and breakages.Comment by montroser 3 days ago
Adoption of coding agents is motivated by understanding and productivity. That's not traditionally a religious aspiration.
In software engineering, and in so many other settings too, LLMs can act as a strong catalyst, or strong damper for curiosity and critical thinking. The same way that when you used to find a thread on StackOverflow about the exact problem you were facing, you could either copy/paste the solution and forge ahead, or else use those breadcrumbs to research and more deeply understand the problem and its prospective solutions -- you can drive the model to the same effect.
If you are looking to think critically, it can be an absolutely fantastic partner in that endeavor. If you are looking to slap together a solution for a problem you don't care to understand, it can do that too. How you want to use it is up to you. And how other people use it can and will be everywhere across that spectrum.
Comment by skydhash 3 days ago
Joining “thinking critically” and a tool that has no truth basis is concerning. You may as well put numbers inside a raffle box and just take one out instead of using a calculator.
There’s no definition of correct that LLM tooling enforces, so how can it be a partner in thinking?
That’s the main issue with slop coding. It would be way more useful to send pseudocode out if you can. Logical semantic is always independent of programming syntax. No need to generate code.
Comment by montroser 3 days ago
LLMs can have as much truth basis as humans have. We humans have fallible memory, all manner of cognitive biases, varying degrees of deceptive tendencies, misunderstandings, heartfelt beliefs in things we cannot prove...
And nonetheless, looking at art, reading books, talking to children, interacting with nature -- can all prompt us to question our previous assumptions and productively challenge ideas we might have otherwise thought settled. Seeing these different perspectives, however grounded or not they may be in truth and physics, is part of critical thinking.
A calculator will only get you so far. If you're looking for LLMs to tell you the "correct" answer, then you may be disappointed. But if you want leads to follow, ideas to consider, pointers to existing research, experiments to run, then it can be very helpful, similarly to talking to a very knowledgeable colleague. In the end, so far at least, it's still up to the human to make good decisions, based on evidence.
Comment by gonzalohm 3 days ago
Comment by Ancapistani 4 days ago
This, in and of itself, is sufficient reason for me to switch, even if it were slower than Mermaid.js.
I’ve not even made it through the list yet and I’m sold.
Comment by bilibali 3 days ago
I use a build script for my static website that renders markdown files into HTML files and swaps out any mermaid codeblocks with rendered SVGs. I used mermaidjs for this but it is very heavy for this purpose (needs an entire chromium instance for the rendering).
This seemed like a perfect fit for my use case and I already swapped it in. I noticed that the layouts were not 1 to 1, but to my pleasant surprise I actually liked the ones Pele renders better than mermaidjs.
Comment by dkga 4 days ago
Comment by mxuribe 3 days ago
Comment by 9dev 4 days ago
Comment by kepano 2 days ago
Comment by neomantra 4 days ago
Much of the work uses SVG as an intermediary so this Pele pattern works great. OP is a TypeScript project, seems great for that ecosystem.
Searching found this go-mermaid library [1] that operates similarly with SVG its target. We have a Golang TUI picture/SVG widget and a Golang WASM/browser embedder, so I just forked it and had an LLM add a live Mermaid/SVG demo using them [2]. The demo is intended for go-mermaid so it uses its rasterizer, composited to our widget.
(took <15 minutes since I had worked similarly just days ago and had the components at the ready, plus could point at Pele; these LLMs are ridiculous at forging from patterns)
Cool thing is that same visual experience can be had in a terminal if it supports Kitty graphics protocol.
Comment by nickmain 4 days ago
Comment by falsaberN1 4 days ago
Comment by dont__panic 4 days ago
It still boggles my mind that mermaid's devs think you need an entire freakin' browser to render an SVG. Sometimes I think people need to be reminded of the fundamentals.
Comment by invokestatic 4 days ago
Comment by vb-startr 4 days ago
Comment by druvisc 4 days ago
Comment by hmokiguess 4 days ago
Comment by apodik 4 days ago
Comment by mixmastamyk 4 days ago
Comment by mtros 4 days ago
Comment by aslakhellesoy 4 days ago
Comment by Duke64 4 days ago
Comment by BHSPitMonkey 3 days ago
Comment by haburka 4 days ago
Comment by mlhpdx 3 days ago
Comment by syngrog66 4 days ago
Comment by kinduff 4 days ago
Comment by kepano 4 days ago
Comment by kinduff 4 days ago
Comment by kepano 4 days ago
Comment by shellerik 4 days ago
Comment by sog 4 days ago
Comment by WorseIsBetter 4 days ago
Comment by notaproton 4 days ago
Comment by wolframhempel 4 days ago
Comment by dbg31415 4 days ago