OPA Ecosystem / Learning Rego

Learning Rego


The Linter of Rego Language by Styra

Regal can automatically check for common Rego mistakes as you code. Each violation is accompanied by a detailed explanation which can be a great learning tool for new Rego users. See the Supported Rules.
View Regal Details

OPA Playground

Online Rego Playground by Styra

Sometimes if you’re working on a Rego policy in an integrated system it can help to debug it in isolation first. The playground is a great place to do that. Get started with a hello world example.
View OPA Playground Details

Rego Cheat Sheet

Quick reference for learning Rego by Styra

The Rego Cheat Sheet was designed as a language reference, featuring common contact points, with Rego learners in mind.
View Rego Cheat Sheet Details

Styra Academy

OPA Learning Portal by Styra

‘OPA Policy Authoring’ is a free course that teaches the fundamentals of writing Rego policies.
View Styra Academy Details


Self-hosted OPA playground by Dolev Farhi

Similar to the public OPA Playground, Alfred can be used to learn Rego interactively in an environment that can’t use the public playground. Read about installation.
View Alfred Details

Awesome OPA List


The Awesome OPA project maintains a list of policy packages, and editor integrations which can be helpful references for learning Rego.
View Awesome OPA List Details

Express OR in Rego

Idiomatic Rego Examples by Styra

This learning material is a great way to learn how to migrate logic from other languages to Rego.
View Express OR in Rego Details

Rego Language Comparisons

Learn Rego by comparison by Styra

The Rego Language Comparisons guide provides a series of examples illustrating how a policy can be expressed in a given language and the corresponding Rego code for comparison. Java, Python, and Go are currently covered.
View Rego Language Comparisons Details

Integrations are ordered by the amount of linked content.

Do you have an OPA-based project or integration to share? Follow these instructions to get it listed or go to the #ecosystem channel in the OPA Slack if you have any questions.