@grafana/scenes is in its early days. We do not encourage anyone to use it in plugins yet. APIs can (and probably will) change significantly in the months to come.
@grafana/scenes does not come with dedicated playground yet. It is currently possible to run Scene demos using Grafana. To do that, the following setup is required.
- Clone @grafana/scenes repository.
- Clone Grafana repository and follow Development guide.
- Setup env variable
GRAFANA_PATH
to point to your Grafana repository directory,export GRAFANA_PATH=<path-to-grafana-directory>
- From @grafana/scenes directory run
./scripts/dev.sh
. This will compile @grafana/scenes with watch mode enabled and link it to your Grafana. - From Grafana directory run
yarn install
. - Start Grafana with
scenes
feature toggle enabled - Navigate to
http://localhost:3000/scenes
to explore demo scenes.
- Run
YARN_IGNORE_PATH=1 yarn link
from @grafana/scenes directory. - Run
yarn dev
from @grafana/scenes directory. - Run
yarn link @grafana/scenes
from app plugin directory. - Start app plugin development server.