Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
MCP serverAn toànGiao diện & thiết kếCần cài đặt chút

Lightswind-UI-Library

codewithMUHILAN · codewithMUHILAN/Lightswind-UI-Library

Lightswind UI là thư viện component React AI-native, CLI-first với hơn 160 component hoạt hình, sẵn sàng cho sản xuất và hỗ trợ MCP Server cho các tác nhân AI lập trình.

Thư viện component React CLI-first, AI-native. Hơn 160 component hoạt hình, dễ tiếp cận, sẵn sàng cho sản xuất với sự hỗ trợ MCP Server cho Cursor, Claude & GitHub Copilot. Kiến trúc copy-paste — bạn sở hữu code.

1.1k sao121Giấy phép: MITCập nhật 3 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Tạo và cài đặt các component UI hoạt hình trực tiếp vào dự án React của bạn bằng tác nhân AI.
  • Nhanh chóng xây dựng giao diện frontend cho ứng dụng web bằng cách tận dụng lựa chọn và tùy chỉnh component do AI điều khiển.
  • Tùy chỉnh mã nguồn các component thuộc sở hữu dự án của bạn, với sự hỗ trợ từ Claude hoặc Cursor.

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Lightswind UI

The world's first AI-native, CLI-first component library for React.
160+ animated, accessible, production-ready components — delivered as raw source code, owned by you forever.

Documentation · Component Library · Pro License · MCP Server · Changelog


What is Lightswind UI?

Lightswind UI is a source-code component library built on the same philosophy pioneered by shadcn/ui — components live inside your project, not a runtime dependency. You install them with a single CLI command, own them completely, and customize them freely.

What sets Lightswind UI apart is its AI-native delivery layer — the industry's first MCP (Model Context Protocol) server for a component library, letting AI coding agents like Cursor, Claude, and GitHub Copilot browse, fetch, and install components autonomously inside your codebase.

npx lightswind@latest init

Why Lightswind UI?

FeatureLightswind UIshadcn/uiRadix UIMaterial UI
Copy-paste source ownership✅✅❌❌
Smart CLI delivery✅✅❌❌
MCP Server support✅✅✅✅
Pro CLI & authenticated delivery✅❌❌❌
3D & WebGL shader components✅❌❌❌
Integrated Framer Motion & GSAP animations✅❌❌❌
Zero runtime vendor lock-in✅✅❌❌

Quick Start

Requirements

  • Node.js 18+
  • React 18 or 19
  • Tailwind CSS v3 or v4
  • A Next.js, Vite, Remix, or CRA project

1 — Initialize

Run this from the root of your project. The CLI detects your framework (Next.js, Vite, CRA), locates your components folder, installs shared utilities, and registers the Tailwind plugin automatically.

npx lightswind@latest init

During setup, you'll be prompted to select a color theme:

ThemePreview
defaultClassic Blue — clean & minimal
deep-oceanMidnight Blue — dark & immersive
crimsonDeep Red — bold & powerful
emeraldForest Green — fresh & vibrant
amberWarm Gold — elegant & energetic
amethystSoft Purple — modern & creative
monoPure Grayscale — ultra-clean

2 — Add a Component

npx lightswind add globe
npx lightswind add border-beam
npx lightswind add toast

The CLI resolves prerequisites automatically. If toast requires progress, both are installed. No manual dependency management.

3 — Import & Use

// Component code is installed in your local project directory
import { Globe } from "@/components/lightswind/globe";

export default function HeroSection() {
  return (
    <section>
      <Globe />
    </section>
  );
}

Note: Never import directly from "lightswind". All components live in your local components/lightswind/ directory — you own and control the code.


CLI Reference

# Initialize a new project
npx lightswind@latest init

# Add a single component
npx lightswind add [component-name]

# Add all components in a category
npx lightswind add --category background

# List all available components
npx lightswind list

# Authenticate with a Pro License Key
npx lightswind auth login sk_pro_YOUR_KEY

# Check auth status
npx lightswind auth status

# Revoke local credentials
npx lightswind auth logout

# Start the MCP server
npx lightswind mcp

# Auto-configure MCP in Cursor / Claude Desktop
npx lightswind mcp init

Pro License

Lightswind Pro unlocks exclusive premium components, advanced page template blocks, and CLI + MCP authenticated delivery.

Authenticate your CLI

Get your license key from the Lightswind Dashboard, then run:

npx lightswind auth login sk_pro_YOUR_LICENSE_KEY

Credentials are stored securely in ~/.lightswindrc. Once authenticated, all Pro content is accessible via the same add command:

npx lightswind add iphone16-pro
npx lightswind add-block saas-hero

Environment Variable (CI/CD)

LIGHTSWIND_LICENSE_KEY=sk_pro_YOUR_LICENSE_KEY

Team Access

A single Pro key can be shared across your entire development team. Each team member authenticates locally using the same key.


AI Agent Integration — MCP Server

Lightswind UI is the only component library in the world with a native Model Context Protocol (MCP) server. Once connected, your AI coding assistant can:

  • 🔎 Search all 160+ components by keyword or category
  • 📖 Read full component documentation and usage examples
  • ⬇️ Install components directly into your codebase
  • 🧩 Fetch Pro blocks and templates (with license key)

Automatic Setup (Recommended)

npx lightswind mcp init

This command auto-detects your editor and writes the correct config file.

Manual Configuration

Cursor / Windsurf

Edit ~/.cursor/mcp.json (or your editor's equivalent MCP settings file):

{
  "mcpServers": {
    "lightswind-mcp": {
      "command": "npx",
      "args": ["-y", "lightswind", "mcp"],
      "env": {
        "LIGHTSWIND_LICENSE_KEY": "sk_pro_YOUR_KEY"
      }
    }
  }
}

Claude Desktop

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "lightswind-mcp": {
      "command": "npx",
      "args": ["-y", "lightswind", "mcp"],
      "env": {
        "LIGHTSWIND_LICENSE_KEY": "sk_pro_YOUR_KEY"
      }
    }
  }
}

VS Code (Cline / Continue)

{
  "mcpServers": {
    "lightswind-mcp": {
      "command": "npx",
      "args": ["-y", "lightswind", "mcp"]
    }
  }
}

Available MCP Tools

ToolDescription
list_all_components
Xem mã nguồn trên GitHub