Getting Started
Thanks for choosing nanoexpress!
Nano-framework for Node.js powered
We are on ProductHunt and StackShare! Please check it out

Coming updates and latest news at here

Features

  • Express-compatible middleware* layer
  • Express-like API
  • Faster than most Node.js backend frameworks
  • In-built async support without any of HttpResponse instance*
  • Ajv* schema validator support
  • fast-json-stringify* serialization support
  • Swagger* support
  • In-built WebSocket support
  • In-built Stream support
Code is provided as-is, do not expect or demand free support, warranty or debugging

Installation

You can install
1
$ npm i nanoexpress
2
# or
3
$ yarn add nanoexpress
Copied!
  • This library does not support HTTP2!
As soon as you have installed the right package, let's create the first server
1
import nanoexpress from 'nanoexpress';
2
3
const app = nanoexpress();
4
5
app.get('/', (req, res) => {
6
return res.send({ status: 'ok' });
7
});
8
9
app.listen(3000);
Copied!
Using app.listen(PORT, '0.0.0.0') is recommended to use for Docker, Heroku and AWS
Last modified 7mo ago