MDAN MDAN Docs
Site

Getting Started

This page does one thing: help you create your first MDAN app and get it running in a few minutes.

MDAN officially supports Node and Bun.

Current npm releases:

1. Create and Start a Project

Node starter:

npm create mdan@latest agent-app
cd agent-app
npm install
npm start

Bun starter:

bunx create-mdan agent-app
cd agent-app
bun install
bun start

You can force either runtime with:

npm create mdan@latest agent-app -- --runtime bun
bunx create-mdan agent-app --runtime node

Open http://127.0.0.1:3000/ by default.

If you set the PORT environment variable yourself, use that port instead.

If you prefer, you can also use:

npx create-mdan agent-app

2. Key Files

3. Common Places To Start Editing

In most cases, these two files are enough to get started:

You can usually leave app/client.ts alone until you want to bring your own UI.

4. See More Examples

If you are browsing the MDAN repository, you can also run the starter example in examples/starter/.

That in-repo example keeps its current Node host shell, even though the published starter can now target Node or Bun.

First run this once from the repository root:

npm install

Or:

bun install

Then start the example from its directory:

cd examples/starter
npm start

You can still use Bun for the install/build side:

bun install
bun run build

5. Next