This template is a starting point for building with Vue Flow. Use it as a base for your own Vue Flow applications, or for small experiments and bug reports.
Install the dependencies:
pnpm installUse Node.js 20.19+ or 22.12+ and pnpm. Start the Vite development server:
pnpm devChanges you make to the code will be reflected in the browser while the server is running. To create a production build, run pnpm build.
The starter includes Vue 3, TypeScript, Vue Flow, Vite, and Oxlint. Run pnpm lint to check the code and pnpm preview to preview a production build. It also includes examples of a custom node and a custom edge.
- Customize the existing node in
src/CustomNode.vueor create a new Vue component and register it using a node slot insrc/App.vue. - Customize the edge in
src/CustomEdge.vueor create an edge of your own. - Change how things look by theming Vue Flow.
- Add a layouting library to position your nodes automatically.