# Getting Started

![Nano-framework for Node.js powered](https://1547583854-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1ejn7fVvN8DITsnKKs%2F-M24-WfIBJzIO_iGCiJ2%2F-M24-xNAI9CDmWJWk3YR%2Fpng-512-black.png?alt=media\&token=387de1d2-2586-42d0-aa10-a8134f0eabf9)

{% hint style="info" %}
We are on [ProductHunt](https://www.producthunt.com/posts/nanoexpress) and [StackShare](https://stackshare.io/companies/nanoexpress)! Please check it out
{% endhint %}

## Coming updates and latest news at [here](https://t.me/nanoexpress)

## Features

* Express-compatible middleware\* layer
* Express-like API
* [Faster](https://github.com/the-benchmarker/web-frameworks#results) than most Node.js backend frameworks
* In-built `async` support without any of `HttpResponse` instance\*
* [Ajv](https://ajv.js.org)\* schema validator support
* [fast-json-stringify](https://github.com/fastify/fast-json-stringify)\* serialization support
* [Swagger](https://swagger.io)\* support
* In-built WebSocket support
* In-built Stream support

{% hint style="warning" %}
Code is provided as-is, do not expect or demand **free** support, warranty or debugging
{% endhint %}

## Installation

You can install&#x20;

```
$ npm i nanoexpress
# or
$ yarn add nanoexpress
```

{% hint style="warning" %}

* This library does not support **HTTP2**!
  {% endhint %}

As soon as you have installed the right package, let's create the first server

```javascript
import nanoexpress from 'nanoexpress';

const app = nanoexpress();

app.get('/', (req, res) => {
    return res.send({ status: 'ok' });
});

app.listen(3000);
```

{% hint style="info" %}
Using `app.listen(PORT, '0.0.0.0')` is recommended to use for **Docker**, **Heroku** and **AWS**
{% endhint %}


---

# 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://nanoexpress.js.org/master.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.
