Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BackendStack21/restana
Restana is a lightweight and fast Node.js framework for building RESTful APIs.
https://github.com/BackendStack21/restana
framework http http-server microservices middleware nodejs nodejs-server rest-api restful webserver
Last synced: 14 days ago
JSON representation
Restana is a lightweight and fast Node.js framework for building RESTful APIs.
- Host: GitHub
- URL: https://github.com/BackendStack21/restana
- Owner: BackendStack21
- License: mit
- Created: 2017-04-17T13:41:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-06T14:27:44.000Z (7 months ago)
- Last Synced: 2024-05-19T15:44:47.354Z (6 months ago)
- Topics: framework, http, http-server, microservices, middleware, nodejs, nodejs-server, rest-api, restful, webserver
- Language: JavaScript
- Homepage:
- Size: 831 KB
- Stars: 457
- Watchers: 15
- Forks: 26
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- cuban-opensource - restana - services. (Frameworks / Telegram)
- awesome-nodejs - restana - Super fast and minimalist framework for building REST micro-services. ![](https://img.shields.io/github/stars/BackendStack21/restana.svg?style=social&label=Star) (Repository / Web Frameworks)
README
# Introduction
[![NPM version](https://badgen.net/npm/v/restana)](https://www.npmjs.com/package/restana)
[![NPM Total Downloads](https://badgen.net/npm/dt/restana)](https://www.npmjs.com/package/restana)
[![License](https://badgen.net/npm/license/restana)](https://www.npmjs.com/package/restana)
[![TypeScript support](https://badgen.net/npm/types/restana)](https://www.npmjs.com/package/restana)
[![Github stars](https://badgen.net/github/stars/jkyberneees/restana?icon=github)](https://github.com/jkyberneees/restana)
Restana is a lightweight and fast Node.js framework for building RESTful APIs. Inspired by Express, it provides a simple and intuitive API for routing, handling requests and responses, and middleware management. It is designed to be easy to use and integrate with other Node.js modules, allowing developers to quickly build scalable and maintainable APIs.
Read more online:
- restana = faster and efficient Node.js REST APIs: https://itnext.io/restana-faster-and-efficient-node-js-rest-apis-1ee5285ce66![Performance Benchmarks](docs/Benchmarks.png)
> Check it yourself: https://web-frameworks-benchmark.netlify.app/result?f=feathersjs,0http,koa,nestjs-express,express,sails,nestjs-fastify,restana# Usage
Install
```bash
npm i restana
```
Create unsecure API service:
```js
const restana = require('restana')const service = restana()
service.get('/hi', (req, res) => res.send('Hello World!'))service.start(3000);
```
Creating secure API service:
```js
const https = require('https')
const restana = require('restana')const service = restana({
server: https.createServer({
key: keys.serviceKey,
cert: keys.certificate
})
})
service.get('/hi', (req, res) => res.send('Hello World!'))service.start(3000);
```Using `http.createServer()`:
```js
const http = require('http')
const restana = require('restana')const service = restana()
service.get('/hi', (req, res) => res.send('Hello World!'))http.createServer(service).listen(3000, '0.0.0.0')
```# More
- Website and documentation: https://restana.21no.de