You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPING.md
+88Lines changed: 88 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,94 @@ Review the coverage report to confirm that your new code is adequately tested.
179
179
180
180
3.**Address Feedback**: Respond to any feedback from reviewers and make necessary changes.
181
181
182
+
## Developing the Web UI
183
+
184
+
The GuideLLM project includes a frontend UI located in `src/ui`, built using [Next.js](https://nextjs.org/). This section provides instructions for working on the UI.
185
+
186
+
### Getting Started
187
+
188
+
First, install dependencies:
189
+
190
+
```bash
191
+
npm install
192
+
```
193
+
194
+
Then, start the local development server:
195
+
196
+
```bash
197
+
npm run dev
198
+
```
199
+
200
+
Then open [http://localhost:3000](http://localhost:3000) in your browser.
201
+
202
+
### Building for Production
203
+
204
+
To build the app for production (output in the `out` directory):
205
+
206
+
```bash
207
+
npm run build
208
+
```
209
+
210
+
### Running UI Tests
211
+
212
+
-**Unit tests**:
213
+
214
+
```bash
215
+
npm run test:unit
216
+
```
217
+
218
+
-**Integration tests**:
219
+
220
+
```bash
221
+
npm run test:integration
222
+
```
223
+
224
+
-**Integration+Unit tests with coverage**:
225
+
226
+
```bash
227
+
npm run coverage
228
+
```
229
+
230
+
-**End-to-end tests** (using Cypress, ensure live dev server):
231
+
232
+
```bash
233
+
npm run test:e2e
234
+
```
235
+
236
+
### Code Quality and Styling
237
+
238
+
-**Fix styling issues**:
239
+
240
+
```bash
241
+
npm run format
242
+
```
243
+
244
+
-**Run ESLint checks**:
245
+
246
+
```bash
247
+
npm run lint
248
+
```
249
+
250
+
-**Run TS type checks**:
251
+
252
+
```bash
253
+
npm run type-checks
254
+
```
255
+
256
+
##### Tagging Tests
257
+
258
+
Reference [https://www.npmjs.com/package/jest-runner-groups](jest-runner-groups) Add @group with the tag in a docblock at the top of the test file to indicate which types of tests are contained within. Can't distinguish between different types of tests in the same file.
259
+
260
+
```
261
+
/**
262
+
* Admin dashboard tests
263
+
*
264
+
* @group smoke
265
+
* @group sanity
266
+
* @group regression
267
+
*/
268
+
```
269
+
182
270
## Additional Resources
183
271
184
272
-[CONTRIBUTING.md](https://github.com/neuralmagic/guidellm/blob/main/CONTRIBUTING.md): Guidelines for contributing to the project.
Copy file name to clipboardExpand all lines: README.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,48 @@ The `guidellm benchmark` command is used to run benchmarks against a generative
153
153
154
154
-`--output-path`: Defines the path to save the benchmark results. Supports JSON, YAML, or CSV formats. If a directory is provided, the results will be saved as `benchmarks.json` in that directory. If not set, the results will be saved in the current working directory.
155
155
156
+
### GuideLLM UI
157
+
158
+
GuideLLM UI is a companion frontend for visualizing the results of a GuideLLM benchmark run.
159
+
160
+
### 🛠 Running the UI
161
+
162
+
1. Use the Hosted Build (Recommended for Most Users)
163
+
164
+
After running a benchmark with GuideLLM, a report.html file will be generated (by default at guidellm_report/report.html). This file references the latest stable version of the UI hosted at:
165
+
166
+
```
167
+
https://neuralmagic.github.io/guidellm/ui/dev/
168
+
```
169
+
170
+
Open the file in your browser and you're done—no setup required.
171
+
172
+
2. Build and Serve the UI Locally (For Development) This option is useful if:
173
+
174
+
- You are actively developing the UI
175
+
176
+
- You want to test changes to the UI before publishing
177
+
178
+
- You want full control over how the report is displayed
179
+
180
+
```bash
181
+
npm install
182
+
npm run build
183
+
npx serve out
184
+
```
185
+
186
+
This will start a local server (e.g., at http://localhost:3000). Then, in your GuideLLM config or CLI flags, point to this local server as the asset base for report generation.
187
+
188
+
### 🧪 Development Notes
189
+
190
+
During UI development, it can be helpful to view sample data. We include a sample benchmark run wired into the Redux store under:
0 commit comments