{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bf50984c-e262-4b30-be25-6755a3775350",
    "slug": "happyview-2-sqlite-1",
    "name": "HappyView 2 (SQLite)",
    "description": "A lexicon-driven ATProto AppView.",
    "url": "https://railway.com/deploy/happyview-2-sqlite-1",
    "upstream": {
      "image": "ghcr.io/gamesgamesgamesgamesgames/happyview:2.14.2"
    }
  },
  "services": [
    {
      "name": "HappyView",
      "source": {
        "image": "ghcr.io/gamesgamesgamesgamesgames/happyview:2.14.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "RUST_LOG",
      "service": "HappyView",
      "description": "Log level filter",
      "secret": false,
      "strategy": "default",
      "default": "happyview=info,tower_http=info"
    },
    {
      "key": "PUBLIC_URL",
      "service": "HappyView",
      "description": "Your public URL (e.g. https://happyview-production.up.railway.app)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "HappyView",
      "description": "Database connection string",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:///data/happyview.db?mode=rwc"
    },
    {
      "key": "SESSION_SECRET",
      "service": "HappyView",
      "description": "A random 48+ character string (e.g. `openssl rand -base64 48`)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TOKEN_ENCRYPTION_KEY",
      "service": "HappyView",
      "description": "Base64-encoded 32-byte key for encrypting plugin secrets and DPoP private keys at rest. Required for dashboard-managed plugin secrets and third-party app OAuth sessions (e.g. `openssl rand -base64 32`)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "happyview-2-sqlite-1"
      }
    },
    "cli": "railway deploy --template happyview-2-sqlite-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bf50984c-e262-4b30-be25-6755a3775350",
            "serializedConfig": {
              "services": {
                "56ff0d03-06ee-420a-9629-ed97fe4568e9": {
                  "icon": "https://github.com/gamesgamesgamesgamesgames/happyview/blob/main/design/face.png?raw=true",
                  "name": "HappyView",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/gamesgamesgamesgamesgames/happyview:2.14.2"
                  },
                  "variables": {
                    "RUST_LOG": {
                      "isOptional": true,
                      "description": "Log level filter",
                      "defaultValue": "happyview=info,tower_http=info"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Your public URL (e.g. https://happyview-production.up.railway.app)",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database connection string",
                      "defaultValue": "sqlite:///data/happyview.db?mode=rwc"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "description": "A random 48+ character string (e.g. `openssl rand -base64 48`)",
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "TOKEN_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Base64-encoded 32-byte key for encrypting plugin secrets and DPoP private keys at rest. Required for dashboard-managed plugin secrets and third-party app OAuth sessions (e.g. `openssl rand -base64 32`)",
                      "defaultValue": "{{TOKEN_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "56ff0d03-06ee-420a-9629-ed97fe4568e9": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "HappyView",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T14:08:39.419Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3d7f9d71a21641d18cce",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 69,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "HappyView"
  }
}
