Express-inspired web framework for Go, built on the fasthttp engine, for writing REST APIs and web servers.
restify/node-restify
A Node.js framework for building REST APIs, using connect-style middleware to handle requests and responses.
- Stars
- 10,688
- Forks
- 976
- Open issues
- 133
- Last commit
- 2 days ago
What is it?
Restify is a Node.js framework for building REST APIs. It uses connect-style middleware, so request handling is organized as a chain of functions that each call next() to pass control along.
The framework provides a server object with route methods such as get, and built-in plugins for common tasks like content-type negotiation via acceptParser, query string parsing, and request body parsing. A companion package, restify-clients, provides JSON and other HTTP clients for calling the API from Node.js.
The project is installed with npm and currently supports Node.js v22, v24 and v26. Its errors module is maintained as a separate repository.
Key features
- 01Connect-style middleware chain for request handling
- 02Route methods such as get for defining endpoints
- 03Built-in plugins for accept negotiation, query parsing and body parsing
- 04Companion restify-clients package for calling APIs from Node.js
Use cases
- Building JSON REST APIs in Node.js
- Adding versioned endpoints to a Node.js backend
- Writing Node.js services that call other HTTP APIs with a JSON client
Quick start
- 1
Install restify via npm
npm install restify - 2
Create a server file with the Server example from the README
- 3
Start the server and call the echo endpoint with the client example
Things to know
- Requires a supported Node.js version (v22, v24 or v26).
Topics
FAQ
- What is node-restify?
- A Node.js framework for building REST APIs, using connect-style middleware to handle requests and responses. Restify is a Node.js framework for building REST APIs. It uses connect-style middleware, so request handling is organized as a chain of functions that each call next() to pass control along.
- Is node-restify free to use? What license does it have?
- node-restify is open source under the MIT license. Check the license terms before using it in commercial products.
- Is node-restify still maintained?
- Actively maintained. The last commit to node-restify was on Oct 23, 2026.
- What can I use node-restify for?
- Building JSON REST APIs in Node.js Adding versioned endpoints to a Node.js backend Writing Node.js services that call other HTTP APIs with a JSON client
- How do I install node-restify?
- Install restify via npm: npm install restify Create a server file with the Server example from the README Start the server and call the echo endpoint with the client example
- Where can I get node-restify?
- The source code and installation instructions are on GitHub: https://github.com/restify/node-restify
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Fast, unopinionated, minimalist web framework for Node.js for building web apps and HTTP APIs.
Open source Node.js backend that provides REST and GraphQL APIs, user auth, file storage and push notifications on MongoDB or PostgreSQL.
A Rust web server with a compact config, automatic TLS, and per-request tracing linked to logs, for static sites and reverse proxies.
A generic, extendable WebDAV server written in Python on top of WSGI, runnable standalone or embedded in other WSGI apps.
Vapor is an HTTP web framework for building websites, APIs and cloud services in Swift.