Mysterious /sink route in ui.shadcn.com

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.