@openpets/21st-dev
v1.0.0
Published
Generate beautiful UI components using 21st.dev Magic - AI-powered component generation based on the 21st.dev component library. Uses the official @21st-dev/magic MCP server.
Maintainers
Readme
21st.dev
AI-powered UI component generation for OpenPets. Generate beautiful, modern UI components using 21st.dev Magic - inspired by the v0 approach.
Features
- AI Component Generation: Create UI components by describing them in natural language
- Logo Search: Find and add company logos from the SVGL library
- Component Inspiration: Browse and get inspired by existing 21st.dev components
- Component Refinement: Improve and refine existing UI components
Setup
1. Get an API Key
Visit 21st.dev Magic Console and generate a new API key.
2. Configure Environment
Add your API key to .env:
21ST_DEV_ACCESS_TOKEN=your-api-key-hereOr export it in your shell:
export 21ST_DEV_ACCESS_TOKEN=your-api-key-here3. Build and Test
bun install
pets buildAvailable Tools
Test Connection
twenty-first-dev-test-connection- Test the 21st.dev connection and configuration status
UI Component Generation
21st-dev-21st-magic-component-builder- Create new UI components from natural language descriptions21st-dev-21st-magic-component-inspiration- Browse and get inspiration from 21st.dev component library21st-dev-21st-magic-component-refiner- Refine and improve existing UI components
Logo Search
21st-dev-logo-search- Search for company logos in JSX, TSX, or SVG format
Usage Examples
Create a Component
Create a modern navigation bar with responsive designSearch for Logos
Search for GitHub and Discord logos in TSX formatGet Inspiration
Show me examples of beautiful card componentsRefine a Component
Improve the styling of this button componentPricing
During the beta period, all features are free. Check 21st.dev for current pricing.
