You already have
a starting point.
Take a component you like from a project you own. We trace its imports and package it into a library you can use again.
Download the extractorRuns on your computer with Bun. Your source stays there.
Open a terminal in the downloaded folder and run bun install. This installs the parser, not anything into your app.
Point it at your project and a component file. It lists everything that component needs, including local aliases, re-exports, and packages.
bun run extract --project ../my-app --entry src/components/card.tsxReplace the project and entry paths with yours. Repeat --entry to select more components.
When the report has no unresolved issues, add an empty output directory. You get source code, a shadcn registry, and exact installation instructions.
bun run extract --project ../my-app --entry src/components/card.tsx --out ../my-libraryInstall the generated registry into a second app with the command in its README. Try the component there, then host your registry when you are happy with it.
Clear about what travels.
TypeScript, JavaScript, local imports, re-exports, JSON, and SVG source are supported. Stylesheets, binary assets, computed imports, and server dependencies are reported for review. Global styles and providers still need a decision from you.
The extractor resolves the code graph. Testing it in another app tells you whether the component is truly ready to reuse.