BASE

Mafs

Mafs

Visualization library · Free

Interactive math React components: they connect coordinates, equations, and user input to build visual mathematical applications.

Also known as: stevenpetryk/mafs; mafs

Resource illustration: Mafs

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Create an interactive mathematical explanation
  • Connect React components to interactive points or controls and test graph changes

Example workflow

A possible workflow; this is not a report of hands-on testing.

Create an interactive mathematical explanation.

Before you start

  • Data, units, and the visualization question.
  • The application's container and UI stack.

Steps

  1. Define coordinates, the equation, and adjustable visual example parameters.
  2. Connect React components to interactive points or controls and test graph changes.
  3. Check the chart with real and empty data.

Check your result

  • Scales and labels do not distort data.
  • Keyboard access, contrast, and an alternative representation are available.

Choosing Mafs

Create an interactive mathematical explanation

Choose this when

  • Create an interactive mathematical explanation
  • Connect React components to interactive points or controls and test graph changes

Requirements

  • Define a constraint returning a permitted point without side effects; with dynamic point counts, follow React rules of hooks.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • Transforms pass the original untransformed point to constrain and transform the result; account for the coordinate system.

Frequently asked questions

What can you use for free in Mafs?

Code and local use under MIT.

What additional costs might arise with Mafs?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Mafs?

MIT for the code; dependencies have separate licenses.

How do you get started with Mafs?

Define coordinates, the equation, and adjustable visual example parameters. Connect React components to interactive points or controls and test graph changes. Check the chart with real and empty data.

Can a Mafs movable point use keyboard control and a constrained path?

Movable points support dragging and keyboard movement. useMovablePoint supports horizontal/vertical constraints or a function mapping an original point to a permitted position, such as snapping to integer coordinates. constrain may run multiple times during arrow-key movement and must be side-effect free. For a dynamic number of points, use MovablePoint directly.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Mafs
  • chart
  • Development

Sources

Other resources