# Dunjii > Dunjii is a web app for preparing tabletop RPG sessions you run in person: you write in markdown, Dunjii lays it out for print, and you share pages with your players by link. Every docs page below is markdown. The same pages render for people at /docs. A Dunjii workspace is a folder of markdown files. The `dunjii` command-line tool syncs one to a folder on your computer, where a local agent can read and edit it; run `dunjii agents` there to write the instructions an agent needs. ## Getting started - [Start here](https://dunjii.com/docs/getting-started/start-here.md): How a Dunjii workspace is organized, and the steps from a blank page to a printed session. ## Organizing - [Workspace and campaigns](https://dunjii.com/docs/organizing/workspace-and-campaigns.md): Your account has one workspace, and a campaign is a folder in it for your sessions and your party. - [Sessions](https://dunjii.com/docs/organizing/sessions.md): A session is a folder inside a campaign for the prep of one game, with a summary, scenes, NPCs and maps. - [The Library](https://dunjii.com/docs/organizing/library.md): The Library is a folder for the NPCs, scenes, spells and items you use in more than one campaign. - [Sourcebooks](https://dunjii.com/docs/organizing/sourcebooks.md): Dunjii includes the rules reference for D&D, Draw Steel and Pathfinder as read-only pages you can browse, search, link to and copy into your workspace. - [Search and filters](https://dunjii.com/docs/organizing/search.md): Search finds documents and Sourcebook pages by name or by what they say, and filters narrow the results by type, campaign, session or a property you choose. - [Folder settings](https://dunjii.com/docs/organizing/folder-settings.md): A folder's metadata.md says what the folder is, which game it is written for, and how everything inside it looks. ## Writing - [The editor](https://dunjii.com/docs/writing/the-editor.md): Write a page in Edit, where markdown shows formatted as you type and Dunjii saves your changes every 15 seconds. - [New documents](https://dunjii.com/docs/writing/new-documents.md): Make a page, folder, map or typed document in any folder, or bring in files you already have. - [Stat blocks](https://dunjii.com/docs/writing/stat-blocks.md): Write a creature's stat block for D&D 5e, Draw Steel or Pathfinder 2E, copy one from a Sourcebook, and roll its dice on the page. - [Random tables](https://dunjii.com/docs/writing/random-tables.md): A random table is a page of results that you roll on in View, or draw from with /random while you write. - [Images and page art](https://dunjii.com/docs/writing/images.md): Add pictures to a page, place them anywhere on the printed sheet with the text wrapping around them, and credit the artist. - [Maps](https://dunjii.com/docs/writing/maps.md): Draw a map of a dungeon, cave or village in Dunjii, number its areas, and show it in your session pages. ## Layout and printing - [Printing](https://dunjii.com/docs/layout-and-printing/printing.md): Print one page, a whole folder or a list of pages, on the paper, margins and footer you choose. - [Themes](https://dunjii.com/docs/layout-and-printing/themes.md): A theme sets the paper, fonts and colors of your pages on screen and in print, for a folder and everything in it. - [Page layout](https://dunjii.com/docs/layout-and-printing/page-layout.md): How Dunjii sets a document into columns and pages, and the settings and markers that change where the text goes. - [Card sheets](https://dunjii.com/docs/layout-and-printing/card-sheets.md): Print spells, items and abilities as cards your players keep in front of them. - [Coin sheets](https://dunjii.com/docs/layout-and-printing/coin-sheets.md): Print portraits and tokens as round or square coins to cut out and put on the table for your creatures and NPCs. - [Battle maps](https://dunjii.com/docs/layout-and-printing/battle-maps.md): Print a gridded battle map at tabletop scale on a home printer, split across pages on the grid lines. ## Sharing - [Share links](https://dunjii.com/docs/sharing/share-links.md): Make a page Public or Secret, copy its link for your players, and review everything you have shared on the Shared page. - [What players see](https://dunjii.com/docs/sharing/what-players-see.md): Players read your Public and Secret pages in a read-only view, in any browser, with no account. - [Co-GMs](https://dunjii.com/docs/sharing/co-gms.md): Give another GM read and write access to your whole workspace or to some of its top-level folders. ## Your files - [Version history](https://dunjii.com/docs/your-files/version-history.md): Dunjii saves a version of a file each time it changes, so you can step back through a document's earlier versions and restore one. - [Deleted files](https://dunjii.com/docs/your-files/trash.md): A file you delete stays on the Recently deleted list for 7 days, or 90 days on Pro, and you can restore it from there. - [Download and import](https://dunjii.com/docs/your-files/download.md): Download a folder as a ZIP or a single file as itself, and add files from your computer by dragging them onto a folder. - [Desktop app and sync](https://dunjii.com/docs/your-files/desktop-app.md): The Dunjii app for Mac and Windows keeps a folder on your computer in sync with your workspace, so you can edit your files in Obsidian or any other editor. ## Agents - [Local agents](https://dunjii.com/docs/agents/local-agents.md): Point Claude Code, Codex or another coding agent at your workspace through the dunjii command. ## Reference - [Markdown in Dunjii](https://dunjii.com/docs/reference/markdown.md): Dunjii pages are GitHub-flavored markdown with a few additions for running a game. Each one still reads as plain text in any other editor. - [Document types](https://dunjii.com/docs/reference/document-types.md): The value of type in a document's frontmatter, for each game Dunjii supports, and the sections each type suggests. - [CLI reference](https://dunjii.com/docs/reference/cli.md): Every dunjii command and flag, from the command's own help.