This guide will help you get started with contributing to the Opik frontend.
Before you start, please review our general Contribution Overview and the Contributor License Agreement (CLA).
The Opik frontend is a React application located in the apps/opik-frontend directory of the comet-ml/opik repository. It provides the user interface for interacting with the Opik platform.
Import rules: ui → shared → v{N}/pages-shared → v{N}/pages (one-way only). v1 and v2 cannot import from each other. Validate with npm run deps:validate.
We provide multiple ways to develop the frontend. Choose the approach that best fits your workflow:
Best for rapid development with hot reload
This mode runs the frontend as a local process with Vite’s dev server, providing instant hot reload when you save files:
Access the UI at http://localhost:5174 (Vite dev server with hot reload).
Benefits:
Prerequisites:
For comprehensive documentation on all development modes, troubleshooting, and advanced workflows, see our Local Development Guide.
Before submitting a Pull Request, please ensure your code passes the following checks:
Run these commands from the apps/opik-frontend directory:
After implementing, commit your changes and open a Pull Request against the main branch of the comet-ml/opik repository.