A Directus extension for calculating field values based on other fields using client-side templates and operators.
Directus Extension Computed Interface is a Directus extension that automatically calculates field values within an item by referencing other fields, performed entirely on the client side. It enables dynamic computations like arithmetic, string manipulation, and date formatting directly in the Directus interface without requiring server-side processing. This solves the need for creating derived fields or aliases that update based on other data in the collection.
Directus developers and administrators who need to create calculated fields, display derived values, or set up alias fields within their Directus data models without writing custom backend logic.
Developers choose this extension for its comprehensive, client-side templating engine that supports a wide range of operators (arithmetic, string, date, boolean, array, JSON, relational) and dynamic variables, all without external dependencies. Its flexibility in display modes (Display Only, Read Only, editable) and ability to function as an alias field provide seamless integration into Directus workflows for real-time data calculations.
Perform computed value based on other fields
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports over 50 operators across arithmetic, string, date, boolean, array, JSON, and relational types, enabling complex derivations like SUM, SLUG, or IF conditions without custom code.
Offers Display Only, Read Only, and editable modes, allowing computed values to function as aliases that don't save to the database, with optional CSS styling for customization.
Includes built-in variables like $NOW and $CURRENT_USER for real-time calculations based on current date or user identity, enhancing interactivity in forms.
No third-party libraries, making it a dependency-free extension that installs easily and integrates directly into Directus workflows without additional setup.
Calculations only occur within the Directus interface; updates via API calls or hooks bypass computations, risking data inconsistencies in server-side processes.
For M2O, O2M, and M2M fields, only direct relation fields can be accessed—deeper nesting isn't supported, limiting complex cross-collection logic.
While debug mode exists, there's no robust error handling for invalid templates or data types in production, potentially causing silent failures in calculations.