Skip to content
프로젝트

BackendStack21/restana has 469 GitHub stars and 30 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-24 14:50 UTC. Last push 2026-10-30.

이 수치를 측정하는 방법

What you can do

  • Dependency-free trie router by default: constant-time static routes and no match cache to tune.
  • Case-sensitive routing that agrees with reverse proxies and WAFs (caseSensitive: false to opt out).
  • Consistent error responses from res.send(err) and the default error handler.
  • Faster startup: no third-party modules are loaded by default.

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

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

개발 도구

README.md

Original

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 an HTTP 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')

Security defaults

Restana ships with secure defaults out of the box:

  • Error handling: The default error handler only returns the status code and its standard status text (e.g. Not Found), preventing internal details (stack traces, database errors, file paths) from leaking to clients. Provide a custom errorHandler to control what gets exposed.
  • Stream safety: Stream errors are handled gracefully, preventing connection leaks.
  • Immutable config: getConfigOptions() returns a frozen copy, preventing middleware from mutating internal framework options.
  • Response headers: Browser hardening headers are enabled by default, and connection-specific or cookie headers cannot be injected through res.send().
  • Proxy safety: Forwarded protocol headers are ignored unless trustProxy: true is explicitly configured.

For local-only development, bind explicitly to loopback:

service.start(3000, '127.0.0.1')

When TLS terminates at a trusted reverse proxy:

const service = restana({ trustProxy: true })

Error details are hidden by default in every environment. For local debugging only, opt in with debugErrors: true; production mode always masks details.

7.0 highlights

  • Dependency-free trie router by default: constant-time static routes and no match cache to tune.
  • Case-sensitive routing that agrees with reverse proxies and WAFs (caseSensitive: false to opt out).
  • Consistent error responses from res.send(err) and the default error handler.
  • Faster startup: no third-party modules are loaded by default.
  • TypeScript route params inferred from the path ('/users/:id' → req.params.id).
  • Stricter res.send() status code handling and a typed, explicit public API.

Upgrading from 6.x? Read the migration guide.

More

관련 프로젝트 살펴보기

불러오는 중…