LabWired
회로 설계·펌웨어 실행·변형 비교·Playground 결과 확인, 오픈소스, 무료 체험
Node.js용 빠르고 안전한 기본 설정 REST 프레임워크, Express 스타일 API와 서버리스, 중첩 라우터, 최소 의존성 제공
Blazing fast, secure-by-default REST framework for Node.js. Express-inspired API with serverless support, nested routers, and minimal dependencies.
개발 도구JavaScript · TypeScriptGitHub @BackendStack21온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
Restana is a lightweight and fast Node.js framework for building RESTful APIs.
README 전체를 불러오는 중입니다.
README 전문 보기 ↗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:
Check it yourself: https://web-frameworks-benchmark.netlify.app/result?f=feathersjs,0http,koa,nestjs-express,express,sails,nestjs-fastify,restana
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')
Restana ships with secure defaults out of the box:
Not Found), preventing internal details (stack traces, database errors, file paths) from leaking to clients. Provide a custom errorHandler to control what gets exposed.getConfigOptions() returns a frozen copy, preventing middleware from mutating internal framework options.res.send().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.
caseSensitive: false to opt out).res.send(err) and the default error handler.'/users/:id' → req.params.id).res.send() status code handling and a typed, explicit public API.Upgrading from 6.x? Read the migration guide.