{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0928ae8c-d698-459b-aa8f-bfab7313b0c4",
    "slug": "tiddlywiki",
    "name": "TiddlyWiki",
    "description": "Personal web notebook that stores notes as small linked cards",
    "url": "https://railway.com/deploy/tiddlywiki",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/tiddlywiki-railway"
    }
  },
  "services": [
    {
      "name": "tiddlywiki",
      "source": {
        "repo": "https://github.com/gridalpha/tiddlywiki-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "tiddlywiki",
      "description": "Health endpoint port probed by Railway",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "TW_GZIP",
      "service": "tiddlywiki",
      "description": "Gzip responses",
      "secret": false,
      "strategy": "default",
      "default": "yes"
    },
    {
      "key": "TW_PASSWORD",
      "service": "tiddlywiki",
      "description": "Password for that account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TW_USERNAME",
      "service": "tiddlywiki",
      "description": "The wiki's single account",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "TW_SITE_TITLE",
      "service": "tiddlywiki",
      "description": "Wiki title, seeded on first boot",
      "secret": false,
      "strategy": "default",
      "default": "My TiddlyWiki"
    },
    {
      "key": "TW_BROWSER_CACHE",
      "service": "tiddlywiki",
      "description": "Send ETag and revalidate",
      "secret": false,
      "strategy": "default",
      "default": "yes"
    },
    {
      "key": "TW_SITE_SUBTITLE",
      "service": "tiddlywiki",
      "description": "Wiki subtitle, seeded on first boot",
      "secret": false,
      "strategy": "default",
      "default": "a non-linear personal web notebook"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "tiddlywiki",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "10"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tiddlywiki"
      }
    },
    "cli": "railway deploy --template tiddlywiki",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0928ae8c-d698-459b-aa8f-bfab7313b0c4",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "f606ce85-2fe5-4734-900d-c8b2db9532e7": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/tiddlywiki-light.svg",
                  "name": "tiddlywiki",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/tiddlywiki-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health endpoint port probed by Railway",
                      "defaultValue": "8081"
                    },
                    "TW_GZIP": {
                      "isOptional": false,
                      "description": "Gzip responses",
                      "defaultValue": "yes"
                    },
                    "TW_READERS": {
                      "isOptional": true,
                      "description": "Set to (anon) for public read access",
                      "defaultValue": ""
                    },
                    "TW_WRITERS": {
                      "isOptional": true,
                      "description": "Extra usernames allowed to write",
                      "defaultValue": ""
                    },
                    "TW_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that account",
                      "defaultValue": "{{TW_PASSWORD}}"
                    },
                    "TW_USERNAME": {
                      "isOptional": false,
                      "description": "The wiki's single account",
                      "defaultValue": "admin"
                    },
                    "TW_SITE_TITLE": {
                      "isOptional": true,
                      "description": "Wiki title, seeded on first boot",
                      "defaultValue": "My TiddlyWiki"
                    },
                    "TW_DEBUG_LEVEL": {
                      "isOptional": true,
                      "description": "Set to full to log every request",
                      "defaultValue": ""
                    },
                    "TW_PATH_PREFIX": {
                      "isOptional": true,
                      "description": "Serve the wiki under a sub-path",
                      "defaultValue": ""
                    },
                    "TW_BROWSER_CACHE": {
                      "isOptional": false,
                      "description": "Send ETag and revalidate",
                      "defaultValue": "yes"
                    },
                    "TW_SITE_SUBTITLE": {
                      "isOptional": true,
                      "description": "Wiki subtitle, seeded on first boot",
                      "defaultValue": "a non-linear personal web notebook"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "10"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "f606ce85-2fe5-4734-900d-c8b2db9532e7": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "tiddlywiki",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T22:14:37.124Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-11T19:47:42.704Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_362f5c2d0d1e46b995d4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": false,
        "detail": "got 401, expected 200"
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ]
  }
}
