View Project
So I've been using shadcn for past 1-2 years at this point but, it can't be denied that it comes with friction. One of such friction that I encountered was in their cli. It's very tedious to just add components, you have to go like shadcn@latest add button card and whatnot every time.
And basically that's the reason compadcn exists, it's a wrapper over shadcn-cli, in which you don't have to write the component, you can just use interactive menus to access everything.
It comes with 4 commands as of now
`add` - which allows you to add components just as shadcn-cli but with an interactive menu
`lint` - a command that is for people who up until this point used `--all` flag to install every component just so they can avoid friction. It lists all the unused components in your project and allows you to remove them
`remove` - something which I find lovely to use as not only it delete the component file, but also removes it's import from every file and gives you the option to delete it's dependency too without any effort.
`preset` - this is a command that consists of 5 sub commands to manage preset. Presets are the list of components that you can install with just one line. For example you have 12 components that you install every time you begin a project, instead of doing `shadcn@latest add ..... ` you can just create a preset out of it and do `preset install preset_name` and voila all the components installed in 1 swoop
By default compadcn comes with 9 built presets and you can create your custom ones too.
This project was built under a week so bugs are expected so if you find any kindly report them on github . If you liked the project your stars over there would also be appreciated :)
I also prepared this launch day video that I uploaded over youtube, it also includes demo so you can also visit that if you find any issues.
Built with