Code Run

A base Atlassian Forge app for running code snippets directly within Confluence wiki as a Macro.


Use cases

  • Developer tutorials and instructions.
  • Ping servers for health.
  • Poll remote API's for data.
  • Anything you can use remote code execution from within a wiki context without requiring IDE's or other developer tooling installed on the machine.
  • Create a matrix of scripts that allow querying several different data sources at the same time.

Currently supports 6 languages in languages.ts - more can be added.


  • Configure your initial script for the confluence page user.
  • Select language for the snippet from the MacroConfig.
  • User or viewer of the confluence page can edit or tweak the macro script on the fly!

Example of user demand/request:


See Set up Forge for instructions to get set up.


Once you have logged into the CLI (forge login), follow the steps below to install the app onto your site:

  1. Clone this repository
  2. Run forge register to register a new copy of this app to your developer account
  3. Run npm install to install your dependencies
  4. Run forge deploy to deploy the app into the default environment
  5. Run forge install and follow the prompts to install the app

Follow the guide available on the github here!

Built With

Share this project: