Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

node-restify

> 编程语言
Open source

The future of Node.js REST development

10.7K stars0 likes4 views
WebsiteGitHub

About

The future of Node.js REST development

alt text

restify is a framework, utilizing connect style middleware for building REST APIs. For full details, see http://restify.com

Follow restify on alt text

Usage

Server

javascript
var restify = require('restify');

const server = restify.createServer({
  name: 'myapp',
  version: '1.0.0'
});

server.use(restify.plugins.acceptParser(server.acceptable));
server.use(restify.plugins.queryParser());
server.use(restify.plugins.bodyParser());

server.get('/echo/:name', function (req, res, next) {
  res.send(req.params);
  return next();
});

server.listen(8080, function () {
  console.log('%s listening at %s', server.name, server.url);
});

Client

javascript
var assert = require('assert');
var clients = require('restify-clients');

var client = clients.createJsonClient({
  url: 'http://localhost:8080',
  version: '~1.0'
});

client.get('/echo/mark', function (err, req, res, obj) {
  assert.ifError(err);
  console.log('Server returned: %j', obj);
});

Installation

bash
$ npm install restify

Supported Node Versions

Restify currently works on Node.js v22.x, v24.x and v26.x.

License

The MIT License (MIT)

Copyright (c) 2018 restify

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Bugs

See https://github.com/restify/node-restify/issues.

Other repositories

  • For the errors module, please go here.

Mailing list

See the Google group .

Issues· 132 open

View all issuesOpen on GitHub
  • #2011

    A single malformed Host header crashes the process

    Updated Sep 1, 2026
  • #1967

    Is this repo actively maintained ?

    Updated Aug 26, 2026
  • #1989

    SECURITY.md contact is unreachable — request for private vulnerability disclosure channel

    Updated Jun 16, 2026
  • #1984

    Unable to create http server using node v24 (currently RC)

    Updated Jan 24, 2026
  • #1987

    Support for application/json-patch+json in bodyParser

    Updated Sep 7, 2025
  • #1971

    Migration from 8.5.1 to 10.0.0 causing issues

    Updated Aug 22, 2025
  • #1985

    Please upgrade `formidable` to latest (v3 /v4)

    Updated Jul 10, 2025
  • #1876

    [DEP0111] deprecation warning from restify's dependency on node 16

    Updated Jun 1, 2025
  • #1982

    Unable to Execute Asynchronous Code (Both Promises and Callbacks) in Middleware

    Updated Feb 7, 2025
  • #1979

    Restify 11.1.0 on Node.js 18.x Causes 500 Errors with “End of Handler Chain” After Cosmos DB Query

    Updated Sep 19, 2024

> Tags

JavaScriptrest-apirestifyserver

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言