Railway Templates

Deploy pre-configured services instantly from Railway's marketplace

✨ The solution you've been looking for

Verified
Tested and verified by our team
16036 Stars

Search and deploy services from Railway's template marketplace. Use when user wants to add a service from a template, find templates for a specific use case, or deploy tools like Ghost, Strapi, n8n, Minio, Uptime Kuma, etc. For databases (Postgres, Redis, MySQL, MongoDB), prefer the railway-database skill.

railway templates deployment cms database automation infrastructure marketplace
Repository

See It In Action

Interactive preview & real-world examples

Live Demo
Skill Demo Animation

AI Conversation Simulator

See how users interact with this skill

User Prompt

I need to add Ghost CMS to my project

Skill Processing

Analyzing request...

Agent Response

Ghost CMS template deployed with pre-configured database and environment setup

Quick Start (3 Steps)

Get up and running in minutes

1

Install

claude-code skill install railway-templates

claude-code skill install railway-templates
2

Config

3

First Trigger

@railway-templates help

Commands

CommandDescriptionRequired Args
@railway-templates deploy-a-cms-for-your-projectQuickly add a content management system like Ghost or Strapi to your Railway projectNone
@railway-templates add-infrastructure-servicesDeploy monitoring, storage, or automation tools from the marketplaceNone
@railway-templates browse-available-templatesDiscover what pre-built services are available for your use caseNone

Typical Use Cases

Deploy a CMS for your project

Quickly add a content management system like Ghost or Strapi to your Railway project

Add infrastructure services

Deploy monitoring, storage, or automation tools from the marketplace

Browse available templates

Discover what pre-built services are available for your use case

Overview

Railway Templates

Search and deploy services from Railway’s template marketplace.

When to Use

  • User asks to “add Postgres”, “add Redis”, “add a database”
  • User asks to “add Ghost”, “add Strapi”, “add n8n”, or any other service
  • User wants to find templates for a use case (e.g., “CMS”, “storage”, “monitoring”)
  • User asks “what templates are available?”
  • User wants to deploy a pre-configured service

Common Template Codes

CategoryTemplateCode
DatabasesPostgreSQLpostgres
Redisredis
MySQLmysql
MongoDBmongodb
CMSGhostghost
Strapistrapi
StorageMiniominio
Automationn8nn8n
MonitoringUptime Kumauptime-kuma

For other templates, use the search query below.

Prerequisites

Get project context:

1railway status --json

Extract:

  • id - project ID
  • environments.edges[0].node.id - environment ID

Get workspace ID:

1bash <<'SCRIPT'
2${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
3  'query getWorkspace($projectId: String!) {
4    project(id: $projectId) { workspaceId }
5  }' \
6  '{"projectId": "PROJECT_ID"}'
7SCRIPT

Search Templates

List available templates with optional filters:

 1bash <<'SCRIPT'
 2${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
 3  'query templates($first: Int, $verified: Boolean) {
 4    templates(first: $first, verified: $verified) {
 5      edges {
 6        node {
 7          name
 8          code
 9          description
10          category
11        }
12      }
13    }
14  }' \
15  '{"first": 20, "verified": true}'
16SCRIPT

Arguments

ArgumentTypeDescription
firstIntNumber of results (max ~100)
verifiedBooleanOnly verified templates
recommendedBooleanOnly recommended templates

Rate Limit

10 requests per minute. Don’t spam searches.

Get Template Details

Fetch a specific template by code:

 1bash <<'SCRIPT'
 2${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
 3  'query template($code: String!) {
 4    template(code: $code) {
 5      id
 6      name
 7      description
 8      serializedConfig
 9    }
10  }' \
11  '{"code": "postgres"}'
12SCRIPT

Returns:

  • id - template ID (needed for deployment)
  • serializedConfig - service configuration (needed for deployment)

Deploy Template

Step 1: Fetch Template

 1bash <<'SCRIPT'
 2${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
 3  'query template($code: String!) {
 4    template(code: $code) {
 5      id
 6      serializedConfig
 7    }
 8  }' \
 9  '{"code": "postgres"}'
10SCRIPT

Step 2: Deploy to Project

 1bash <<'SCRIPT'
 2${CLAUDE_PLUGIN_ROOT}/skills/lib/railway-api.sh \
 3  'mutation deployTemplate($input: TemplateDeployV2Input!) {
 4    templateDeployV2(input: $input) {
 5      projectId
 6      workflowId
 7    }
 8  }' \
 9  '{
10    "input": {
11      "templateId": "TEMPLATE_ID_FROM_STEP_1",
12      "serializedConfig": SERIALIZED_CONFIG_FROM_STEP_1,
13      "projectId": "PROJECT_ID",
14      "environmentId": "ENVIRONMENT_ID",
15      "workspaceId": "WORKSPACE_ID"
16    }
17  }'
18SCRIPT

Important: serializedConfig is the exact JSON object from the template query, not a string.

Composability

  • Connect services: Use railway-environment skill to add variable references
  • View deployed service: Use railway-service skill
  • Check logs: Use railway-deployment skill
  • Add domains: Use railway-domain skill

What Users Are Saying

Real feedback from the community

Environment Matrix

Dependencies

railway-cli (Railway CLI tool)
Bash shell environment

Framework Support

Railway Platform ✓ (required)

Context Window

Token Usage ~1K-3K tokens for template searches and deployments

Security & Privacy

Information

Author
davila7
Updated
2026-01-30
Category
productivity-tools