Skip to content
A minimalistic 8-bit style icon shows a computer monitor with a web browser displaying code, over which large gear and folder icons appear. Beside the monitor, a stylized cloud features a branching git symbol, and a simple command line icon is included. All elements use flat geometric shapes, a five-color palette, and no additional background or shadows. The overall look is clean, iconic, and fits in a small square space.

Playground

The Playground is a self-hosted web application that allows you to run GenAIScript scripts from a friendly user interface. It sits between the GenAIScript CLI and the GenAIScript Visual Studio Code integration.

The playground is still under construction.

A screenshot of the playground.

From your project workspace root, run

Terminal window
npx --yes genaiscript serve

then navigate to the URL printed on the console (typically http://127.0.0.1:8003/).

You can run the playground on a remote repository using your current .env secrets.

Terminal window
npx --yes genaiscript serve --remote <repository>

npx can be slow to start, especially if you are running the playground frequently. You can install the playground locally with

Terminal window
npm install -g genaiscript

then run

Terminal window
genaiscript serve

You can use the --remote option to load scripts from a remote repository. GenAIScript will do a shallow clone of the repository and run the script from the clone folder.

Terminal window
npx --yes genaiscript serve --remote https://github.com/...

There are additional flags to how the repository is cloned:

  • --remote-branch <branch>: The branch to clone from the remote repository.
  • --remote-force: Force the clone even if the cloned folder already exists.
  • --remote-nstall: Install dependencies after cloning the repository.