# Workspace and campaigns

Your account has one workspace, and a campaign is a folder in it for your sessions and your party.

## Your workspace

Each account has one workspace. It contains everything you write: your campaigns, your Library, and any other folders you make. A workspace is not a campaign. Campaigns are folders inside the workspace, and you can make as many as you like.

The top of the workspace opens on the **Home** tab. Home shows the session you created most recently, with the campaign it belongs to beside the label. Click the card to open the session.

- With campaigns but no sessions, Home shows your newest campaign.
- With no campaigns, Home shows **Get started** and a **New campaign…** button. You can also drag folders of notes you already have onto the page.
- While the workspace has no `Library` folder, Home offers **Add sample library**: example NPCs, scenes, spells and items. See [The Library](https://dunjii.com/docs/organizing/library.md).

![The Home tab, showing the most recent session in the Mistwood campaign.](https://dunjii.com/docs-assets/organizing/home-tab.webp)

## Making a campaign

1. Choose **New campaign…** on the Home tab, or at the top of the sidebar when the sidebar shows **Home**.
2. Type a **Campaign name**. The line under the field shows the folder Dunjii will create.
3. Under **Player names**, type a character and a player on each row. A new row appears as you fill one. You can leave this empty.
4. Choose **Create campaign**.

Dunjii creates the folder at the top of your workspace and opens it. A `metadata.md` in the folder makes it a campaign. If you typed any names, Dunjii also creates the campaign's `Party.md` with one roster row for each.

```markdown
---
type: campaign
---
```

- `type: campaign`: This line is what makes the folder a campaign. The folder can have any name.

To make an existing folder a campaign, right-click it in the sidebar, choose **Info**, and set **Kind** to **Campaign**. A campaign can't be inside another campaign. [Folder settings](https://dunjii.com/docs/organizing/folder-settings.md) lists the other keys `metadata.md` takes.

![The New campaign form with two characters and their players.](https://dunjii.com/docs-assets/organizing/new-campaign-form.webp)

## The campaign page

A campaign folder opens on its **Campaign** tab.

- **New session** creates the next session in the campaign and opens it. See [Sessions](https://dunjii.com/docs/organizing/sessions.md).
- The card names the campaign's most recent session: the one created last, or the highest-numbered one when several were created on the same day. It shows the session's planned length and number of scenes. The number of sessions in the campaign is on the right.
- **Party** shows the party document: each character's class, level and player, with what they want in italics, then the **Notable items**, **In effect** and **Purse** sections. The level range is on the right. **Open the party** opens the document.

A campaign with no party document shows **Add the party** instead. It creates `Party.md` with an empty roster and opens it in the editor.

In the sidebar, campaigns and sessions have their own icons. While the sidebar shows a campaign, **New session** is at the top of it.

![The Campaign tab of Mistwood, with its most recent session and two characters.](https://dunjii.com/docs-assets/organizing/campaign-tab.webp)

## The party document

A campaign has one party document, `Party.md`, directly in the campaign folder. It has one table row per character and three sections for what the party has and what still affects them. The players keep their own character sheets; this page is for the facts you need while you prep.

The first table is the roster. `Level` is a number: for a multiclass character, write the classes under `Class` and the total level under `Level`.

```markdown
---
type: party
---
# Party

| PC | Player | Class | Level | Wants |
| --- | --- | --- | --- | --- |
| Tink | Farr | Rogue | 5 | Her smithy back |
| Thistle | Moss | Druid | 5 | Elmar's killer |

## Notable items

- Lantern of Revealing

## In effect

- Thistle owes the river hag a favor

## Purse

About 340gp, and a lute nobody will buy.
```

- `type: party`: Makes this the campaign's party document, whatever the file is called. Dunjii doesn't draw the frontmatter.
- `- Lantern of Revealing`: Only items that change what a scene can ask of the party. Link each one to its item page if it has one.

The session page shows one line from this document above the scenes: the number of PCs, their level range and the purse. In a session summary, the `At the Table` section starts with one line per roster row.

## Tabs on a folder page

| Tab      | Shown on                             | What it shows |
| -------- | ------------------------------------ | ------------- |
| Home     | The top of your workspace            | The most recent session, or a way to start |
| Campaign | A campaign folder                    | The campaign's sessions and party |
| Session  | A session folder                     | The summary, scenes and other files. See [Sessions](https://dunjii.com/docs/organizing/sessions.md). |
| Contents | Every folder                         | The files and folders inside it |
| Activity | A folder where files have changed    | Files created, updated, moved or deleted in the folder, newest first |

Dunjii remembers the tab you last chose for each kind of page, in this browser. A session you open from Home, from the campaign page or from the top of the sidebar opens on its **Session** tab.

Only you and your [co-GMs](https://dunjii.com/docs/sharing/co-gms.md) see the Home, Campaign and Session tabs. A player who opens a campaign or a session through a [share link](https://dunjii.com/docs/sharing/share-links.md) sees an ordinary folder.
