OPA Ecosystem / Learning Rego

Learning Rego

Regal

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

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

Alfred

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

Styra

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

Integrations are ordered by the amount of linked content.