frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I taught Claude Code to draw diagrams – the XML pitfalls were brutal

https://github.com/ekusiadadus/draw-mcp
1•ekusiadadus•1h ago

Comments

gonc_cc•1h ago
This looks useful. I’m curious how the diagram generation handles layout constraints in draw.io, especially for arrow routing and CJK text sizing. Is most of this heuristic-based or driven by draw.io’s internal layout rules?
ekusiadadus•1h ago

  Great question! The current implementation is relatively straightforward:

  Layout: The diagram generation uses fixed coordinate positioning (x, y values) calculated heuristically based on node indices and predefined
  spacing. For example, flowcharts use a simple vertical layout with consistent spacing. There's no automatic layout engine - it's manual
  coordinate calculation.

  Arrow routing: Currently uses simple direct connections between source and target nodes. draw.io handles the actual path rendering, but we don't
   leverage draw.io's advanced edge routing algorithms (orthogonal routing, etc.) - arrows just connect the specified entry/exit points.

  CJK text sizing: This is actually an area that could use improvement. The current implementation doesn't dynamically calculate text width for
  CJK characters. Node widths are set to fixed values (e.g., 120px for flowchart nodes), which works reasonably for short labels but may clip
  longer CJK text. draw.io does handle CJK rendering internally, but we're not pre-measuring text to adjust geometry.

  So to directly answer: it's mostly heuristic-based with fixed layouts, not leveraging draw.io's internal layout rules. The .drawio XML format
  gives us the geometry, and draw.io renders it. Future improvements could include:
  - Auto-layout algorithms (dagre.js style)
  - Text measurement for proper sizing
  - Smarter edge routing

  Thanks for the interest!
vunderba•34m ago
Wow that does sound like a pain. This might be a bit of a long shot, but depending on the requested diagram, you might be able to deterministically figure out whether it could be adequately represented as Mermaid UML and then import it into draw.io, since it has a built-in Mermaid importer.

I mention this because in my experience Claude is really good at one‑shotting Mermaid UML diagrams.

Ground Effect

https://en.wikipedia.org/wiki/Ground_effect_(cars)
1•simonebrunozzi•46s ago•0 comments

Qjp – turn any JSON file into a quick TUI menu

https://github.com/plainas/qjp
1•todsacerdoti•4m ago•0 comments

DailyBoard – With a Unique Queue Logic

https://dailyboard.xyz/
1•niyoseris•4m ago•1 comments

Ask HN: How Do You Prepare for Research Internship Interviews?

1•earaujo•7m ago•0 comments

IWannaHub

https://www.iwannahub.com
1•hhdyhaha•10m ago•0 comments

Wol AI – The AI workspace that gets shit done

https://wolai.lovable.app/
1•WOL_AI•16m ago•1 comments

Show HN: Tuby.dev – Indexing Rails videos via Vision AI code analysis

https://tuby.dev/
1•alanalvestech•18m ago•0 comments

Where Can You Find

http://info.bossgoodemo.com/where-can-you-find-an-electrical-lift-1.html
1•alicebossgoo•21m ago•1 comments

Book Review: Algorithms of Armageddon: Impact of AI on Future Wars

https://ssi.armywarcollege.edu/SSI-Media/Recent-Publications/Article/4311743/book-review-algorith...
1•KnuthIsGod•29m ago•0 comments

Frog gut bacterium eliminates cancer tumors in mice with a single dose

https://newatlas.com/cancer/frog-reptile-microbes-cancer/
3•0in•32m ago•0 comments

Show HN: QR Code API – Because existing solutions are overpriced

https://www.qrcodeapi.io
1•malachi_dev•32m ago•1 comments

A Petabyte in the Palm of My Hand – Kioxia Factory Tour [video]

https://www.youtube.com/watch?v=ivLvsTnp9fI
1•latchkey•35m ago•0 comments

Negotiations over US-UK tech deal still live

https://www.bbc.com/news/articles/c79x54dprngo
1•1659447091•41m ago•0 comments

Mozilla's new CEO: Firefox will become an "AI browser"

https://www.osnews.com/story/144027/mozillas-new-ceo-firefox-will-become-an-ai-browser/
3•XiS•41m ago•2 comments

The guy inventing a $1000 human-ish robot

https://sfalexandria.com/
1•aadillpickle•46m ago•0 comments

One Bottle – everyone gets one upload before 2026

1•Peterrrrpark•50m ago•0 comments

A Note about Freeware (2003)

https://arachnoid.com/freeware/index.html
1•Tomte•53m ago•0 comments

Find your dream job at a company that cares

https://calmcompanies.club/
1•adrianthedev•54m ago•0 comments

A New Philosophy of Defense (1986)

https://www.nybooks.com/articles/1986/02/13/a-new-philosophy-of-defense/
1•Tomte•54m ago•1 comments

App Feedback

https://versionary.app
1•trubalca•56m ago•2 comments

China Chipmaker MetaX Jumps 755% After Oversubscribed IPO

https://www.bloomberg.com/news/articles/2025-12-16/china-chipmaker-metax-debuts-after-wildly-over...
1•KnuthIsGod•56m ago•0 comments

Open source - phone agent automation

https://github.com/zai-org/Open-AutoGLM
2•impact_sy•57m ago•0 comments

When Red in the US Is Green in India – The AQI Disparity Problem

https://www.airgradient.com/blog/aqi-disparity-problem/
1•ahaucnx•59m ago•0 comments

Show HN: FitSaver – A small app I built to turn fitness content into habits

https://lavender-staple-090021.framer.app/
1•chetansorted•59m ago•0 comments

America's collapsing consumption is the disenshittification opportunity

https://pluralistic.net/2025/12/16/k-shaped-recovery/#disenshittification-nations
3•xeonmc•1h ago•1 comments

Judge: Louisiana law requiring age verification on social media unconstitutional

https://www.nola.com/news/courts/louisiana-social-media-age-verification-unconstitutional/article...
1•akersten•1h ago•0 comments

GitHub – The Early Days

https://web.archive.org/web/20080514210148/http://github.com/
1•ratatougi•1h ago•0 comments

Why "negative vectors" can't delete data in FAISS – but weighted kernels can

https://github.com/nikitph/bloomin/tree/master/negative-vector-experiment
1•loaderchips•1h ago•0 comments

Create human-quality content at scale that avoids AI content penalties

https://humantext.pro
1•felayplay•1h ago•1 comments

US Government launches 'Tech Force' to hire AI talent

https://www.cnn.com/2025/12/15/tech/government-tech-force-ai
1•mgh2•1h ago•2 comments