Skip to content
HALOWERK

Codewerk

sourcemap check

Parses the map with the source-map library (Mozilla, v0.8) and additionally decodes every VLQ segment itself (Source Map Revision 3 / ECMA-426) to report precise errors: invalid base64/VLQ, segments with 2 or 3 fields, source or name index out of range, mappings beyond the generated file's lines or line lengths, original positions outside sourcesContent. Checks version, sources/sourcesContent consistency, ignoreList, the sourceMappingURL comment and the share of non-whitespace generated.

POST https://code.halowerk.com/v1/sourcemap-check

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
mapSee schemaNoSource map JSON (text or object).
generatedstringNoGenerated (compiled/minified) code the map belongs to.
urlstringNoAlternative: public URL of a .js or .css file with a sourceMappingURL.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "map": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 2,
          "maxLength": 240000
        },
        {
          "type": "object"
        }
      ],
      "description": "Source map JSON (text or object)."
    },
    "generated": {
      "type": "string",
      "maxLength": 240000,
      "description": "Generated (compiled/minified) code the map belongs to."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2000,
      "description": "Alternative: public URL of a .js or .css file with a sourceMappingURL."
    }
  }
}

Open original schema

Published input example

{
  "map": {
    "version": 3,
    "file": "out.js",
    "sources": [
      "in.js"
    ],
    "names": [],
    "mappings": "AAAA;AACA"
  },
  "generated": "var a=1;\nvar b=2;\n//# sourceMappingURL=out.js.map"
}

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 โ†’