- responsive menu
- date range picker
- redux slice for data storage and hooks to call no states
=========================================
Remote Registry System
Fetch registry from API/CDN/GitHub
Dynamic component updates
No need to republish npm package for every component
Version-based registry management
Features
Remote registry.json
CDN support
GitHub raw file support
Cached registryinit Command
npx demo-dev2d-cli init
Responsibilities
Detect framework
Setup folders
Create .pejay-ui.json
Configure aliases
Install Tailwind
Create base config
Framework Detection
Vite
Next.js
CRA
Remix
ExpoAutomatic Dependency Installation
Current
Registry tracks packages only
Upgrade
Automatically run:npm install clsx tailwind-merge
Features
Install missing packages
Skip already installed packages
Support npm/yarn/pnpm/bun
- Recursive Dependency Resolution Current One-level dependency handling Upgrade
Support nested dependencies:
button
└── utils/cn
└── utils/theme
Features
Recursive resolver
Circular dependency protection
Dependency graph generation
- Component Variants & Themes npx demo-dev2d-cli add button --variant modern
Possible Styles
glass
modern
minimal
neumorphism
Features
Multiple template support
Theme presets
Style registry
doctor Command
npx demo-dev2d-cli doctor
Checks
Tailwind installed?
TypeScript configured?
React version compatible?
Aliases configured?
Missing packages?
Output
Errors
Warnings
Suggested fixeslist Command
npx demo-dev2d-cli list
Features
Show installed components
Show available components
Show outdated components
Show dependency usageUpdate Command
npx demo-dev2d-cli update input
Features
Smart file diffing
Preserve user changes
Partial updates
Version updatesFramework Detection System
Detect Automatically
Next.js
Vite
CRA
Remix
Expo
Monorepo
Features
Framework-specific templates
Framework-specific paths
Framework-specific coRemote Templates
templates/input.tsx
Upgrade
Fetch from:
GitHub
CDN
API
Benefits
Smaller npm package
Dynamic template updates
Centralized template management
Registry Validation
Use
Zod
AJV
Validate
Component schema
Dependency schema
Template structure
Benefits
Prevent broken installs
Safer updates
Better DXAST-Based Code Manipulation
Features
Auto export injection
Auto import updates
Route injection
Provider injection
Tools
Babel AST
Recast
TS MorphInteractive CLI UI
Features
Multi-select components
Searchable lists
Loading spinners
Colored logs
Tools
Inquirer
Ora
ChalkRollback & Recovery System
Features
Restore failed installs
Cleanup partial files
Transaction-based installs
Benefits
Safe operations
Better reliabilityComponent Marketplace
Future Scope
Public registry
Premium packs
Themes marketplace
Community components
SaaS Potential
Paid templates
Team registries
Private registries
===================================================================
Recommended Upgrade Order
Phase 1 (Most Important)
init command
Automatic dependency installation
Remote registry
Recursive dependency resolution
Phase 2
Framework detection
doctor command
list command
Remote templates
Phase 3
Update system
AST manipulation
Interactive UI
Rollback system
Phase 4 (Advanced)
Marketplace
SaaS ecosystem
Team/private registries
Top comments (0)