{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e33aecd7-f718-4bc0-9b57-b641c55b3fce",
    "slug": "open-notebook",
    "name": "Open Notebook",
    "description": "Private AI research workspace with chat and podcast generation.",
    "url": "https://railway.com/deploy/open-notebook",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-open-notebook-caddy-proxy"
    }
  },
  "services": [
    {
      "name": "proxy",
      "source": {
        "repo": "https://github.com/monotykamary/railway-open-notebook-caddy-proxy"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "open-notebook",
      "source": {
        "image": "lfnovo/open_notebook:1.14.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": false
    },
    {
      "name": "surrealdb",
      "source": {
        "image": "surrealdb/surrealdb:v2.6.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "proxy",
      "description": "Default exposed port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "API_ENDPOINT",
      "service": "proxy",
      "description": "Private API endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WEB_ENDPOINT",
      "service": "proxy",
      "description": "Private web endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "API_URL",
      "service": "open-notebook",
      "description": "Public API URL for the open_notebook service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SURREAL_URL",
      "service": "open-notebook",
      "description": "WebSocket URL to connect to SurrealDB (references surrealdb service)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CORS_ORIGINS",
      "service": "open-notebook",
      "description": "Allow browser API requests only from the public proxy origin.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SURREAL_USER",
      "service": "open-notebook",
      "description": "Database username (references surrealdb service)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "open-notebook",
      "description": "Your OpenAI API key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SURREAL_DATABASE",
      "service": "open-notebook",
      "description": "SurrealDB database name",
      "secret": false,
      "strategy": "default",
      "default": "open_notebook"
    },
    {
      "key": "SURREAL_PASSWORD",
      "service": "open-notebook",
      "description": "Database password (references surrealdb service)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_NAMESPACE",
      "service": "open-notebook",
      "description": "SurrealDB namespace",
      "secret": false,
      "strategy": "default",
      "default": "open_notebook"
    },
    {
      "key": "OPEN_NOTEBOOK_ENCRYPTION_KEY",
      "service": "open-notebook",
      "description": "Generated key used to encrypt provider credentials at rest.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PORT",
      "service": "surrealdb",
      "description": "The internal port railway will route external traffic to",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_LOG",
      "service": "surrealdb",
      "description": "The logging level for the database server",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "SURREAL_BIND",
      "service": "surrealdb",
      "description": "The hostname or ip address to listen for connections on",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_PASS",
      "service": "surrealdb",
      "description": "The password for the initial database user",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SURREAL_PATH",
      "service": "surrealdb",
      "description": "Database path used for storing data",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SURREAL_USER",
      "service": "surrealdb",
      "description": "The username for the initial database user",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "surrealdb",
      "description": "Start Surreal as root to allow writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SURREAL_PRIVATE_URL",
      "service": "surrealdb",
      "description": "Private database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SURREAL_PRIVATE_HOST",
      "service": "surrealdb",
      "description": "Private database hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SURREAL_PRIVATE_PORT",
      "service": "surrealdb",
      "description": "The Private port that Surreal runs on",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "SURREAL_CAPS_ALLOW_ALL",
      "service": "surrealdb",
      "description": "Allow all capabilities",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SURREAL_HTTP_PRIVATE_URL",
      "service": "surrealdb",
      "description": "Private Railway URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "open-notebook"
      }
    },
    "cli": "railway deploy --template open-notebook",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e33aecd7-f718-4bc0-9b57-b641c55b3fce",
            "serializedConfig": {
              "services": {
                "18dfbdf0-ee0a-45fe-9e47-4c128f3a23b6": {
                  "icon": "https://avatars.githubusercontent.com/u/12955528?s=48&v=4",
                  "name": "proxy",
                  "deploy": {
                    "healthcheckPath": "/api/config",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "monotykamary/railway-open-notebook-caddy-proxy",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Default exposed port",
                      "defaultValue": "80"
                    },
                    "API_ENDPOINT": {
                      "description": "Private API endpoint",
                      "defaultValue": "http://${{open-notebook.RAILWAY_PRIVATE_DOMAIN}}:5055"
                    },
                    "WEB_ENDPOINT": {
                      "description": "Private web endpoint",
                      "defaultValue": "http://${{open-notebook.RAILWAY_PRIVATE_DOMAIN}}:8502"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                },
                "54e74925-1957-4b9c-87c7-06374014978c": {
                  "icon": "https://raw.githubusercontent.com/lfnovo/open-notebook/refs/heads/main/docs/assets/hero.svg",
                  "name": "open-notebook",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "lfnovo/open_notebook:1.14.0"
                  },
                  "variables": {
                    "API_URL": {
                      "isOptional": false,
                      "description": "Public API URL for the open_notebook service",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SURREAL_URL": {
                      "isOptional": false,
                      "description": "WebSocket URL to connect to SurrealDB (references surrealdb service)",
                      "defaultValue": "${{surrealdb.SURREAL_PRIVATE_URL}}"
                    },
                    "CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Allow browser API requests only from the public proxy origin.",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SURREAL_USER": {
                      "description": "Database username (references surrealdb service)",
                      "defaultValue": "${{surrealdb.SURREAL_USER}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "Your OpenAI API key",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "SURREAL_DATABASE": {
                      "description": "SurrealDB database name",
                      "defaultValue": "open_notebook"
                    },
                    "SURREAL_PASSWORD": {
                      "description": "Database password (references surrealdb service)",
                      "defaultValue": "${{surrealdb.SURREAL_PASS}}"
                    },
                    "SURREAL_NAMESPACE": {
                      "description": "SurrealDB namespace",
                      "defaultValue": "open_notebook"
                    },
                    "OPEN_NOTEBOOK_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Generated key used to encrypt provider credentials at rest.",
                      "defaultValue": "{{OPEN_NOTEBOOK_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "54e74925-1957-4b9c-87c7-06374014978c": {
                      "mountPath": "/app/data"
                    }
                  }
                },
                "fac1202c-f4e4-4475-86f6-c21005d49bd0": {
                  "icon": "https://i.imgur.com/vIELb4n.png",
                  "name": "surrealdb",
                  "deploy": {
                    "startCommand": "/surreal start --deny-guests --no-banner",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "surrealdb/surrealdb:v2.6.5"
                  },
                  "variables": {
                    "PORT": {
                      "description": "The internal port railway will route external traffic to",
                      "defaultValue": "${{SURREAL_PRIVATE_PORT}}"
                    },
                    "SURREAL_LOG": {
                      "description": "The logging level for the database server",
                      "defaultValue": "info"
                    },
                    "SURREAL_BIND": {
                      "description": "The hostname or ip address to listen for connections on",
                      "defaultValue": "[::]:${{SURREAL_PRIVATE_PORT}}"
                    },
                    "SURREAL_PASS": {
                      "description": "The password for the initial database user",
                      "defaultValue": "{{SURREAL_PASS}}"
                    },
                    "SURREAL_PATH": {
                      "description": "Database path used for storing data",
                      "defaultValue": "surrealkv:/${{RAILWAY_VOLUME_MOUNT_PATH}}/srdb.db"
                    },
                    "SURREAL_USER": {
                      "description": "The username for the initial database user",
                      "defaultValue": "{{SURREAL_USER}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Start Surreal as root to allow writing to the volume",
                      "defaultValue": "0"
                    },
                    "SURREAL_PRIVATE_URL": {
                      "description": "Private database URL",
                      "defaultValue": "ws://${{RAILWAY_PRIVATE_DOMAIN}}:${{SURREAL_PRIVATE_PORT}}/rpc"
                    },
                    "SURREAL_PRIVATE_HOST": {
                      "description": "Private database hostname",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SURREAL_PRIVATE_PORT": {
                      "description": "The Private port that Surreal runs on",
                      "defaultValue": "8000"
                    },
                    "SURREAL_CAPS_ALLOW_ALL": {
                      "description": "Allow all capabilities",
                      "defaultValue": "true"
                    },
                    "SURREAL_HTTP_PRIVATE_URL": {
                      "description": "Private Railway URL",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:${{SURREAL_PRIVATE_PORT}}"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "fac1202c-f4e4-4475-86f6-c21005d49bd0": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "proxy",
      "method": "GET",
      "path": "/api/config",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T19:07:27.331Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ddaa70de843447a689ef",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 50,
    "typical_build_seconds": 10,
    "typical_start_seconds": 21,
    "slowest_service": "proxy"
  }
}
