restify
    Overview
    Alternatives
    Playground
    Insights & Analysis
    Issues
    Versions
    Documentation
    Find an Expert
    Dependencies
    Career Opportunities
    Code

restify

REST framework

8.4.0  •  Published 22 days ago  •  by Mark Cavage  •  MIT License

alt text

restify

Build Status Dependency Status devDependency Status code style: prettier

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

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

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

$ npm install restify

Supported Node Versions

Restify aims to support the Node.js LTS (Active and Maintenance) versions along with Node.js current stable version.

Node Release Supported in Current Version Notes
11.x Yes Current stable
10.x Yes Active LTS
8.x Yes Maintenance LTS
6.x No Use restify v7.x, team will backport critical issues only
4.x No Use restify v7.x, team will backport critical issues only

License

The MIT License (MIT)

Copyright © 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 .

Dependencies

assert-plus  ·  bunyan  ·  csv  ·  escape-regexp-component  ·  ewma  ·  find-my-way  ·  formidable  ·  http-signature  ·  lodash  ·  lru-cache  ·  mime  ·  negotiator  ·  once  ·  pidusage  ·  qs  ·  restify-errors  ·  semver  ·  send  ·  spdy  ·  uuid  ·  vasync  ·  dtrace-provider  ·  autocannon  ·  autocannon-compare  ·  chai  ·  cover  ·  coveralls  ·  documentation  ·  eslint  ·  eslint-config-prettier  ·  eslint-plugin-jsdoc  ·  eslint-plugin-prettier  ·  glob  ·  inquirer  ·  istanbul  ·  mkdirp  ·  mocha  ·  nodeunit  ·  ora  ·  pre-commit  ·  prettier  ·  proxyquire  ·  restify-clients  ·  rimraf  ·  validator  ·  watershed

Tags

REST
framework
express
DTrace
Get a weekly digest of your favorite packages
We track new versions of your favorite packages, read the changelogs, and summarize them - so you dont have to
Just $5/month per user

Popularity

Weekly Downloads
95.8K
Stars
9.4K

Issues and PRs

Activity

Last ver 22 days ago
Created 8 years ago
Last commit 3 months ago
2 days between commits

Sustainability

194 contributors

Technology

Node version: 10.16.0
2145.7K unpacked

Legal and Compliance

MIT License
OSI Approved
0 vulnerabilities

Top Experts

Mark Cavage
Maintainer, 75 commits, 148 merges
Yunong Xiao
Maintainer, 146 commits, 68 merges, 7 PRs
Works at Netflix.com
Alex Liu
Maintainer, 112 commits, 85 merges, 85 PRs
Works at Netflix
William Blankenship
Maintainer, 91 commits, 83 merges, 52 PRs
Works at Sr. Engineer Netflix
Peter Marton
Maintainer, 98 commits, 53 merges, 68 PRs
Works at Netflix, Inc.
Micah Ransdell
Maintainer, 59 commits, 36 merges, 13 PRs
Works at Netflix