Skip to main content

Getting Started

txikia (Basque): small, tiny.

txiki.js is a small and powerful JavaScript runtime. It targets state-of-the-art ECMAScript and aims to be WinterTC compliant.

It's built on the shoulders of giants: it uses QuickJS-ng as its JavaScript engine and libuv as the platform layer.

Installation

Prebuilt binaries are available for macOS and Windows from the GitHub Releases page:

PlatformArchitecture
macOSarm64, x86_64
Windowsx86_64

Download the zip for your platform, extract it, and add the tjs binary to your PATH.

On Linux (and other Unixes), you'll need to build from source.

Quick start

Try it out:

./build/tjs eval "console.log('hello world')"

Run a script with tjs run:

./build/tjs run examples/hello_world.js

Explore all the options:

./build/tjs --help

Supported platforms

  • GNU/Linux
  • macOS
  • Windows
  • Other Unixes (please test!)

What's included

txiki.js comes with a rich set of features out of the box:

See the API Reference for the full documentation.