Rapidly generate a Fastify project

Usage no npm install needed!

<script type="module">
  import createFastify from '';



CI Known Vulnerabilities js-standard-style

Rapidly generate a Fastify project


There is no need to install this package directly.

npm init fastify

The npm init command will find this package automatically and run it.


To integrate Fastify into an existing project:

npm init fastify --integrate

Note that this will overwrite files, so exercise caution.

Files and folders that will be overwritten by integrate mode:

  • .gitignore
  • app.js
  • plugins
  • routes
  • test

The package.json file will not be overwritten but will be modified.


If you feel you can help in any way, be it with examples, extra testing, or new features please open a pull request or open an issue.

The code follows the Standard code style. js-standard-style



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 non infringement. 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.