coderio 0.1.2-alpha.1 â 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -5
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ AI-Powered Design-to-Code Tool with High-Fidelity UI Restoration
|
|
|
6
6
|
|
|
7
7
|
[](LICENSE) [](https://nodejs.org/) [](https://www.npmjs.com/package/coderio) [](https://github.com/MigoXLab/coderio/graphs/contributors)
|
|
8
8
|
|
|
9
|
-
đŦ Contact:
|
|
9
|
+
đŦ Contact: <a href="https://aicarrier.feishu.cn/docx/KTZCddG2VoarFExTqBEcS55QnRd" target="_blank">WeChat Group</a> | <a href="mailto:coderio@pjlab.org.cn">Email</a>
|
|
10
10
|
|
|
11
11
|
[English](README.md) | [įŽäŊ䏿](README_zh-CN.md)
|
|
12
12
|
|
|
@@ -32,7 +32,7 @@ AI-Powered Design-to-Code Tool with High-Fidelity UI Restoration
|
|
|
32
32
|
|
|
33
33
|
CodeRio is an intelligent **Figma-to-Code** automation tool that transforms designs into production-ready React code. Unlike traditional converters, CodeRio employs a multi-agent system that validates visual accuracy and iteratively refines misalignments, pursuing high-fidelity UI restoration and **production-ready code structure tailored for developers**.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
https://github.com/user-attachments/assets/a0bc1b1c-6aaa-4fbb-a2d8-18aeba70759b
|
|
36
36
|
|
|
37
37
|
**Perfect for:**
|
|
38
38
|
|
|
@@ -42,11 +42,19 @@ CodeRio is an intelligent **Figma-to-Code** automation tool that transforms desi
|
|
|
42
42
|
|
|
43
43
|
## ⨠Examples
|
|
44
44
|
|
|
45
|
-
### Case:
|
|
45
|
+
### Case: CLI with --mode full
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
After installing CodeRio, you can execute commands directly in the CLI. CodeRio excels at restoring complex landing page styles, handling intricate layouts, identifying and downloading diverse image resources, and encapsulating component structures. By selecting "FULL" mode, a visual fidelity evaluation report is generated upon completion. This report displays deviations between the design and the webpage using both annotation and overlay modes, providing effective guidance for further development by engineers. This example demonstrates a landing page converted from Figma ([Design Link](https://www.figma.com/design/c0UBII8lURfxZIY8W6tSDR/Top-16-Websites-of-2024---Awwwards--Community-?node-id=1-1482&t=FB3Hohq2nsH7ZFts-4)).
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
https://github.com/user-attachments/assets/bd0c3f18-e98a-4050-bf22-46b198fadac2
|
|
50
|
+
|
|
51
|
+
<a href="https://static.openxlab.org.cn/coderio/report.html" target="_blank">đ View Interactive Validation Report</a>
|
|
52
|
+
|
|
53
|
+
### Case: Development with Cursor Skill
|
|
54
|
+
|
|
55
|
+
CodeRio can be seamlessly integrated into Cursor as a Skill. Simply input a prompt like **"Create a React project and restore this design with high fidelity,"** along with your output directory, Figma URL([Design Link](https://www.figma.com/design/c0UBII8lURfxZIY8W6tSDR/Top-16-Websites-of-2024---Awwwards--Community-?node-id=30-8264&t=FB3Hohq2nsH7ZFts-4)), and Token. The Agent will guide you step-by-step through the page generation process. For Landing Pages, it achieves **high-fidelity restoration**, accurately reproducing images and styles. It also automatically encapsulates reusable components (such as cards) and strictly adheres to **frontend development best practices**.
|
|
56
|
+
|
|
57
|
+
https://github.com/user-attachments/assets/a66dc680-f68d-4121-b416-aa6b778bd895
|
|
50
58
|
|
|
51
59
|
## đ Quick Start
|
|
52
60
|
|
package/dist/cli.js
CHANGED
|
@@ -475,7 +475,7 @@ var AGENT_CONTEXT_WINDOW_TOKENS = 128e3;
|
|
|
475
475
|
|
|
476
476
|
// src/cli/init.ts
|
|
477
477
|
function registerCommands(program) {
|
|
478
|
-
const version = false ? "0.0.1" : "
|
|
478
|
+
const version = false ? "0.0.1" : "1.0.0";
|
|
479
479
|
program.name(CLI_NAME).description(`${CLI_NAME} - Convert Figma designs to code`).version(version, "-v, -V, --version", "Output the version number").showHelpAfterError();
|
|
480
480
|
}
|
|
481
481
|
|