Just

crates.io

NOTICE: README LINKS AND SITE ARE WIP. LINKS MAY NOT WORK

just circle logo

Just is a simple, and modern runtime for JavaScript that uses V8 and is built in Rust.

Features

Install

Shell (Mac, Linux):

sh curl -fsSL https://justjs.dev/install.sh | sh

PowerShell (Windows):

powershell irm https://justjs.dev/install.ps1 | iex

Homebrew (Mac):

sh brew install justjs

Chocolatey (Windows):

powershell choco install justjs

Scoop (Windows):

powershell scoop install justjs

Build and install from source using Cargo:

sh cargo install justjs --locked

Getting Started

Try running a simple program:

sh just run https://r.justjs.dev/std/examples/welcome.js

Or a more complex one:

```js import { Database } from 'https://r.justjs.dev/sqlite'; import { id } from 'https://r.justjs.dev/id';

const db = new Database('db_name');

db.create('versions', 'id text primary key, version text'); await cmd.spawn('just -v').then((output) => { db.add('versions', { id: id.secure(), version: output }); });

console.json(db.get('versions', "where version = '%s'".format(cmd.exec('just -v'))), true); ```

Just package registry can be located here (api).

You can find a deeper introduction, examples, and environment setup guides in the docs.

The complete API reference is available at the runtime documentation.