npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@desmos-community/mathquill

v2025.12.3-experimental

Published

Nightly builds of the desmosinc/mathquill fork

Readme

Desmos Community Mathquill

MathQuill is a web formula editor designed to make typing math easy and beautiful.

Mathquill vs. Desmos Mathquill

The original Mathquill repository can be found at mathquill/mathquill. However, it is lacking many features and not well-maintained. This package is built from the desmosinc/mathquill fork, which contains many new features and bug fixes.

One caveat of Desmos Mathquill is the fact that it only supports the "basic" build type, meaning that interactively adding LaTeX commands is not supported. Instead, you're expected to use the autoOperatorNames and autoCommands options to automatically replace typed text with their respective operatornames/symbols.

As this fork is meant to be continuously integrated into the Desmos graphing calculator, it does not provide any form of official pre-built packages. This package is an unofficial release, automatically built nightly from the Desmos Mathquill repository. As such, it does not distinguish between breaking and non-breaking changes.

Installation and Usage

You can use this package in one of two ways:

Use via CDN

Add the following tags to your HTML:

<link rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/@desmos-community/[email protected]/dist/style.css"
      integrity="sha384-EwTGPJ5T8P/KXJk/NW5ysp5Sp2u6Tv6HQZgViiSZBtUW4jGQW0JHIjLjAdD9qHMu"
      crossorigin="anonymous"
      referrerpolicy="no-referrer">
<script src="https://cdn.jsdelivr.net/npm/@desmos-community/[email protected]/dist/index.global.js"
        integrity="sha384-aXAHQZH243ghQy5cZvCXFSuBGuvc03qTl/py6GhlO2hQMobnRFrUyk/O0U8L4/kN"
        crossorigin="anonymous"
        referrerpolicy="no-referrer"></script>

MathQuill is available globally:

const MQ = MathQuill.getInterface(3);

Alternatively, you can use the ESM version via a CDN. There are multiple ways to do this, so I'll leave that up to you, the user :)

Use with a bundler

First, install the package from npm:

npm install --save-exact @desmos-community/mathquill

[!IMPORTANT] Since this package uses calendar versioning instead of semantic versioning, it is highly recommended to use --save-exact.

The package can then be used as an ES Module:

import MathQuill from '@desmos-community/mathquill';
const MQ = MathQuill.getInterface(3);

Or using the global version for compatibility:

import '@desmos-community/mathquill/global';
const MQ = MathQuill.getInterface(3);

Versioning

For the reasons explained above, this package does not follow semantic versioning. Instead, it uses calendar versioning, in the format YYYY-MM-DD. Because breaking changes can and do happen within a year, this package should be installed --save-exact. Alternatively, if you want continuous updates, you can manually update the dependency version in package.json to "latest". This will update to the latest version every time the lockfile is regenerated.


Original README.md

MathQuill

by Han, Jeanine, and Mary ([email protected])

MathQuill is a web formula editor designed to make typing math easy and beautiful.

The MathQuill project is supported by its partners. We hold ourselves to a compassionate Code of Conduct.

MathQuill is resuming active development and we're committed to getting things running smoothly. Find a dusty corner? Let us know in Slack. (Prefer IRC? We're #mathquill on Freenode.)

Getting Started

MathQuill has a simple interface. This brief example creates a MathQuill element and renders, then reads a given input:

var htmlElement = document.getElementById('some_id');
var config = {
  handlers: { edit: function(){ ... } },
  restrictMismatchedBrackets: true
};
var mathField = MQ.MathField(htmlElement, config);

mathField.latex('2^{\\frac{3}{2}}'); // Renders the given LaTeX in the MathQuill field
mathField.latex(); // => '2^{\\frac{3}{2}}'

Check out our Getting Started Guide for setup instructions and basic MathQuill usage.

Docs

Most documentation for MathQuill is located on ReadTheDocs.

Some older documentation still exists on the Wiki.

Open-Source License

The Source Code Form of MathQuill is subject to the terms of the Mozilla Public License, v. 2.0: http://mozilla.org/MPL/2.0/

The quick-and-dirty is you can do whatever if modifications to MathQuill are in public GitHub forks. (Other ways to publicize modifications are also fine, as are private use modifications. See also: MPL 2.0 FAQ)