{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7af4fd90-1a8f-4b75-9c51-77c909973807",
    "slug": "siyuan",
    "name": "Siyuan (Open-Source Notetaking & Knowledgebase Platform)",
    "description": "Siyuan [Sep ’26] (Privacy-first Notetaker & Knowledge Management) Self Host",
    "url": "https://railway.com/deploy/siyuan",
    "upstream": {
      "image": "b3log/siyuan:latest"
    }
  },
  "services": [
    {
      "name": "b3log/siyuan:latest",
      "source": {
        "image": "b3log/siyuan:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/siyuan/workspace",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "b3log/siyuan:latest",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "america/los_angeles"
    },
    {
      "key": "PORT",
      "service": "b3log/siyuan:latest",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "6806"
    },
    {
      "key": "SIYUAN_ACCESS_AUTH_CODE",
      "service": "b3log/siyuan:latest",
      "description": "Provide a value for SIYUAN_ACCESS_AUTH_CODE.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "siyuan"
      }
    },
    "cli": "railway deploy --template siyuan",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7af4fd90-1a8f-4b75-9c51-77c909973807",
            "serializedConfig": {
              "services": {
                "e458d0d8-79b2-4bc3-88f2-76720b5fe9df": {
                  "name": "b3log/siyuan:latest",
                  "source": {
                    "image": "b3log/siyuan:latest"
                  },
                  "variables": {
                    "TZ": {
                      "defaultValue": "america/los_angeles"
                    },
                    "PORT": {
                      "defaultValue": "6806"
                    },
                    "SIYUAN_ACCESS_AUTH_CODE": {
                      "defaultValue": "{{SIYUAN_ACCESS_AUTH_CODE}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "e458d0d8-79b2-4bc3-88f2-76720b5fe9df": {
                      "mountPath": "/siyuan/workspace"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T04:14:38.010Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-09T21:28:16.926Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_907225fb0489431aaad8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
