1.1.4 • Public • Published

MaiaConsole (The MaiaStudio Console)

Copyright (C) 2020 Roberto Luiz Souza Monteiro, Renata Souza Barreto, Hernane Borges de Barros Pereira.

This software is distributed under the terms of several open sources licenses.

Please read the files LICENSE, COPYING or COPYING.LIB for further information.

MaiaStudio is a lightweight and versatile web console. The only dependency is the Prism library, for syntax highlight. It is the MaiaStudio default console. MaiaStudio is the MaiaScript IDE.

MaiaScript is a programming language aimed at developing adaptable and intelligent applications. An adaptive application modifies its code to suit the conditions of the environment. An intelligent application, it learns to process the data it receives and adjusts to possible changes in its characteristics, over time. The MaiaScript language implements the adaptation paradigm, combining it with a variation of the object-oriented paradigm, simplified to exclude definitions of types and access restrictions. These characteristics make MaiaScript a programming language suitable for rapid learning, both by Computer Science professionals and scientists who are starting to implement computational algorithms. The characteristics of this language, also allow the rapid development of complex applications, especially when adaptability is necessary. MaiaScript also presents a syntax similar to that used in Mathematics, including libraries for Numerical Calculation, Complex Network Analysis, Database Access, Regular Expression Processing, and an abstraction layer between the MaiaScript interpreter and the underlying Operating System.

MaiaConsole currently implements the following features:

  • Syntax highlighting;
  • Automatic closing of structures;
  • Undo and redo;
  • Support for any language supported by the Prism syntax highlighter;
  • Lightweight and easily extensible editor;
  • Simplified API, although powerful;
  • Free software.

In addition to being accessible via the API, some commands are available as shortcut keys:

  • [CTRL] + z: undo;
  • [SHIFT] + [CTRL] + z: redo, or on macOS:
  • [CMD] + z: undo;
  • [SHIFT] + [CMD] + z: redo.

The complete documentation, can be found in the doc directory. For more information send mail to:

You can get the last MaiaStudio version at


Load the MaiaConsole library:

<script src="js/prism.js"></script>

<script src="js/maiaconsole.js"></script>

To use MaiaConsole, insert a div in your document and assign an id to it. Then initialize the div using the MaiaConsole class constructor:

<div id="editor" class='console'></div>

<script>var console = new MaiaConsole('console', 'javascript');</script>

The complete documentation of the MaiaConsole class methods can be found in the doc folder.

Thats all!


To install the MaiaConsole use the command:

npm install -g maiaconsole

Or, get it from GitHub:

git clone

Or, download the latest zipped version:


cd maiaconsole-master

npm install -g .

To try MaiaConsole on-line go to

Lauro de Freitas, August 2020.

Roberto Luiz Souza Monteiro

Package Sidebar


npm i maiaconsole

Weekly Downloads






Unpacked Size

2.29 MB

Total Files


Last publish


  • robertolsmonteiro