Edoardo Rusconi

My First Open-Source Contribution to FEAScript

19 August 2026

  • JavaScript
  • FEA
  • Open Source
  • Testing

I found an issue in FEAScript, an open source finite element library in JavaScript. solveAsync wasn’t passing the coefficient functions on to the solver, so even if a model had a non-constant conductivity or heat source, it was effectively using k=1 and Q=0. Fixing it only took one line of code.

Live FEAScript, running in your browser: the red line is what the bug solved.

The same thing in 2D: a plate with a hot spot, edges held at 0.

The main task was writing new tests. I checked the solver against known results, then deliberately introduced 8 errors in the code to see whether the tests caught them. They did, whereas the existing test failed to catch any.

Pull request #91 was merged in August 2026.