1: \begin{abstract}
2: Spectral line observations are an indispensable tool to remotely probe the physical and chemical conditions throughout the universe.
3: Modelling their behaviour is a computational challenge that requires dedicated software.
4: In this paper, we present the first long-term stable release of \textsc{Magritte}, an open-source software library for line radiative transfer.
5: First, we establish its necessity with two applications.
6: Then, we introduce the overall design strategy and the application/programmer interface (API).
7: Finally, we present three key improvements over previous versions:
8: (1) an improved re-meshing algorithm to efficiently coarsen the spatial discretisation of a model;
9: (2) a variation on Ng-acceleration, a popular acceleration-of-convergence method for non-LTE line transfer; and,
10: (3) a semi-analytic approximation for line optical depths in the presence of large velocity gradients.
11: \end{abstract}
12: