{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c1662baa-46a4-448f-a764-eac9f1f5475f",
    "slug": "typesense-autocomplete",
    "name": "Typesense Autocomplete",
    "description": "typo-tolerant autocomplete with Typesense",
    "url": "https://railway.com/deploy/typesense-autocomplete",
    "upstream": {
      "repo_url": "https://github.com/Shinyduo/typesense-railway"
    }
  },
  "services": [
    {
      "name": "typesense-railway",
      "source": {
        "repo": "https://github.com/Shinyduo/typesense-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "typesense-railway",
      "description": "PORT",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TYPESENSE_URL",
      "service": "typesense-railway",
      "description": "TYPESENSE_URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TYPESENSE_API_KEY",
      "service": "typesense-railway",
      "description": "TYPESENSE_API_KEY",
      "secret": true,
      "strategy": "default",
      "default": "82n8y7slc32p64tnaij71h23ao52n9mp"
    },
    {
      "key": "TYPESENSE_DATA_DIR",
      "service": "typesense-railway",
      "description": "TYPESENSE_DATA_DIR",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TYPESENSE_PUBLIC_URL",
      "service": "typesense-railway",
      "description": "TYPESENSE_PUBLIC_URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TYPESENSE_THREAD_POOL_SIZE",
      "service": "typesense-railway",
      "description": "TYPESENSE_THREAD_POOL_SIZE",
      "secret": false,
      "strategy": "default",
      "default": "64"
    },
    {
      "key": "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD",
      "service": "typesense-railway",
      "description": "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD",
      "secret": false,
      "strategy": "default",
      "default": "32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "typesense-autocomplete"
      }
    },
    "cli": "railway deploy --template typesense-autocomplete",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c1662baa-46a4-448f-a764-eac9f1f5475f",
            "serializedConfig": {
              "services": {
                "ac6a30bc-8908-4281-8cd3-1bae02d257fd": {
                  "name": "typesense-railway",
                  "source": {
                    "repo": "Shinyduo/typesense-railway"
                  },
                  "variables": {
                    "PORT": {
                      "description": "PORT",
                      "defaultValue": "8080"
                    },
                    "TYPESENSE_URL": {
                      "description": "TYPESENSE_URL",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:${{PORT}}"
                    },
                    "TYPESENSE_API_KEY": {
                      "description": "TYPESENSE_API_KEY",
                      "defaultValue": "82n8y7slc32p64tnaij71h23ao52n9mp"
                    },
                    "TYPESENSE_DATA_DIR": {
                      "description": "TYPESENSE_DATA_DIR",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}"
                    },
                    "TYPESENSE_PUBLIC_URL": {
                      "description": "TYPESENSE_PUBLIC_URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TYPESENSE_THREAD_POOL_SIZE": {
                      "description": "TYPESENSE_THREAD_POOL_SIZE",
                      "defaultValue": "64"
                    },
                    "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD": {
                      "description": "TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD",
                      "defaultValue": "32"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-04T13:32:45.587Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-04T11:48:02.562Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_4d3e2bb52690488aab95",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
