{
  "manifest_version": "1.0.0",
  "template": {
    "id": "23504c77-401d-4390-b691-08e83096b1d4",
    "slug": "silverbullet-notes",
    "name": "SilverBullet",
    "description": "Note-taking app that stores every page as a Markdown file",
    "url": "https://railway.com/deploy/silverbullet-notes",
    "upstream": {
      "image": "ghcr.io/silverbulletmd/silverbullet:latest"
    }
  },
  "services": [
    {
      "name": "silverbullet",
      "source": {
        "image": "ghcr.io/silverbulletmd/silverbullet:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "silverbullet",
      "description": "HTTP port served and health-checked",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SB_FOLDER",
      "service": "silverbullet",
      "description": "Server root, one level below the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/space"
    },
    {
      "key": "SB_SPACE_NAME",
      "service": "silverbullet",
      "description": "Name of the first space, bound at /",
      "secret": false,
      "strategy": "default",
      "default": "My Space"
    },
    {
      "key": "SB_ADMIN_PASSWORD",
      "service": "silverbullet",
      "description": "First administrator account password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SB_ADMIN_USERNAME",
      "service": "silverbullet",
      "description": "First administrator account username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "silverbullet",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "10"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "silverbullet-notes"
      }
    },
    "cli": "railway deploy --template silverbullet-notes",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "23504c77-401d-4390-b691-08e83096b1d4",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a059b259-c827-4f61-8daa-31e3549003b2": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/silverbullet.png",
                  "name": "silverbullet",
                  "deploy": {
                    "startCommand": "/sbin/tini -s -- /bin/sh -c 'F=\"${SB_FOLDER:-/data/space}\"; [ -f \"$F/users.json\" ] || [ -z \"${SB_ADMIN_PASSWORD:-}\" ] || /silverbullet setup \"$F\" --admin \"${SB_ADMIN_USERNAME:-admin}:${SB_ADMIN_PASSWORD}\" --space \"${SB_SPACE_NAME:-My Space}\" --at /; exec /silverbullet'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/silverbulletmd/silverbullet:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port served and health-checked",
                      "defaultValue": "3000"
                    },
                    "SB_FOLDER": {
                      "isOptional": false,
                      "description": "Server root, one level below the volume",
                      "defaultValue": "/data/space"
                    },
                    "SB_SPACE_NAME": {
                      "isOptional": true,
                      "description": "Name of the first space, bound at /",
                      "defaultValue": "My Space"
                    },
                    "SB_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator account password",
                      "defaultValue": "{{SB_ADMIN_PASSWORD}}"
                    },
                    "SB_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "First administrator account username",
                      "defaultValue": "admin"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Clean shutdown window",
                      "defaultValue": "10"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "a059b259-c827-4f61-8daa-31e3549003b2": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "silverbullet",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T17:54:19.363Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T18:04:21.838Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_1456d196aed241889f62",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 63,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "silverbullet"
  }
}
