{
  "author": {
    "address": "0xc820da3Ce55C600A6282D2B21083Fe5Aa7E51F3D",
    "signature": "74919ad759a2184c7b45190cc1645afbc97929b36f164ee48d4934842865f41036cdace8df1918388824bb2c3864dd58cb3e2afaa8797a8cf4c0302971ae92c71b"
  },
  "available_to_orchestrator": true,
  "changelog": "Created a tested workflow that accepts a public GitHub repository URL and returns its current star count with an on-screen summary.",
  "content_hash": "sha256:a989a8206938f15e47bbb46f9211136e62b4e4f5bc55ec4de72fc5ecdaecc1d2",
  "created_at": "2026-10-07T21:55:19Z",
  "format": "osaurus.template",
  "format_version": 1,
  "id": "F2E31009-6379-45E3-A7D9-2038F4766114",
  "kind": "workflow",
  "name": "GitHub Star Stats",
  "requirements": {
    "knowledge": [],
    "mcp_servers": [],
    "models": [],
    "network": [
      "api.github.com"
    ],
    "notes": {},
    "permissions": [],
    "plugins": [],
    "secrets": []
  },
  "summary": "Get the current star count for a public GitHub repository.",
  "version": 1,
  "workflow": {
    "edges": [],
    "examples": [
      {
        "input": {
          "repository_url": "https://github.com/apple/swift"
        },
        "name": "Apple Swift repository"
      }
    ],
    "input_schema": {
      "additionalProperties": false,
      "properties": {
        "repository_url": {
          "description": "Enter the full URL of a public GitHub repository, such as https://github.com/apple/swift.",
          "title": "Repository URL",
          "type": "string"
        }
      },
      "required": [
        "repository_url"
      ],
      "type": "object",
      "x-order": [
        "repository_url"
      ]
    },
    "model_slots": [],
    "nodes": [
      {
        "code": {
          "memory_limit_mb": 64,
          "network": [
            "api.github.com"
          ],
          "secrets": [],
          "source": "async function run(input, ctx) {\n  const raw = String(input.repository_url || '').trim();\n  const match = raw.match(/^https:\\/\\/(?:www\\.)?github\\.com\\/([^\\/?#]+)\\/([^\\/?#]+?)(?:\\.git)?\\/?(?:[?#].*)?$/i);\n  if (!match) throw new Error('Enter a full public repository URL such as https://github.com/apple/swift.');\n  const owner = match[1];\n  const repo = match[2];\n  const response = await ctx.fetch(`https://api.github.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}`, {\n    headers: { 'Accept': 'application/vnd.github+json', 'X-GitHub-Api-Version': '2022-11-28', 'User-Agent': 'Osaurus-GitHub-Star-Stats' }\n  });\n  if (response.status === 404) throw new Error('Repository not found. Check that it exists and is public.');\n  if (response.status === 403) throw new Error('GitHub API rate limit reached. Please try again later.');\n  if (!response.ok) throw new Error(`GitHub API request failed with status ${response.status}.`);\n  const data = await response.json();\n  const repository = data.full_name;\n  const star_count = data.stargazers_count;\n  return {\n    repository,\n    star_count,\n    summary: `${repository} currently has ${star_count.toLocaleString('en-US')} GitHub star${star_count === 1 ? '' : 's'}.`\n  };\n}",
          "timeout": 30
        },
        "id": "fetch_stars",
        "input": {
          "repository_url": "{{input.repository_url}}"
        },
        "intent": "Use GitHub's public API to retrieve the repository name and current stargazer count.",
        "kind": "code",
        "name": "Fetch GitHub stars",
        "output_schema": {
          "additionalProperties": false,
          "properties": {
            "repository": {
              "type": "string"
            },
            "star_count": {
              "type": "integer"
            },
            "summary": {
              "type": "string"
            }
          },
          "required": [
            "repository",
            "star_count",
            "summary"
          ],
          "type": "object"
        },
        "retry": {
          "backoff_seconds": 1,
          "max_attempts": 1
        },
        "timeout": 120
      }
    ],
    "output": {
      "repository": "{{nodes.fetch_stars.output.repository}}",
      "star_count": "{{nodes.fetch_stars.output.star_count}}",
      "summary": "{{nodes.fetch_stars.output.summary}}"
    },
    "output_schema": {
      "additionalProperties": false,
      "properties": {
        "repository": {
          "title": "Repository",
          "type": "string"
        },
        "star_count": {
          "title": "Stars",
          "type": "integer"
        },
        "summary": {
          "title": "Summary",
          "type": "string"
        }
      },
      "required": [
        "repository",
        "star_count",
        "summary"
      ],
      "type": "object"
    },
    "requirement_notes": {},
    "secrets": []
  }
}