• Stars
    star
    464
  • Rank 94,450 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Restana is a lightweight and fast Node.js framework for building RESTful APIs.

Introduction

NPM version NPM Total Downloads License TypeScript support Github stars

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:

Performance Benchmarks

Check it yourself: https://web-frameworks-benchmark.netlify.app/result?f=feathersjs,0http,koa,nestjs-express,express,sails,nestjs-fastify,restana

Usage

Install

npm i restana

Create unsecure API service:

const restana = require('restana')

const service = restana()
service.get('/hi', (req, res) => res.send('Hello World!'))

service.start(3000);

Creating secure API service:

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():

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

More Repositories

1

fast-gateway

Fast-gateway is an easy to use Node.js API gateway framework built to handle large scale API traffic with great performance and scalability. Written with JavaScript, it is a framework for the masses!
JavaScript
311
star
2

0http

Zero friction HTTP requests router. The need for speed!
JavaScript
153
star
3

keycloak-backend

Keycloak Node.js minimalist connector for backend services integration.
TypeScript
71
star
4

http-cache-middleware

HTTP Cache Middleware
JavaScript
29
star
5

jwt-keys-generator-api

A simple and secure JSON Web Token (JWT) signing/verification keys generator that uses OpenSSL.
JavaScript
12
star
6

rproxy

HTTP reverse proxy implementation based on Node.js and Docker
JavaScript
10
star
7

http-lambda-proxy

HTTP to AWS Lambda proxy
JavaScript
8
star
8

fast-proxy-lite

Node.js framework agnostic library that enables you to forward an http request to another HTTP server. Supported protocols: HTTP, HTTPS
JavaScript
7
star
9

restana-static

Efficiently serve static files using Node.js and Docker containers.
JavaScript
5
star
10

item-store-redis

This module provides classes that implement repositories for storing and retrieving data in a Redis database
TypeScript
4
star
11

middleware-if-unless

Invokes connect-like middleware if / unless routing criteria matches. Inspired on express-unless module.
JavaScript
4
star
12

realtime-forum

Realtime Pub/Sub - Community Discussion Forum
4
star
13

0http-bun

Bun-based HTTP framework inspired by 0http
JavaScript
3
star
14

on-http-end

Allows to capture HTTP response content and headers on request end.
JavaScript
3
star
15

restana-swagger-validator

Swagger/OpenAPI validation middleware.
JavaScript
2
star
16

website

21no.de website
HTML
1
star
17

echo-api

"Echo API" is a Docker-based solution to help debugging client services and API gateway solutions.
JavaScript
1
star
18

realtime-pubsub-client-go

The official Realtime Pub/Sub client for Go
Go
1
star
19

realtime-pubsub-client

Realtime PubSub client for JavaScript/TypeScript
TypeScript
1
star