Interactive React component for visualizing bitbucket-pipelines.yml configurations as flow graphs.
- 📊 Visual Flow: Transforms complex YAML into an easy-to-understand directed acyclic graph (DAG).
- 🛠️ Features: Handles steps, parallel steps, stages, and manual triggers.
- 🎨 Atlassian Design: Built using
@atlaskit/tokensfor a seamless integration with Atlassian product aesthetics. - 🔍 Syntax Highlighting: Built-in YAML preview with syntax highlighting.
- ⚡ Performant: Optimized for large pipeline configurations using
reactflowanddagre.
# Using npm
npm install @eulolabs/bitbucket-pipelines-viewer-react
# Using pnpm
pnpm add @eulolabs/bitbucket-pipelines-viewer-react
# Using yarn
yarn add @eulolabs/bitbucket-pipelines-viewer-reactimport React from "react";
import { PipelinesViewer } from "@eulolabs/bitbucket-pipelines-viewer-react";
import "@eulolabs/bitbucket-pipelines-viewer-react/style.css";
const myYaml = `
pipelines:
default:
- step:
name: Build and Test
script:
- npm install
- npm test
- step:
name: Deploy
trigger: manual
script:
- npm run deploy
`;
function App() {
return (
<div style={{ width: "100vw", height: "100vh" }}>
<PipelinesViewer yaml={myYaml} />
</div>
);
}
export default App;| Prop | Type | Description | Default |
|---|---|---|---|
yaml |
string |
The raw Bitbucket Pipelines YAML string to visualize. | "" |
className |
string |
Optional CSS class name for the container. | - |
- Node.js 24+
- pnpm 10+
-
Clone the repository:
git clone https://github.com/Eulo-Labs/bitbucket-pipelines-viewer-react.git cd bitbucket-pipelines-viewer-react -
Install dependencies:
pnpm install
-
Run the demo application:
pnpm run dev
Build the library:
pnpm run buildBuild the demo:
pnpm run build:demoMIT © Eulo-Labs