r/javascript • • 7d ago

VinUI: copy-in UI components for HTML, React, Vue and Svelte, with a CLI and an upstream diff command

https://github.com/devvinish/vin-ui
5 Upvotes

4 comments sorted by

2

u/Discordbothost 6d ago

Local edits can make a two-way diff noisy because it mixes your changes with upstream ones. I'd show a worked example where someone renames a prop locally and upstream fixes keyboard focus. Keeping the originally copied version as the common base would let the CLI show the focus fix on its own.

0

u/vinishkapoor 7d ago

Instead of a runtime npm package, a CLI copies plain source files into your project:

npx /ui init
npx /ui add <component>
npx u/vinish/ui diff   # see upstream changes since you copied

You own the code, and diff lets you pull in fixes only when you want them. It has 63 components, 13 page blocks, 16 SVG charts and eight styles driven by CSS variables. MIT licensed. Docs: https://vinish.dev/ui

1

u/Ronin-s_Spirit 7d ago

Motherfucker, that's called "vendoring".