{
  "manifest_version": "1.0.0",
  "template": {
    "id": "653433ff-e4e9-4095-a501-b39eb369a3dc",
    "slug": "mnOZG-",
    "name": "wakapi",
    "description": "A minimalist, self-hosted WakaTime-compatible backend for coding statistics",
    "url": "https://railway.com/deploy/mnOZG-",
    "upstream": {
      "image": "ghcr.io/muety/wakapi:latest"
    }
  },
  "services": [
    {
      "name": "wakapi",
      "source": {
        "image": "ghcr.io/muety/wakapi:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "wakapi",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "ENVIRONMENT",
      "service": "wakapi",
      "description": "Provide a value for ENVIRONMENT.",
      "secret": false,
      "strategy": "default",
      "default": "prod"
    },
    {
      "key": "WAKAPI_PORT",
      "service": "wakapi",
      "description": "Provide a value for WAKAPI_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WAKAPI_DB_NAME",
      "service": "wakapi",
      "description": "database name for mysql / postgres or file path for sqlite (e.g. /data/wakapi.db)",
      "secret": false,
      "strategy": "default",
      "default": "/data/wakapi.db"
    },
    {
      "key": "WAKAPI_DB_TYPE",
      "service": "wakapi",
      "description": "Database type (one of sqlite3, mysql, postgres, cockroach)",
      "secret": false,
      "strategy": "default",
      "default": "sqlite3"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "wakapi",
      "description": "Makes railway run the service as root so it can use the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "WAKAPI_LISTEN_IPV4",
      "service": "wakapi",
      "description": "Provide a value for WAKAPI_LISTEN_IPV4.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "WAKAPI_ALLOW_SIGNUP",
      "service": "wakapi",
      "description": "Whether to enable user registration",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "WAKAPI_PASSWORD_SALT",
      "service": "wakapi",
      "description": "Provide a value for WAKAPI_PASSWORD_SALT.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WAKAPI_INSECURE_COOKIES",
      "service": "wakapi",
      "description": "Provide a value for WAKAPI_INSECURE_COOKIES.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mnOZG-"
      }
    },
    "cli": "railway deploy --template mnOZG-",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "653433ff-e4e9-4095-a501-b39eb369a3dc",
            "serializedConfig": {
              "services": {
                "b2ddaf71-9daf-489a-ba1d-199b7fbe7331": {
                  "name": "wakapi",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health"
                  },
                  "source": {
                    "image": "ghcr.io/muety/wakapi:latest",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "defaultValue": "3000"
                    },
                    "ENVIRONMENT": {
                      "isOptional": true,
                      "defaultValue": "prod"
                    },
                    "WAKAPI_PORT": {
                      "isOptional": true,
                      "defaultValue": "${{PORT}}"
                    },
                    "WAKAPI_DB_NAME": {
                      "isOptional": true,
                      "description": "database name for mysql / postgres or file path for sqlite (e.g. /data/wakapi.db)",
                      "defaultValue": "/data/wakapi.db"
                    },
                    "WAKAPI_DB_TYPE": {
                      "isOptional": true,
                      "description": "Database type (one of sqlite3, mysql, postgres, cockroach)",
                      "defaultValue": "sqlite3"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": true,
                      "description": "Makes railway run the service as root so it can use the volume",
                      "defaultValue": "0"
                    },
                    "WAKAPI_LISTEN_IPV4": {
                      "isOptional": true,
                      "defaultValue": "0.0.0.0"
                    },
                    "WAKAPI_ALLOW_SIGNUP": {
                      "isOptional": true,
                      "description": "Whether to enable user registration",
                      "defaultValue": "true"
                    },
                    "WAKAPI_PASSWORD_SALT": {
                      "isOptional": true,
                      "defaultValue": "{{WAKAPI_PASSWORD_SALT}}"
                    },
                    "WAKAPI_INSECURE_COOKIES": {
                      "isOptional": true,
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "b2ddaf71-9daf-489a-ba1d-199b7fbe7331": {
                      "mountPath": "/data/"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "wakapi",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T15:19:04.484Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b88c2a9010ad48829246",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 92,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "wakapi"
  }
}
