shadcn-component-list
v1.0.3
Published
A list of shadcn components
Readme
Components Scraper
A Python script that scrapes UI component documentation from Shadcn Svelte and Kibo UI websites, collecting component names, descriptions, and installation commands into a unified markdown list.
Features
- Scrapes Shadcn Svelte components from https://www.shadcn-svelte.com
- Scrapes Kibo UI components from https://www.kibo-ui.com
- Generates a comprehensive markdown file (
list.md) with all components - Includes install commands for each component
- Handles rate limiting with delays between requests
Dependencies
This project requires the following Python packages:
requests- For making HTTP requestsbeautifulsoup4- For HTML parsing
Install them using pip:
pip install requests beautifulsoup4Usage
Run the scraper script:
python list.pyThe script will:
- Scrape components from both sources
- Generate
list.mdwith all components organized by source - Display a summary of found components
Output
The generated list.md file contains:
- Component names and descriptions
- Installation commands for each component
- Organized by source (Shadcn Svelte and Kibo UI)
- Timestamp of generation
Testing
Run the unit tests:
python test_list.pyTests cover:
- Markdown file generation
- Content structure validation
- Install command formatting
- Handling of empty descriptions
License
The code is under GPLv3
NPM package contents
This project includes the components-list.md file. When you run npm install shadcn-component-list, the package runs a small postinstall script that will copy components-list.md into the consuming project's root directory (the folder where you ran npm install). If a components-list.md file already exists in your project root, the installer will not overwrite it.
