--- title: Getting Started --- # Getting Started This guide covers the basics of setting up and using Vue Flow. You'll learn how to install Vue Flow, configure it, and create your first flowchart. :::info NOTE If you're looking for a guide on how to setup a Vue project, check out the [official Vue documentation](https://vuejs.org/guide/quick-start). ::: ## Prerequisites Before you strap in, make sure you're equipped with: - [Node.js v20 or above](https://nodejs.org/) - [Vue 3.3 or above](https://vuejs.org/) ## Play Online Try out the sandbox starter templates for Vue Flow in JavaScript and TypeScript and get a feel for the library.

new.vueflow.dev/js

new.vueflow.dev/ts

## Installation Use your preferred package manager to install Vue Flow: ::: code-group ```sh [npm] $ npm add @vue-flow/core ``` ```sh [pnpm] $ pnpm add @vue-flow/core ``` ```sh [yarn] $ yarn add @vue-flow/core ``` ::: ## Quick Start In Vue Flow, a graph consists of [**nodes**](/typedocs/interfaces/Node) and [**edges**](/typedocs/type-aliases/Edge). **Each node or edge requires a unique id.** Nodes also need a [XY-position](/typedocs/interfaces/XYPosition), while edges require a `source` and a `target` node id. ::: warning NOTE! To ensure Vue Flow's is correctly displayed, make sure you include the necessary styles. ```css /* these are necessary styles for vue flow */ @import '@vue-flow/core/dist/style.css'; /* this contains the default theme, these are optional styles */ @import '@vue-flow/core/dist/theme-default.css'; ``` Refer to the [Theming](/guide/theming) section for additional information. ::: Here's a simple example to get you started: ::: code-group ```vue [App.vue ] ``` ```vue [SpecialNode.vue ] ``` ```vue [SpecialEdge.vue ] ``` ```vue [App.vue ] ``` ```vue [SpecialNode.vue ] ``` ```vue [SpecialEdge.vue ] ``` ::: ## TypeScript As Vue Flow is entirely written in TypeScript, we highly recommend utilizing TypeScript for improved developer experience and prevention of common errors. The necessary type definitions are included with the library. For more information, review our [TypeDocs documentation](/typedocs/).