FLUTTER ECOSYSTEM

cel

This project parses and evaluates Common Expression Language (CEL) programs against some inputs.

Latest version
0.6.0
30-day downloads
72.9K
Likes
6
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The cel package enables parsing and evaluating Common Expression Language (CEL) expressions within Dart applications. It allows developers to dynamically evaluate logical, arithmetic, and conditional expressions at runtime using structured input data. This is particularly useful for implementing flexible rule engines, configuration validation, or policy checks in apps. The package supports a wide range of CEL features including variables, functions, and type checking, ensuring safe execution of expressions. It integrates seamlessly with Flutter projects via pub add. The source code is open-source and hosted on GitHub for transparency and contribution.

Use cases
  • Dynamic rule evaluation
  • Configuration validation
  • Policy enforcement
  • Runtime expression evaluation
  • Input filtering
Key features
  • Supports full CEL syntax
  • Safe expression execution
  • Variable and function support
  • Type-safe evaluation
  • Open-source and well-documented
Suitable for
  • Applications needing dynamic logic
  • Backend rule engines
  • Testing frameworks requiring expression checks
  • Configurable business rules
Considerations
  • Requires understanding of CEL syntax
  • Limited platform support listed
  • No built-in caching for repeated evaluations
  • Not designed for high-frequency use without optimization
Supported platformsNot available

Install package

flutter pub add cel

Categories

Dependencies

Dependency list 3 items

Source repository

Related projects

Rankings