# Preview

[**SchemaJS**](https://github.com/Schema-JS/schema-js) is an open-source database system built on V8, the JavaScript engine, using JavaScript/TypeScript as its query language. This approach minimizes context switching between technologies, allowing for consistent use of the same language across your application stack.

Let's create your first database in under five minutes.

## Install SchemaJS

Install SchemaJS on your system using one of the terminal commands below

{% tabs %}
{% tab title="macOS" %}

```sh
curl -fsSL https://schemajs.com/install.sh | sh
```

{% endtab %}

{% tab title="Windows" %}

```powershell
irm https://schemajs.com/install.ps1 | iex
```

{% endtab %}

{% tab title="Linux" %}

```sh
curl -fsSL https://schemajs.com/install.sh | sh
```

{% endtab %}
{% endtabs %}

After installation, you should have the `schemajs` executable available on your system path. You can verify the installation by running:

```
schemajs --help
```

## Hello World

SchemaJS supports both JavaScript and [TypeScript](https://www.typescriptlang.org/) natively, letting you implement your database using either language. To get started with your first "Hello World", refer to the following documentation.

After successfully installing `schemajs`, navigate to the folder where you’d like to initialize boilerplate code and run the following command:

```sh
$ schemajs init
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.schemajs.com/getting-started/preview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
