Skip to content
@formulae-org

Fōrmulæ

A visual, web-based AI notebook and programming language

Fōrmulæ banner

Fōrmulæ

One visual workspace for composing, conversing, and computing — where every expression is a tree you build by sight, not text you type.

🌐 Try it now at formulae.org

Fōrmulæ is a web-based environment built around a single idea: information — a formula, a program, a document, a question for an AI — is a tree-structured expression, edited visually and rendered as proper mathematical and scientific notation on an HTML canvas. There is no syntax to learn and nothing to install; it runs entirely in the browser.

The same expression can be used three ways:

  • Compose — display it. Paragraphs, tables, equations, images, links, colors, lists — a Fōrmulæ document is pretty-printed like a page, so a single file is both a runnable program and readable documentation.
  • Converse — send it to an AI. The expression is the prompt; the model replies with another Fōrmulæ expression that renders in place. Because notation is structured, both the question and the answer can carry equations, matrices, tables, code, and inline images.
  • Compute — evaluate it. Arithmetic, symbolic algebra, logic, lists, strings, control flow… the workspace is a live REPL — except you can return to any earlier question, change it, and recompute.

Fōrmulæ is the only AI notebook where mathematical and scientific notation is a first-class data type in both the question and the answer. Connect OpenAI, Anthropic, or Google — or a private, local model via Ollama.

Repositories

Repository Description
formulae-js Core web application — engine, canvas renderer, REPL, AI connections
web-content The live website: articles, showcases, examples and reference (.formulae files)
package-*-js One repository per package (see list below)

Packages

Each package lives in its own repository named package-{name}-js and adds the expressions for one field — visualization, editing, and (where applicable) evaluation:

arithmetic · complex · symbolic · logic · relation · list · matrix · set · programming · calculus · statistics · typesetting · plot · chart · color · graphic-raster · diagramming · internet · time · chemistry · cryptography · data · bitwise · localization · and more.

The web app loads a base set of packages at startup and can load others on demand.

Getting started

The easiest way to use Fōrmulæ is at formulae.org — nothing to install. New here? Start with the Tutorial, which walks you through the interface in about 15 minutes. Then open a showcase straight from the site (e.g. ?script=showcases/Arithmetic) to see a package at work, or try the AI Converse demo at ?script=examples/AI converse.

Contributing

Contributions are welcome — bug reports, new packages, translations, and content (articles, showcases, examples). Building a package? The Developer's guide for packages walks you through defining, visualizing, editing, and reducing expressions. Please open an issue or pull request in the relevant repository.

For questions or general contact: contact@formulae.org

License

All repositories are released under the GNU Affero General Public License v3.0.

Popular repositories Loading

  1. formulae-js formulae-js Public

    A visual, web-based programming language and AI notebook: compute, compose, converse.

    JavaScript 10

  2. web-content web-content Public

    The official set of Fōrmulæ files that encompasses the Fōrmulæ website.

    3 1

  3. package-arithmetic-js package-arithmetic-js Public

    Arithmetic package for Fōrmulæ, in JavaScript

    JavaScript 2

  4. package-relation-js package-relation-js Public

    Relation package for Fōrmulæ, in JavaScript

    JavaScript 2

  5. package-library-js package-library-js Public

    Library management package for Fōrmulæ, in JavaScript

    JavaScript 2

  6. package-logic-js package-logic-js Public

    Logic package for Fōrmulæ, in JavaScript

    JavaScript 1

Repositories

Showing 10 of 37 repositories

Top languages

Loading…

Most used topics

Loading…