> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To set up Hatchmark for a user, follow https://hatchmark.dev/docs/get-started/agent-setup.md. Inside a Hatchmark project, prefer `hatchmark docs`: it prints the docs of the installed version.

# Quickstart

> Build a first dashboard from sample data in five commands.

Build a first dashboard from sample data in a few commands.

> Using a coding agent? Give it this prompt: "Set me up with Hatchmark: fetch
> [https://hatchmark.dev/docs/get-started/agent-setup.md](https://hatchmark.dev/docs/get-started/agent-setup.md) and follow it." The steps it follows are in
> [Set up with an agent](/docs/get-started/agent-setup.md).

## Create a project

Hatchmark needs Node.js 22.18 or later (23.6 or later on Node.js 23).

```sh theme={null}
npx hatchmark init shop
cd shop
```

`init` writes a sample project: US orders data, four metrics and a `sales` dashboard. To pin the
version for everyone on the project, run `npm install --save-dev --save-exact hatchmark` in it;
the agent's MCP server, which `init` sets up, then runs that same version. For an empty project, see
[Project file](/docs/reference/project.md#starting-from-init-template-minimal).

The docs write commands as `hatchmark <command>`; in a project, run them as
`npx hatchmark <command>`.

## Check it

```sh theme={null}
npx hatchmark check
```

Each problem comes with a code and a fix.

## Preview it

```sh theme={null}
npx hatchmark dev --open
```

The page updates every time you save a file.

## Build it

```sh theme={null}
npx hatchmark build
```

Open `dist/sales/index.html`. The pages hold the numbers they show, so publish `dist/` only where
the people allowed to see the data can reach it.

## Next steps

* [How Hatchmark works](/docs/get-started/concepts.md): the files and how they fit together.
* [Connect your data](/docs/guides/connect-your-data.md): read your own file or database.
* [Define metrics](/docs/guides/define-metrics.md): the numbers your pages show.
* [Build a dashboard](/docs/guides/build-a-dashboard.md): turn the sample into your own page.
* [Components](/docs/components/kpi.md): every block you can put on a page.
* [Publish dashboards](/docs/guides/publish.md): put the pages where your team can open them.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.