{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6f81ecce-77c0-43eb-a844-427bc202de7a",
    "slug": "crawl4ai-v09-llm-ready-web-crawler",
    "name": "Crawl4AI v0.9 LLM-Ready Web Crawler",
    "description": "Turn websites into clean markdown for LLMs with a headless browser.",
    "url": "https://railway.com/deploy/crawl4ai-v09-llm-ready-web-crawler",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/crawl4ai-railway"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Crawl4AI",
      "source": {
        "repo": "https://github.com/baranberkay96/crawl4ai-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Crawl4AI",
      "description": "Port the Crawl4AI server listens on (gunicorn on all IPv4/IPv6 interfaces). Railway routes the domain and healthcheck here.",
      "secret": false,
      "strategy": "default",
      "default": "11235"
    },
    {
      "key": "REDIS_HOST",
      "service": "Crawl4AI",
      "description": "Redis for job status/results and monitor stats (private network). Set to localhost to use the bundled in-container Redis instead.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "Crawl4AI",
      "description": "Redis port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY",
      "service": "Crawl4AI",
      "description": "Signs JWTs: the internal MCP tool calls and the short-lived client tokens issued by POST /token. Keep it stable; at least 32 characters.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Crawl4AI",
      "description": "Redis password (also protects the bundled loopback Redis).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_TASK_TTL",
      "service": "Crawl4AI",
      "description": "Seconds that /crawl/job and /llm/job results stay retrievable in Redis.",
      "secret": false,
      "strategy": "default",
      "default": "3600"
    },
    {
      "key": "CRAWL4AI_API_TOKEN",
      "service": "Crawl4AI",
      "description": "Operator token for every endpoint except /health and the UI shells. Send it as 'Authorization: Bearer ...'. Without it the server only listens on loopback.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CRAWL4AI_MAX_PAGES",
      "service": "Crawl4AI",
      "description": "Global cap on browser pages open at the same time (upstream default 40). Lower it to bound RAM; each page needs roughly 50-150 MB.",
      "secret": false,
      "strategy": "default",
      "default": "40"
    },
    {
      "key": "CRAWL4AI_RATE_LIMIT",
      "service": "Crawl4AI",
      "description": "API rate limit per client address, e.g. 1000/minute (upstream default).",
      "secret": false,
      "strategy": "default",
      "default": "1000/minute"
    },
    {
      "key": "CRAWL4AI_JOB_WORKERS",
      "service": "Crawl4AI",
      "description": "Concurrent background workers for /crawl/job and /llm/job (upstream default 4).",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "RAILWAY_SHM_SIZE_BYTES",
      "service": "Crawl4AI",
      "description": "Shared memory (/dev/shm) for Chromium: 1 GiB, as upstream recommends (--shm-size=1g). Railway's default is 64 MB.",
      "secret": false,
      "strategy": "default",
      "default": "1073741824"
    },
    {
      "key": "CRAWL4AI_BROWSER_IDLE_TTL",
      "service": "Crawl4AI",
      "description": "Seconds before an idle pooled browser is closed (upstream default 300). Lower values return RAM sooner after bursts.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "CRAWL4AI_MEMORY_THRESHOLD",
      "service": "Crawl4AI",
      "description": "Container memory percent (cgroup-aware) above which no new browsers are started (upstream default 95).",
      "secret": false,
      "strategy": "default",
      "default": "95"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Crawl4AI",
      "description": "Grace period on redeploy so running crawls can finish (matches gunicorn's 30 s graceful timeout).",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "crawl4ai-v09-llm-ready-web-crawler"
      }
    },
    "cli": "railway deploy --template crawl4ai-v09-llm-ready-web-crawler",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6f81ecce-77c0-43eb-a844-427bc202de7a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "354f7f96-3f0f-5b77-a63c-2f334891c18f": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "f0f5b1d9-8618-53f5-bfe4-4f2efecf5268": {
                      "mountPath": "/data"
                    }
                  }
                },
                "61dae778-a140-5aeb-b73d-4890d564379d": {
                  "icon": "https://cdn.jsdelivr.net/gh/unclecode/crawl4ai@v0.9.4/deploy/docker/static/assets/crawl4ai-logo.png",
                  "name": "Crawl4AI",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/crawl4ai-railway",
                    "branch": "main",
                    "rootDirectory": "/services/crawl4ai"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port the Crawl4AI server listens on (gunicorn on all IPv4/IPv6 interfaces). Railway routes the domain and healthcheck here.",
                      "defaultValue": "11235"
                    },
                    "REDIS_HOST": {
                      "isOptional": true,
                      "description": "Redis for job status/results and monitor stats (private network). Set to localhost to use the bundled in-container Redis instead.",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": true,
                      "description": "Redis port.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "SECRET_KEY": {
                      "isOptional": true,
                      "description": "Signs JWTs: the internal MCP tool calls and the short-lived client tokens issued by POST /token. Keep it stable; at least 32 characters.",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "LLM_PROVIDER": {
                      "isOptional": true,
                      "description": "Optional default model for LLM extraction in LiteLLM provider/model form, e.g. anthropic/{model}. Empty = upstream default openai/gpt-4o-mini.",
                      "defaultValue": ""
                    },
                    "GEMINI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. For gemini/* models; also set LLM_PROVIDER.",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Enables LLM extraction (/llm, /llm/job, LLM strategies) with OpenAI models. Plain crawling needs no key.",
                      "defaultValue": ""
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Redis password (also protects the bundled loopback Redis).",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "REDIS_TASK_TTL": {
                      "isOptional": true,
                      "description": "Seconds that /crawl/job and /llm/job results stay retrievable in Redis.",
                      "defaultValue": "3600"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. For anthropic/* models; also set LLM_PROVIDER.",
                      "defaultValue": ""
                    },
                    "CRAWL4AI_API_TOKEN": {
                      "isOptional": true,
                      "description": "Operator token for every endpoint except /health and the UI shells. Send it as 'Authorization: Bearer ...'. Without it the server only listens on loopback.",
                      "defaultValue": "{{CRAWL4AI_API_TOKEN}}"
                    },
                    "CRAWL4AI_MAX_PAGES": {
                      "isOptional": true,
                      "description": "Global cap on browser pages open at the same time (upstream default 40). Lower it to bound RAM; each page needs roughly 50-150 MB.",
                      "defaultValue": "40"
                    },
                    "CRAWL4AI_RATE_LIMIT": {
                      "isOptional": true,
                      "description": "API rate limit per client address, e.g. 1000/minute (upstream default).",
                      "defaultValue": "1000/minute"
                    },
                    "CRAWL4AI_JOB_WORKERS": {
                      "isOptional": true,
                      "description": "Concurrent background workers for /crawl/job and /llm/job (upstream default 4).",
                      "defaultValue": "4"
                    },
                    "CRAWL4AI_CORS_ORIGINS": {
                      "isOptional": true,
                      "description": "Optional comma-separated browser origins allowed to call the API directly (CORS is deny-by-default).",
                      "defaultValue": ""
                    },
                    "RAILWAY_SHM_SIZE_BYTES": {
                      "isOptional": true,
                      "description": "Shared memory (/dev/shm) for Chromium: 1 GiB, as upstream recommends (--shm-size=1g). Railway's default is 64 MB.",
                      "defaultValue": "1073741824"
                    },
                    "CRAWL4AI_BROWSER_IDLE_TTL": {
                      "isOptional": true,
                      "description": "Seconds before an idle pooled browser is closed (upstream default 300). Lower values return RAM sooner after bursts.",
                      "defaultValue": "300"
                    },
                    "CRAWL4AI_MEMORY_THRESHOLD": {
                      "isOptional": true,
                      "description": "Container memory percent (cgroup-aware) above which no new browsers are started (upstream default 95).",
                      "defaultValue": "95"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Grace period on redeploy so running crawls can finish (matches gunicorn's 30 s graceful timeout).",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:11235": {
                        "port": 11235
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Crawl4AI",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-11T19:10:54.700Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_82a626abece8411f9155",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 211,
    "typical_build_seconds": 81,
    "typical_start_seconds": 20,
    "slowest_service": "Crawl4AI"
  }
}
