How codewithmuhilan/lightswind-ui-library works
Lightswind UI delivers React component source into a developer’s project through a CLI and an MCP server. The principal workflow is to initialize a project, choose and add components, then use the copied source locally; the CLI also supports authenticated Pro delivery. The repository includes a large component catalog, a Tailwind plugin, and a component-browser sidebar. The README documents the broad CLI and MCP capabilities; sampled source confirms selected CLI, MCP, and component behavior, but not every internal route or data connection.
Main entry points: mcp/index.ts MCP server · lightswind.js Lightswind CLI · src/index.ts React component exports · ui Project components
Components 16
Source delivery
- Lightswind CLI
bin/lightswind.js - Project components
src/components/ui - Pro licensing service
AI access
- MCP server
src/mcp/index.ts
Component catalog
- Component sources
registry - Pro blocks
src/mcp - Component browser
lib/ComponentsSidebar.tsx - React component exports
src/index.ts
Library support
- Tailwind plugin
plugin.js - Component utilities
src/components/lib/utils.ts - GitHub content API
- GitHub client
lib/githubClient.ts - SSO handling
lib/sso.js - User verification
Other components
- Developer
- AI coding agent
Connections 11
- Developer → Lightswind CLI: runs commands
README.md - Lightswind CLI → Project components: installs source
README.md - Lightswind CLI → Pro licensing service: authenticates
bin/lightswind.js - Developer → MCP server: starts server
README.md - AI coding agent → MCP server: requests tools
README.md - MCP server → Component sources: lists and fetches
README.md - MCP server → Pro blocks: fetches blocks
README.md - MCP server → Project components: installs components
README.md - Component browser → React component exports: browses components
- React component exports → Component utilities: uses utilities
- GitHub client → GitHub content API: fetches content
lib/githubClient.ts