> For the complete documentation index, see [llms.txt](https://nanoexpress.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nanoexpress.js.org/master.md).

# Getting Started

![Nano-framework for Node.js powered](/files/-M24-xNAI9CDmWJWk3YR)

{% 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.
