validation

LCOV Coverage Viewer API Reference

Paste or upload an LCOV .info file (generated by Jest, Istanbul/nyc, Vitest, gcov, coverage.py, and more) to get a structured coverage summary with per-file breakdown. All processing runs in your browser — your code never leaves your device.

Endpoint

POST/api/lcov-viewer

Full URL: https://quickhelp.dev/api/lcov-viewer

Request

Content-Type: application/json. No authentication required for the anonymous free tier (30 req/min per IP).

FieldTypeRequiredDescription
lcovstringYesRaw LCOV .info file content

Response

Returns application/json. On error, returns a JSON object with an error string field and an appropriate HTTP status code.

FieldTypeDescription
summaryobject
filesarray

Example

Parse a Jest LCOV report

curl

curl -X POST https://quickhelp.dev/api/lcov-viewer \
  -H 'Content-Type: application/json' \
  -d '{"lcov":"TN:\nSF:src/utils.ts\nFNF:3\nFNH:2\nBRF:8\nBRH:6\nDA:1,1\nDA:2,1\nDA:3,0\nLF:3\nLH:2\nend_of_record"}'

Request body

{
  "lcov": "TN:\nSF:src/utils.ts\nFNF:3\nFNH:2\nBRF:8\nBRH:6\nDA:1,1\nDA:2,1\nDA:3,0\nLF:3\nLH:2\nend_of_record"
}

Response

{
  "summary": {
    "linesCoverage": 66.7,
    "functionsCoverage": 66.7,
    "branchesCoverage": 75,
    "linesHit": 2,
    "linesFound": 3,
    "functionsHit": 2,
    "functionsFound": 3,
    "branchesHit": 6,
    "branchesFound": 8
  },
  "files": [
    {
      "path": "src/utils.ts",
      "linesCoverage": 66.7,
      "functionsCoverage": 66.7,
      "branchesCoverage": 75,
      "linesHit": 2,
      "linesFound": 3,
      "functionsHit": 2,
      "functionsFound": 3,
      "branchesHit": 6,
      "branchesFound": 8
    }
  ]
}

Error codes

StatusMeaning
200Success — result in response body
400Bad request — invalid input; error field describes the problem
404Tool not found
429Rate limit exceeded (30 req/min anonymous, 300 req/min free key)
500Internal server error — transient; retry with exponential back-off

OpenAPI spec

The full OpenAPI 3.1 specification for all tools is available at /openapi.json. Import it into Postman, Insomnia, or any OpenAPI-compatible client to get all endpoints with schema validation automatically.

We use cookies to serve ads and measure traffic. Cookie policy · Privacy policy