Skip to main content

The Rego Playground

OPA gives you a high-level declarative language for authoring policies as code, called Rego. Today we're excited to launch The Rego Playground, a new interactive tool for writing, testing, and sharing Rego policies.

The initial version of The Rego Playground has support for:

  • Syntax highlighting that makes policies easier to read and write.
  • Interactive evaluation of expressions, queries, rules, and packages.
  • Input dialog to specify complex JSON inputs for your policy.
  • Sharing so that you can link to policies online.

We hope the playground makes it easy for people to try out new policies and learn the language. We plan to keep improving the playground and eventually embed it into the OPA documentation. Check out the video below for a demo of the playground and its features.

Watch: Rego Playground Demo