DEV Community

flisk
flisk

Posted on

XKCD Dependency Meme Generator: Draw Your Repo's Tower of Tiny Dependencies

TL;DR: paste a GitHub repo into Gardener and it draws a hand-drawn tower of everything the project stands on, with an arrow to the one part holding on by a thread. Same repo, same tower, no sign-up.

If you searched xkcd dependency meme generator, you know the picture: a huge tower of blocks resting on one tiny block someone has maintained alone since 2003. This tool builds that picture from a real repo.

Make one

  1. Open gardener.flisk.si.
  2. Paste github.com/owner/repo (or click an example).
  3. Press Grow tower. It takes up to about 30 seconds.
  4. Copy the snippet from the repo page to the top of your README.

The tower for flisk-sh/flisk comes back with labels such as "all of local", "15 generated files" and "AGENTS.md", each taken from the repo.

Gardener home: paste a GitHub repo and grow a dependency tower

How it avoids making things up

repo --(code)--> facts --(Wolf)--> labels JSON --(code: checked)--> SVG
Enter fullscreen mode Exit fullscreen mode
  • Facts come from code, not a model: file tree, tests, patches, generated files, native code, workspace groups, pinned versions, README.
  • A model writes only the labels, and the answer is checked. A number that is not in the facts is dropped. A drawing the facts do not back is dropped: a shark needs a database in the README, tape needs a patches/ folder.
  • The drawing is pure code and seeded, so the same repo always wobbles the same way.

Use it in a README

A bare repo.svg that is not cached yet shows a "growing" placeholder at once and grows in the background. So open the repo page first, then copy the snippet.

Limits

  • A new tower takes 15 to 25 seconds of model time, and it is capped per day and per visitor. Over a cap, the tower is still drawn from facts only, and the page says so.
  • Public repos only. GitHub allows 60 API calls an hour without a token, and each new tower needs about 12.
  • It is a joke with real numbers underneath, not a security audit.

Source: github.com/flisk-sh/gardener.

Top comments (0)