# docmd docs - Full Context > Generated by docmd --- ## [Browser API (Client-Side)](https://docs.docmd.io/04/advanced/browser-api/) --- title: "Browser API (Client-Side)" description: "How to use the docmd engine directly in the browser to render documentation dynamically without a server." --- `docmd` features an **isomorphic core**. This means the exact same engine that builds your static site in Node.js can also run entirely inside a web browser. This is powerful for: * Building **CMS Previews** (Type markdown, see result instantly). * Creating **Playgrounds** (Like [CodePen](https://codepen.io) for docs). * Embedding documentation rendering into existing React/Vue/Angular apps. ## Installation via CDN You don't need to install Node.js. You can simply include the scripts and styles from a CDN like `unpkg` or `jsdelivr`. ```html ``` ## Usage Once the script loads, it exposes a global `docmd` object. ### `docmd.compile(markdown, config)` Compiles Markdown text into a complete HTML document string. **Parameters:** * `markdown` (String): The raw Markdown content. * `config` (Object): Configuration overrides (same structure as `docmd.config.js`). **Returns:** * `String`: The full HTML string (including ``, ``, `
`, ``). ### Example: Live Preview Iframe The safest way to render the output is inside an `