# Quick Start import { PackageManagerTabs // @ts-ignore } from '@theme'; :::info To quickly experience FlowGram.AI, you can directly [open it in CodeSandbox](https://codesandbox.io/p/github/louisyoungx/flowgram-demo/main). ::: Choose a way to start: - Option 1: Use the official template scaffolding to build a new project (⭐️ Recommended for a quick start). - Option 2: Integrate into an existing project by installing the editor package. ## Option 1: Create a FlowGram.AI Application via the Official Template 1. Use the FlowGram CLI to set up a runnable demo. 2. Select a template when prompted (it is recommended to choose `Free Layout Demo` for a quick start). ```text - Free Layout Demo # Best practice for free layout (⭐️ Recommended) - Free Layout Demo Simple # Basic usage of free layout - Fixed Layout Demo # Best practice for fixed layout - Fixed Layout Demo Simple # Basic usage of fixed layout ```

Free Layout Demo [View Online Demo](/examples/free-layout/free-layout-simple.html)

Free Layout Preview

Fixed Layout Demo [View Online Demo](/examples/fixed-layout/fixed-layout-simple.html)

Fixed Layout Preview

Free Layout Demo Simple [View Online Demo](/examples/free-layout/free-layout-simple.html)

Free Layout Simple Preview

Fixed Layout Demo Simple [View Online Demo](/examples/fixed-layout/fixed-layout-simple.html)

Fixed Layout Simple Preview
3. Check the installed directory name. - For a project created with the Free Layout Demo template, the directory name is `demo-free-layout`. - For a project created with the Free Layout Demo Simple template, the directory name is `demo-free-layout-simple`. - For a project created with the Fixed Layout Demo template, the directory name is `demo-fixed-layout`. - For a project created with the Fixed Layout Demo Simple template, the directory name is `demo-fixed-layout-simple`. 4. Enter the project directory. ```sh cd [project-name] ``` 5. Install dependencies. 6. Start the development server. ## Option 2: Install the Editor Package Directly :::tip This method is suitable for developers who have some familiarity with the FlowGram project. If you are new to FlowGram, we recommend choosing Option 1 first to familiarize yourself with the project, and then gradually integrate the required code into your existing project. ::: If you need to add the package to an existing project, choose a layout type:
Free Layout

Nodes can be dragged freely on the canvas, and edges can be used to connect nodes to establish logical relationships between them.

Next: [Create a Free Layout Canvas](/guide/getting-started/free-layout)

Free Layout Demo
Fixed Layout

The position of nodes in the graph represents the logical relationship between them.

Next: [Create a Fixed Layout Canvas](/guide/getting-started/fixed-layout)

Fixed Layout Demo