Blog home

Introducing CEL Playground

Explore CEL Playground, an environment for testing CEL expressions, including real-world examples, customization possibilities, and built-in libraries.

Author Avatar

Published by

Marianna Medeiros

3 min read

June 29, 2023

Post Image

Expression evaluation is a crucial aspect of various programming languages and tools. Being able to quickly test and validate expressions can greatly enhance developers productivity and reduce time spent on troubleshooting and debugging. That's why we are excited to announce the launch of CEL Playground, a powerful tool to test CEL expressions.

CEL (Common Expression Language) is a simple yet expressive language that implements common semantics for expression evaluation, enabling different applications to more easily interoperate. It has been gaining popularity due to its versatility, ease of use, and widespread adoption by industry-leading platforms such as Kubernetes and projects like Marvin.

CEL Playground provides a zero-install development environment where developers can do experiments with CEL directly from their browsers.

Whether you’re a beginner learning CEL or a seasoned developer working with complex expressions, CEL Playground is designed to meet your needs.

Real-World Examples and Starter Policies

CEL Playground

CEL Playground comes including a variety of real-world examples and starter policies to help you get started quickly. These examples serve as excellent starting points for beginners and provide insights into the best practices of writing CEL expressions. CEL Playground also includes a simplified mock data set to streamline the learning process and make it more accessible.

Flexible Expression Customization


CEL Playground not only provides an out-of-the-box expression, but also gives you the freedom to delete all policy contents, and start from scratch. This level of customization is particularly beneficial when you are trying to familiarize yourself with CEL language and specification. You can modify and refine expressions based on your specific use cases and requirements.

CEL Libraries

CEL Playground utilizes WebAssembly to compile Go code and seamlessly integrates the functions of the following libraries:

Take a look at all the environment options.

Available Now

Try CEL Playground and experience the convenience of testing and evaluating CEL expressions.

We are eager to hear your feedback and suggestions. Your insights and ideas are invaluable to us as we continue to refine and enhance this tool. Join our slack community and be part of the dialogue regarding CEL Playground's development and other Undistro products.

For more information on CEL Playground, please visit our GitHub.

Happy coding!

References

https://github.com/google/cel-spec