Deploy contactkit
Self-hostable contact form backend with a zero-dependency TypeScript SDK.
contactkit
Just deployed
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)
Template Content
contactkit
dimeloper/contactkitMAIL_TO
MAIL_FROM
RESEND_API_KEY