Fastify is a performance-oriented
backend web framework
A web framework (WF) or web application framework (WAF) is a software framework that is designed to support the development of web applications including web services, web resources, and web APIs. Web frameworks provide a standard way to build a ...
for
Node.js, released as
free and open-source software
Free and open-source software (FOSS) is software available under a license that grants users the right to use, modify, and distribute the software modified or not to everyone free of charge. FOSS is an inclusive umbrella term encompassing free ...
under an
MIT License
The MIT License is a permissive software license originating at the Massachusetts Institute of Technology (MIT) in the late 1980s. As a permissive license, it puts very few restrictions on reuse and therefore has high license compatibility.
Unl ...
. Its development was inspired by Hapi and
Express
Express, The Expresss or EXPRESS may refer to:
Arts, entertainment and media Film
* ''Express: Aisle to Glory'', a 1998 comedy short film featuring Kal Penn
* ''The Express: The Ernie Davis Story'', a 2008 film starring Dennis Quaid
* The Expre ...
.
As a lightweight alternative to other Node.js
web API
A web API is an application programming interface (API) for either a web server or a web browser.
As a web development concept, it can be related to a web application's client side (including any web frameworks being used).
A server-side web AP ...
frameworks,
benchmarks reveal it to be significantly faster.
History
Fastify was conceived by Matteo Collina while working at NearForm in 2015. Collina and Tomas Della Vedova created Fastify in September 2016.
According to
GitHub
GitHub () is a Proprietary software, proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug trackin ...
, the initial release of Fastify was version 0.1.0 on October 17, 2016.
Building upon the technical foundations of Fastify, Collina and Luca Maraschi created Platformatic in 2022, to support a "batteries-included" developer experience for building APIs (
REST
REST (Representational State Transfer) is a software architectural style that was created to describe the design and guide the development of the architecture for the World Wide Web. REST defines a set of constraints for how the architecture of ...
/
OpenAPI or
GraphQL
GraphQL is a data query and manipulation language that allows specifying what data is to be retrieved (" declarative data fetching") or modified. A GraphQL server can process a client query using data from separate sources and present the res ...
).
Features
Core features include:
* Concentration on high-performance
* Extensibility
*
JSON Schema
JSON (JavaScript Object Notation, pronounced or ) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of name–value pairs and arrays (or other serializa ...
validated
routing
Routing is the process of selecting a path for traffic in a Network theory, network or between or across multiple networks. Broadly, routing is performed in many types of networks, including circuit-switched networks, such as the public switched ...
* Logging
* Developer friendly
*
TypeScript
TypeScript (abbreviated as TS) is a high-level programming language that adds static typing with optional type annotations to JavaScript. It is designed for developing large applications and transpiles to JavaScript. It is developed by Micr ...
ready
Popularity
Fastify is used by
Capital One
Capital One Financial Corporation is an American bank holding company founded on July 21, 1994, and specializing in credit cards, auto loans, banking, and savings accounts, headquartered in Tysons, Virginia, with operations primarily in the ...
,
Walmart
Walmart Inc. (; formerly Wal-Mart Stores, Inc.) is an American multinational retail corporation that operates a chain of hypermarkets (also called supercenters), discount department stores, and grocery stores in the United States and 23 other ...
,
American Express
American Express Company or Amex is an American bank holding company and multinational financial services corporation that specializes in payment card industry, payment cards. It is headquartered at 200 Vesey Street, also known as American Expr ...
and others.
See also
*
*
Socket.IO
References
External links
*
*
JavaScript libraries
Web frameworks
{{web-software-stub