shipped some big perf wins to the @mintlify editor in the last few weeks, particularly for large pages, and I wrote a blog post about how it was done!
mintlify.com/blog/editor-per…
we have a file dubbed "nuclear bomb" with >25k lines used to stress test the @mintlify editor; i shipped some big perf wins with:
- 28x faster to open page
- 14x faster to type a sentence
- 26x faster to see markdown mode
before & after below, blog post to come!
joined @mintlify a few weeks ago and this is my favourite thing i've shipped so far: making our source mode editor properly collaborative with the wysiwyg editor. i also shipped autocompletion and hover docs in source mode. live now on app.mintlify.com!
previously, visual/wysiwyg mode already had live collaboration; every change made by any collaborator was a transaction that was synced to you in real time, and vice versa, carets included.
however, source mode was not a part of this: it instead kept a local mdx draft that synced on a debounce, so any invalid changes blocked the entire page, other people's changes could only sync when you stopped typing, and you also couldn't see each other's cursors.
now, every edit in source mode becomes a transaction on the same shared document in visual mode. this is achieved by mapping every character of mdx to its corresponding spot in the visual document, re-parsing only parts of the document that you are editing, holding syntactically incorrect changes locally, and fitting any collaborative edits around those changes. the mapping also allows carets to be shown collaboratively across formats!































