# API Reference


## App


Assemble and launch the full app


[create_app()](create_app.md#shypermaid.create_app)  
Create the Shiny app and serve `www/` at `/shypermaid`.

[run_app()](run_app.md#shypermaid.run_app)  
Launch the app and open it in a browser.


## Modules


Shiny Core modules for embedding the editor and viewer in another app


[editor_ui()](editor_ui.md#shypermaid.editor_ui)  
Code editor with an Auto-Update switch and a Render button.

[editor_server()](editor_server.md#shypermaid.editor_server)  
Track the Mermaid code the viewer should draw.

[viewer_ui()](viewer_ui.md#shypermaid.viewer_ui)  
Diagram canvas with theme, look, layout, and direction menus and tools.

[viewer_server()](viewer_server.md#shypermaid.viewer_server)  
Send the code and render options to the browser for drawing.


## Diagram helpers


Shiny free functions that prepare Mermaid code and render options


[set_direction()](set_direction.md#shypermaid.set_direction)  
Rewrite the direction of a flowchart, state, class, or git graph diagram.

[render_config()](render_config.md#shypermaid.render_config)  
Build the options passed to `mermaid.initialize()`.
