Skip to content

Getting started with Clippy

This is a tutorial on how to create a TurboWarp extension with Clippy. Specifically, we will create a replica of a few example extensions from the TurboWarp docs.

To install the Clippy CLI, run:

npm install -D @omniblocks/clippy If you want to install the Clippy CLI on all projects, change -D to -g - note this may make it more annoying for contributors who didn’t install Clippy before, and it can also bloat your system.

To verify that Clippy was installed, run clippy help. If you see a list of commands, it’s working. If not, search up how to add your package manager’s binaries to your PATH.

To assist Clippy in collecting block declarations and generating your extension, your repository must look like this:

  • scratch.yaml or scratch.json / scratch.json5
  • Directorysrc
    • Directoryblocks
    • Directorymenus

Clipy does not care if you have additional folders or files. In fact, this can be useful for cases where you want to reuse logic multiple times.

This file includes your extension’s ID, name and other information. For now, we only need an ID and name:

id: myExtension
name: My Extension