2024May

Mysterious /sink route in ui.shadcn.com

I found a mysterious sink folder in the shadcn-ui/ui.

All these folders in the above image are pages that can be navigated to via the header on https://ui.shadcn.com/ website. However, I could not find the header link that points to /sink in the header

Build shadcn-ui/ui from scratch.

I tested to see if anything loads when I visit /sink and to my surprise, there are some example components loaded.

Let’s find out it’s purpose.

I searched for any existing issues on shadcn-ui/ui Github and found 2 issues and 1 pull request reported:

  1. https://github.com/shadcn-ui/ui/pull/1446

  2. https://github.com/shadcn-ui/ui/issues/3533

  3. https://github.com/shadcn-ui/ui/issues/441

I could not get much context from 1, 2 listed above but #441 provides some meaningful context.

The purpose of /sink route might be to provide a showcase page with preview for improved usability. You can read more in the issue reported

Conclusion:

/sink in shadcn-ui/ui is not so mysterious once I found out the existing pull requests around it. It might be a WIP and its purpose is to add a comprehensive component showcase page with preview for improved usability.

About me:

Hey, my name is Ramu Narasinga. I study large open-source projects and create content about their codebase architecture and best practices, sharing it through articles, videos.

I am open to work on interesting projects. Send me an email at ramu.narasinga@gmail.com

My Github —  https://github.com/ramu-narasinga

My website —  https://ramunarasinga.com

My Youtube channel —  https://www.youtube.com/@ramu-narasinga

Learning platform —  https://thinkthroo.com

Codebase Architecture —  https://app.thinkthroo.com/architecture

Best practices —  https://app.thinkthroo.com/best-practices

Production-grade projects —  https://app.thinkthroo.com/production-grade-projects

We use cookies
We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking "Accept", you agree to our use of cookies.

Learn more