SmallJS

SmallJS documentation

Click on the headings to open further documentation.

Installing

How to install SmallJS.

SmallJS language

Design choices and tutorial for SmallJS.

Folders in the repo

The repo has the following other subfolders in the root:

Smalltalk

The main Smalltalk library source code of the system,
for browser and Node.js environments and classes shared by both.

Compiler

The compiler (transpiler) compiles from ST to JS, running in Node.js.
It is called from other projects, like ./Node and ./Browser.

Browser

Test application for running SmallJS code in web browsers.

Node

Test application for running SmallJS code in Node.js.

Database

A guide to installing and using supported databases with SmallJS.

Examples

Example projects written in SmallJS: Counter, Todo and Shop.

Extension

The SmallJS language extension for syntax coloring and debugging in VSCode.

Playground

A playground app where you can evaluate arbitrary Smalltalk (ST) expressions.
The playground is available online too: small-js.org/Playground

Contributions

Contributions to SmallJS that are not part of the main system. but show interesting applications.