@renderify/cli 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Web LLM
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # @renderify/cli
2
+
3
+ ![Node CI](https://github.com/webllm/renderify/workflows/CI/badge.svg)
4
+ ![npm](https://img.shields.io/npm/v/@renderify/cli.svg)
5
+ ![license](https://img.shields.io/npm/l/@renderify/cli)
6
+
7
+ CLI utilities for Renderify.
8
+
9
+ `@renderify/cli` is the fastest way to run prompts, inspect generated RuntimePlan JSON, probe plan dependencies, execute plan files, and open the browser playground.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ pnpm add -D @renderify/cli
15
+ # or
16
+ npm i -D @renderify/cli
17
+ ```
18
+
19
+ Run directly from your project:
20
+
21
+ ```bash
22
+ npx renderify help
23
+ ```
24
+
25
+ ## Commands
26
+
27
+ ```bash
28
+ renderify run <prompt> # Render prompt and print HTML
29
+ renderify plan <prompt> # Print RuntimePlan JSON
30
+ renderify probe-plan <file> # Probe plan dependencies and policy compatibility
31
+ renderify render-plan <file> # Execute RuntimePlan JSON file and print HTML
32
+ renderify playground [port] # Start browser playground server
33
+ ```
34
+
35
+ ## Quick Start
36
+
37
+ ```bash
38
+ # Generate and render HTML from a prompt
39
+ renderify run "build a KPI dashboard with a chart"
40
+
41
+ # Generate RuntimePlan JSON
42
+ renderify plan "build a todo app"
43
+
44
+ # Probe and execute a local plan file
45
+ renderify probe-plan ./examples/runtime/recharts-dashboard-plan.json
46
+ renderify render-plan ./examples/runtime/recharts-dashboard-plan.json
47
+ ```
48
+
49
+ ## Useful Environment Variables
50
+
51
+ - `RENDERIFY_LLM_API_KEY`
52
+ - `RENDERIFY_LLM_PROVIDER` (`openai`, `anthropic`, `google`)
53
+ - `RENDERIFY_LLM_MODEL`
54
+ - `RENDERIFY_LLM_BASE_URL`
55
+ - `RENDERIFY_SECURITY_PROFILE` (`strict`, `balanced`, `relaxed`)
56
+
57
+ See `../../docs/getting-started.md` and `../../docs/security.md` for runtime and policy options.
58
+
59
+ ## Notes
60
+
61
+ - Node.js `>=22` is required.
62
+ - The CLI composes `@renderify/core`, `@renderify/runtime`, `@renderify/security`, `@renderify/llm`, and `@renderify/ir`.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require("../dist/cli.cjs.js");