# profiler-app

Standalone application for visualizing Feldera DBSP circuit profiles.

## Overview

This is a Single-Page Application (SPA) web app for loading and visualizing circuit profiles using `profiler-layout`. Supports loading profiles from support bundle `.zip` files.

Provides the same functionality as the Web Console's integrated profiler.

## Quick Start

```bash
bun install
bun run dev
```

The web app is available at `http://localhost:5174`.

If you have a dev build running, run

```bash
cd js-packages/profiler-layout && bun run build
```

to update the app on the fly with the latest `profiler-layout` changes.

## Build Production App

```bash
bun run build
```

The app is compiled into a single dist/index.html. It can be served by a server or opened directly in the browser.
`profiler-layout` is re-built automatically.

## Loading Profiles

Click the **"Load Bundle"** button and select a support bundle `.zip` file to load.

## Sample Data

Included in `data/`:
- `rec.json` - Example profile

## Architecture

Thin wrapper around `profiler-layout`:
- HTML structure for profiler UI
- Browser-based .zip archive processing with `but-unzip`

## License

MIT
