All plugins

Playground

Interactive JavaScript runtime and live HTML component previews.

Built-in @docmd/plugin-playground

Overview

Embed runnable JavaScript environments, live HTML component previews, tabbed Live/Code toggles, and active codebase scripts using ::: playground. Features real-time console interception and client-side reactivity with zero external dependencies.

Installation

# Playground ships with docmd — nothing to install. docmd build

This plugin is built into docmd — nothing to install.

Permissions

Runtime behaviour of this plugin during a build:

CapabilityUsed
Reads project filesYes
Writes to site/No
Network requestsNo
Runs subprocessNo

Capabilities

docmd hooks this plugin registers:

markdown assets

Tags

playgroundinteractivecodelivepreview