UiPool v0.2.0

Output Format

Understanding the structure of UiPool scan reports.

Report Structure #

The generated report follows this JSON structure:

uipool-report.json
{
  "generatedAt": "2025-12-30T10:00:00.000Z",
  "projectName": "my-app",
  "entries": [
    {
      "patternId": "login-flow",
      "count": 4,
      "files": [
        "src/pages/LoginPage.tsx",
        "src/pages/SignupPage.tsx",
        "src/components/AuthModal.tsx"
      ]
    },
    {
      "patternId": "data-table",
      "count": 2,
      "files": [
        "src/components/UserTable.tsx"
      ]
    }
  ],
  "components": [
    {
      "componentId": "button-primary",
      "count": 12,
      "files": [
        "src/components/Button.tsx",
        "src/pages/HomePage.tsx"
      ]
    }
  ]
}

Field Reference #

FieldDescription
generatedAtISO 8601 timestamp when the report was generated
projectNameName of the project (from package.json or folder name)
entriesArray of pattern entries, sorted alphabetically by patternId
entries[].patternIdThe pattern identifier from the annotation
entries[].countTotal occurrences across all files
entries[].filesUnique list of files containing the pattern
componentsArray of component entries (only if components found)
components[].componentIdThe component identifier
components[].countTotal component occurrences
components[].filesFiles containing the component annotation

Notes #

  • The components array is only included if component annotations are found
  • File paths are relative to the scanned directory
  • Both arrays are sorted alphabetically by their respective IDs
  • Duplicate annotations in the same file increment the count