github.com/Cheng-DX/formula-editor

A simple tool to edit formula

Open this visualization on its own page →

Contributors

2

Lines of Code

291

From

2022-04-13

To

2022-05-07

About Cheng-DX/formula-editor

Formula Editor is a TypeScript-based tool for creating and editing mathematical formulas using composable code. It allows users to build complex formulas by combining data and other formulas together, with real-time transformation and validation as you type.

The editor supports importing and exporting formulas and data in JSON format, making it easy to save and share work. It includes helpful features like automatic filtering of available data and formulas as you type, support for multiple bracket types, and syntactic sugar for common operations like squaring (^2) and square roots (^0.5). The interface can be customized, and formulas can be nested up to 10 levels deep.

The project has reached version 1.0.0 stability and includes an online playground for trying it out. It's designed for users who need to work with mathematical formulas programmatically, offering a balance between simplicity and powerful composition features. The codebase is actively maintained with regular updates that have improved the insertion logic, filtering capabilities, and overall user experience.

Share this video