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
/api/lcov-viewerFull 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).
| Field | Type | Required | Description |
|---|---|---|---|
| lcov | string | Yes | Raw 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.
| Field | Type | Description |
|---|---|---|
| summary | object | — |
| files | array | — |
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
| Status | Meaning |
|---|---|
| 200 | Success — result in response body |
| 400 | Bad request — invalid input; error field describes the problem |
| 404 | Tool not found |
| 429 | Rate limit exceeded (30 req/min anonymous, 300 req/min free key) |
| 500 | Internal 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.