Skip to content
HALOWERK

Codewerk

repo stats

Counts files, lines, code, comment and blank lines and simple complexity tokens per language at HEAD, using the language definitions of scc v4.1.0 (MIT: extensions, file names, shebangs, comment markers, string quotes, docstrings, nested comments), skipping binaries and blobs over 512 KB. History activity (from a shallow clone of up to 1000 commits or a bundle) gives first/last commit dates, active days, commits per month, commits in the last 30/90/365 days, merge commits, the number of.

POST https://code.halowerk.com/v1/repo-stats

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
repo_urlstringNoPublic HTTPS clone URL, e.g. https://github.com/owner/repo. No credentials, port 443 only; ssh/git/file URLs are rejected.
bundle_base64stringNoAlternative to repo_url: a git bundle (git bundle create repo.bundle --all), base64-encoded, up to about 180 KB.
refstringNoBranch or tag to analyse instead of the default branch.
filesarrayNoAlternative: files with content (languages only, no activity).
history_depthintegerNoNumber of commits used for the activity figures.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "repo_url": {
      "type": "string",
      "minLength": 12,
      "maxLength": 300,
      "pattern": "^https://\\S+$",
      "description": "Public HTTPS clone URL, e.g. https://github.com/owner/repo. No credentials, port 443 only; ssh/git/file URLs are rejected."
    },
    "bundle_base64": {
      "type": "string",
      "minLength": 24,
      "maxLength": 250000,
      "description": "Alternative to repo_url: a git bundle (git bundle create repo.bundle --all), base64-encoded, up to about 180 KB."
    },
    "ref": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]*$",
      "description": "Branch or tag to analyse instead of the default branch."
    },
    "files": {
      "type": "array",
      "minItems": 1,
      "maxItems": 300,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "path",
          "content"
        ],
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "content": {
            "type": "string",
            "maxLength": 200000
          }
        }
      },
      "description": "Alternative: files with content (languages only, no activity)."
    },
    "history_depth": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 300,
      "description": "Number of commits used for the activity figures."
    }
  }
}

Open original schema

Published input example

{
  "repo_url": "https://github.com/octocat/Hello-World"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’