Codapi is a platform for embedding interactive code snippets directly into your product documentation, online course or blog post. Codapi manages sand

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-04-30 03:00:06

Codapi is a platform for embedding interactive code snippets directly into your product documentation, online course or blog post.

Codapi manages sandboxes (isolated execution environments) and provides an API to execute code in these sandboxes. It also provides a JavaScript widget codapi-js for easier integration.

sandbox is the name of the pre-configured sandbox, and command is the name of a command supported by that sandbox. See Adding a sandbox for details on how to add a new sandbox.

files is a map, where the key is a filename and the value is its contents. When executing a single file, it should either be named as the command expects, or be an empty string (as in the example above).

Leave a Comment