---
title: "Deploy contactkit"
description: "Self-hostable contact form backend with a zero-dependency TypeScript SDK."
category: "Starters"
url: https://railway.com/deploy/contactkit
---

# Deploy contactkit

Self-hostable contact form backend with a zero-dependency TypeScript SDK.

**[Deploy contactkit on Railway](https://railway.com/template/contactkit)**

- **Creator:** Dimitris Kiriakakis's Projects
- **Category:** Starters
- **Total deploys:** 3

## Template content

### contactkit

- **Source:** dimeloper/contactkit
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host contactkit on Railway

contactkit is a self-hostable contact form backend built with Fastify and TypeScript. It supports Resend and SMTP email providers out of the box and includes a zero-dependency TypeScript SDK for easy client integration.

## About Hosting contactkit

Deploying contactkit on Railway takes one click. The template uses a multi-stage Dockerfile for minimal image size, includes a health check endpoint, and auto-restarts on failure. Configure your email provider (Resend or SMTP), set your sender/recipient addresses, and you're live. CORS origins and rate limiting are configurable via environment variables.

## Common Use Cases

- Adding a contact form to a static site or JAMstack frontend
- Receiving form submissions via email without managing your own mail server
- Self-hosting a contact API with Turnstile spam protection

## Why Deploy contactkit on Railway

Railway provides automatic HTTPS, custom domains, and zero-config deployments from GitHub. contactkit's Dockerfile handles the build pipeline, and Railway's health checks ensure zero-downtime deploys. Environment variables are managed securely through the Railway dashboard — no .env files to juggle in production.

## Dependencies for contactkit

### Deployment Dependencies

- **Node.js 20** — runtime (included in the Docker image)
- **Fastify 5** — HTTP framework powering the API
- **Resend** or **SMTP server** — email delivery (configured via environment variables, no additional Railway services required)

## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

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