---
title: "Deploy Node Fastify"
description: "A minimal production-ready node HTTP server with fastify and typescript"
category: "Other"
url: https://railway.com/deploy/xeb3TM
---

# Deploy Node Fastify

A minimal production-ready node HTTP server with fastify and typescript

**[Deploy Node Fastify on Railway](https://railway.com/template/xeb3TM)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/xeb3TM/manifest.json

- **Creator:** dillonstreator's Projects
- **Category:** Other
- **Total deploys:** 28

## Template content

### node-fastify

- **Source:** osbytes/template-node-fastify
- **Health check:** /health
- **Public domain:** Yes

## Documentation

A minimal production-ready node HTTP server with [`Fastify`](https://fastify.dev/) and Typescript.

- ✅ Typescript
- ✅ Graceful shutdown
- ✅ Optional Tracing with OpenTelemetry (configurable via environment variables)
- ✅ Properly configured request payload size limiting to help prevent Denial of Service attack vectors 
- ✅ Auto-generated Swagger/OpenAPI documentation 
- ✅ `AbortSignal` propagation to prevent unnecessary work (includes example and test)  
- ✅ Structured logging with [`pino`](https://github.com/pinojs/pino) 
- ✅ Rich request logging middleware including request id, trace id, context propagation, and more 
- ✅ [`zod`](https://github.com/turkerdev/fastify-type-provider-zod) for request validation, JSON schema inference, and OpenAPI/Swagger generation 
- ✅ Testing with [`tap`](https://www.npmjs.com/package/tap) and [`undici`](https://www.npmjs.com/package/undici) 
- ✅ [`helmet`](https://github.com/fastify/fastify-helmet) & [`compression`](https://github.com/fastify/fastify-compress)


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/xeb3TM
