Getting the app running

The editor is a web app. Download it ready-built or build it once, then open its index.html from your disk: no server to run, no account to make. Everything else on this page is optional.

The ready-built app

The editor is published ready-built on the releases page of its repository: a ZIP of about 2.5 MB, manim-formula-editor-1.0.0.zip for this version. Unzip it anywhere and open the index.html of its folder in your browser. It is the editor a build makes (below), so you need neither Git nor Node.js for it.

The ZIP holds the editor alone, with Chroma Lab inside and the licences of what it contains. The companion is a file of the repository, companion/mfe_companion.py: take it from there when you want it.

What you need

To build the editor yourself and run it:

You need no Manim to write, preview and play an animation, nor to export a video from the browser. Manim is for running the Python the editor exports (below).

The built app, from disk

Get the code, install what it depends on, and build it:

git clone https://github.com/zavden/mfe.git
cd mfe/app
npm install
npm run build

npm run build type-checks the app and writes the finished editor into app/dist/. Open app/dist/index.html in your browser: double-click it, drag it onto a browser window, or ask the system to open it:

xdg-open dist/index.html     # Linux
open dist/index.html         # macOS
start dist\index.html        # Windows

dist/ is the whole editor: one script, its stylesheet, its fonts, and Chroma Lab in dist/chroma-lab/. Its addresses are relative and it needs nothing from the internet, which is why it opens from disk. You can copy the folder wherever you like.

The first time, the editor shows an empty project: no formulas, two empty tracks, and in the Creator two buttons, Try an example, which opens a finished project to play and change (The examples), and Sync folder…, for the folder of your own projects.

The editor at its first start: an empty project called Untitled, with 'No formulas yet' and the buttons Try an example and Sync folder… in the Creator, an empty Preview, and two empty tracks in the Timeline.
The editor at its first start. The bar says Untitled · Not saved yet and Renderer: MathJax.

The dev server

If you would rather not build, or you want to see changes to the app at once, run the development server from app/:

cd mfe/app
npm install      # the first time
npm run dev

Vite prints the address to open, http://localhost:5173/ unless that port is busy. It is the same editor. The difference that matters to you: a page served from localhost is one the companion accepts without any option, which a page opened from disk is not.

Three ways to open it

The editor is the same whichever way you open it. What changes is the address the page has, and that decides whether the companion accepts it.

WayYou runYou openThe companion
The built app, from disknpm run build, onceapp/dist/index.htmlNeeds --allow-file-origin
The dev servernpm run devhttp://localhost:5173/Accepts it as it is
Served by the companionmfe_companion.py serve --app app/disthttp://127.0.0.1:7799/app/Is the page's own origin: nothing to allow

Check that it works

Open Help ▸ About. It names the editor's own version first (Version 1.0.0), then the version of the project format, the version of MathJax that draws the formulas, and whether a companion is running. Its Third-party licenses… button, which Help ▸ Third-party licenses… also opens, lists the open-source components the editor contains, with their versions and licences.

The About dialog: the name of the editor, its version 1.0.0, the project format number, the MathJax version, the companion line 'Not running (optional: exact LaTeX, ffmpeg, Manim)', and the licence.
The About dialog of an editor with no companion running.
The formula editor, titled Formula · f1, after Apply. The Raw LaTeX field (1) holds x + 3 = 5; the Apply button (2) is at the bottom left, and the line beside it (3) reads '5 glyphs · MathJax'. At the right, the five glyphs of the formula, each in a box.
The formula editor at the end of the steps: the Raw LaTeX field (1), Apply (2), and the line that counts the glyphs and names what drew them (3).

Browsers

The editor runs in the browser and draws its formulas there, so it needs nothing but the page. One thing differs between browsers: whether the page may open and write the files and folders of your disk. Chrome and Edge give it the File System Access API. Firefox and Safari do not.

What you doChrome, EdgeFirefox, Safari
File ▸ Open…, then Other file…Reads the file and remembers where it is.Reads a copy of the file you choose.
File ▸ SaveWrites the same file. The first time, a picker asks where.Downloads a new file each time; the file you opened is not written.
File ▸ Sync folder…Keeps the folder and lists it again whenever the Projects dialog opens. A project opened from it saves in place, and Save As starts there.Takes the folder as it is at that moment. It is not read again until you sync it again, and nothing is written into it.
Your templatesKept in the browser, and also in the synced folder.Kept in the browser only; Export takes them elsewhere.
Export ▸ Video…The dialog asks where to save the file first, then writes it as it encodes.The video is put together in memory and downloaded at the end.

The editor decides by what the browser can do, not by its name. When the browser cannot write files or folders, the editor tells you once per session, as it opens, in a notice that stays until you close it:

A notice titled 'This browser works on copies of your files', saying the browser gives the editor no way to write a file or a folder of your disk, and listing what that means for Open, Save, Sync folder and templates.
The notice a browser without file access shows.

Chroma Lab, inside the app

Chroma Lab is a colour studio for designing the palette of a scene: harmonies, roles for the parts of a formula, and contrast against the scene's background. It comes inside every build, as a copy kept in dist/chroma-lab/, and works offline. There is nothing to install.

Open it with Preferences ▸ Chroma Lab…. Editor palettes…, the entry after it, is where the palettes you keep are listed and edited.

The Preferences menu, open. Numbered rings mark its last two entries: Chroma Lab… (1) and Editor palettes… (2).
Chroma Lab (1) and Editor palettes… (2) in the Preferences menu.
Chroma Lab open in a dialog over the editor: its pages in a column on the left, a base colour, a harmony, and a row of colours with their roles.
Chroma Lab, open over the editor. A theme goes to the editor's palettes with one button.

Palettes and Chroma Lab shows how to design a palette and send it to the editor.

The optional companion

The companion is one Python file that you start yourself. The editor works without it: Without the companion says what you have then, and the one place where it shows in what you export. With it, the editor can get:

It needs Python 3.10 or later (and nothing to install for the file itself), and, for exact glyphs, latex and dvisvgm on your PATH. Start it from the repository's root:

python3 companion/mfe_companion.py serve

That gives exact glyphs, and encoding with ffmpeg where ffmpeg is installed. Font text also needs the Python of your Manim (--ce-python or --gl-python names it), and rendering with Manim needs --allow-manim-render as well.

The editor finds it by itself. Once formulas use it, the bar says Renderer: LaTeX (or mixed while some still use MathJax). If something is missing, ask the companion what this machine lacks and how to get it:

python3 companion/mfe_companion.py health

When you open the built editor from disk, the companion refuses the page unless you start it with --allow-file-origin. Or let the companion serve the editor itself, and open http://127.0.0.1:7799/app/:

python3 companion/mfe_companion.py serve --allow-file-origin
python3 companion/mfe_companion.py serve --app app/dist

Which options turn on which features, and what each costs, is in The companion.

Manim, to run the Python

The editor exports a Python scene for ManimCE (the community edition, 0.22) or ManimGL (3Blue1Brown's, 1.7). To render that file you need the matching Manim, installed the way its own documentation says:

The first lines of every exported file give the command that renders it at the project's size and frame rate, for example manim -r 1920,1080 --fps 60 FirstTransform.py FirstTransform. The generated Python and ManimCE and ManimGL tell the rest.

Where to go next