finds.dev← search

// the find

alyssaxuu/flowy

★ 12,049 · JavaScript · MIT · updated Jul 2024

The minimal javascript library to create flowcharts ✨

Flowy is a vanilla JS library for building drag-and-drop flowchart UIs in the browser — no dependencies, ~1000 lines of code. It's aimed at developers who want to add a Zapier-style visual workflow builder to a web app without pulling in a full graph library.

Zero dependencies and a tiny footprint make it trivially embeddable. The callback API (onSnap, onRearrange) lets you intercept and cancel connections, which is the one thing you actually need to build conditional flow logic. Mobile support with touch events works out of the box. The output format is a flat array of {id, parent} pairs — simple enough to serialize and store without any custom serialization layer.

Last commit was mid-2024 and the issues tracker has 100+ open ones including an npm package that never shipped — this is effectively unmaintained. The library only supports trees (one parent per node), not arbitrary DAGs, so any workflow with converging branches is out. The import method injects raw HTML with no sanitization and the README documents this as a known XSS hole — not acceptable if user-supplied data touches that path. No TypeScript types and no module format (no ESM, no CommonJS) means you're stuck with a script tag and a global.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →