Skip to content

First Slim project

MotionCode Dev edited this page Jul 12, 2026 · 1 revision

Welcome to the Slim wiki!

Slim is a extension built that compiles to pure JavaScript

Now that we've got that figured out, let's create our first project using it!

Your first project

Create a folder and copy the contents of this repository into it. You can do this manually by downloading the ZIP file, or using Git:

git clone https://github.com/cdmtn-dev/Slim-Language.git

After that, if you don't already have Node.js installed, install it using this link (Node.js 14+)

After successful installation, you'll need to create a slimconfig.json file:

{
    "main": "local/index"
}

As you can see, in main you have a path to a file that ends with .slim. Create it wherever you like: you can create a folder or place it directly in the project root. Here's an example of a minimal working .slim file:

log("Hello, world!")

All you have to do is run the command to compile and run Slim:

npm run slim

Clone this wiki locally