DEV Community

Cover image for Mysterious /sink route in ui.shadcn.com
Ramu Narasinga
Ramu Narasinga

Posted on • Edited on

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

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.

Get free courses inspired by the best practices used in open source.

About me:

Website: https://ramunarasinga.com/

Linkedin: https://www.linkedin.com/in/ramu-narasinga-189361128/

Github: https://github.com/Ramu-Narasinga

Email: ramu.narasinga@gmail.com

Learn the best practices used in open source.

Top comments (0)