@elyracode/flux-ui

中文文档
0.9.57发布于 2026/11/10MITES Module零依赖近 30 天下载 4683

Elyra extension for Flux UI -- live component index, Blade-to-Flux converter, and page generator

原始使用文档
文档目录8 节
  1. Install
  2. Tools
  3. Commands
  4. Usage
  5. Live Component Reference
  6. Convert Existing Views
  7. Generate New Pages
  8. How It Works

@elyracode/flux-ui

Elyra extension for Flux UI -- live component index, Blade-to-Flux converter, and page generator for Livewire 4 projects.

Install

elyra install npm:@elyracode/flux-ui

Tools

ToolDescription
flux_component_indexFetch the live Flux UI component library from GitHub. Always up-to-date, cached for 24h.
blade_to_fluxAnalyze a Blade file and suggest Flux UI component replacements.
flux_generate_pageGenerate a complete page scaffold: Blade view, Livewire component, migration, route.

Commands

  • /flux -- Interactive selector for all Flux UI tools

Usage

Live Component Reference

> Show me all available Flux UI components
> What props does flux:table support?
> Show me the flux:modal component API

The agent fetches the actual Flux UI source code from GitHub, so it always has the latest component APIs -- even components added yesterday.

Convert Existing Views

> Convert resources/views/users/index.blade.php to use Flux UI
> Analyze my dashboard view for Flux conversion opportunities

The agent scans your Blade file, identifies HTML/Tailwind patterns (tables, forms, modals, buttons), and suggests specific Flux replacements.

Generate New Pages

> Generate a products CRUD page with Flux UI
> Create a user settings page with profile form and password change
> Build a dashboard with stats cards and a recent orders table

The agent generates all four files: Blade view with Flux components, Livewire class with validation, migration, and route.

How It Works

  1. Component Index: Fetches livewire/flux from GitHub, filters to component files, extracts props and slots
  2. Blade Converter: Pattern-matches 15+ HTML elements against Flux equivalents (button, input, select, table, modal, tabs, card, dropdown, breadcrumb, tooltip, switch, sidebar, header)
  3. Page Generator: Fetches the component index for accurate API usage, then provides structured generation instructions with Livewire 4 best practices (#[Validate], #[Computed], #[Url])

All GitHub fetches are cached at ~/.elyra/cache/github/ for 24 hours.

版本与发布记录

@elyracode/flux-ui 共发布 108 个版本,首次发布于 2026/05/11;过去 12 个月发布了 108 个版本。

版本发布日期距今
0.9.57latest2026/11/103 天前
0.9.562026/11/0211 天前
0.9.552026/10/2123 天前
0.9.542026/10/1430 天前
0.9.532026/10/1430 天前
0.9.522026/10/101 个月前

关于 @elyracode/flux-ui 的常见问题

@elyracode/flux-ui 是什么?

Elyra extension for Flux UI -- live component index, Blade-to-Flux converter, and page generator

如何安装 @elyracode/flux-ui?

在项目目录运行 npm install @elyracode/flux-ui,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typebox(*)、@elyracode/coding-agent(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@elyracode/flux-ui 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/elyracode__flux-ui 是否存在。

@elyracode/flux-ui 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@elyracode/flux-ui 可以商用吗?

@elyracode/flux-ui 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@elyracode/flux-ui 的下载量有多少?

根据 npm 官方下载统计,@elyracode/flux-ui 在 2026/10/14 – 2026/11/12 这 30 天内被下载 4,683 次,日均约 156 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@elyracode/flux-ui 还在维护吗?

最新版本 0.9.57 发布于 2026/11/10(3 天前);至今共发布 108 个版本,其中过去 12 个月发布了 108 个;首次发布于 2026/05/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。