{
  "schema_version": "1.0.0",
  "scanner": {
    "name": "global-capability-catalog",
    "version": "0.1.0"
  },
  "repo": {
    "id": "github-recent__mbarbine__platphorm-news-alt-theme",
    "name": "mbarbine__platphorm-news-alt-theme",
    "path": "/Users/bwm.barbinewarnermichael/Documents/github/repositories/github-recent/mbarbine__platphorm-news-alt-theme",
    "relative_path": "github-recent/mbarbine__platphorm-news-alt-theme",
    "remote_url": "git@github.com:mbarbine/platphorm-news-alt-theme.git",
    "default_branch": "main",
    "current_commit": "47eee5381404316a25a32cb62fcc3ed6058a14c5"
  },
  "languages": [
    {
      "language": "YAML",
      "files": 1,
      "bytes": 170359
    },
    {
      "language": "TypeScript",
      "files": 60,
      "bytes": 136575
    },
    {
      "language": "SQL",
      "files": 13,
      "bytes": 29781
    },
    {
      "language": "CSS",
      "files": 2,
      "bytes": 9668
    },
    {
      "language": "Markdown",
      "files": 4,
      "bytes": 3564
    },
    {
      "language": "JSON",
      "files": 3,
      "bytes": 3553
    },
    {
      "language": "JavaScript",
      "files": 2,
      "bytes": 372
    }
  ],
  "frameworks": [
    {
      "name": "Next.js",
      "confidence": "high",
      "evidence_paths": [
        "package.json"
      ]
    },
    {
      "name": "React",
      "confidence": "high",
      "evidence_paths": [
        "package.json"
      ]
    },
    {
      "name": "Tailwind CSS",
      "confidence": "high",
      "evidence_paths": [
        "package.json"
      ]
    }
  ],
  "packages": {
    "package_manager": "pnpm",
    "manifests": [
      {
        "path": "package.json",
        "name": "platphormnews-webby-project",
        "version": "0.1.0",
        "scripts": {
          "build": "next build",
          "dev": "next dev",
          "lint": "eslint .",
          "start": "next start"
        },
        "dependencies": {
          "@hookform/resolvers": "^3.10.0",
          "@radix-ui/react-accordion": "1.2.2",
          "@radix-ui/react-alert-dialog": "1.1.4",
          "@radix-ui/react-aspect-ratio": "1.1.1",
          "@radix-ui/react-avatar": "1.1.2",
          "@radix-ui/react-checkbox": "1.1.3",
          "@radix-ui/react-collapsible": "1.1.2",
          "@radix-ui/react-context-menu": "2.2.4",
          "@radix-ui/react-dialog": "latest",
          "@radix-ui/react-dropdown-menu": "2.1.4",
          "@radix-ui/react-hover-card": "1.1.4",
          "@radix-ui/react-label": "latest",
          "@radix-ui/react-menubar": "1.1.4",
          "@radix-ui/react-navigation-menu": "1.2.3",
          "@radix-ui/react-popover": "1.1.4",
          "@radix-ui/react-progress": "1.1.1",
          "@radix-ui/react-radio-group": "latest",
          "@radix-ui/react-scroll-area": "1.2.2",
          "@radix-ui/react-select": "2.1.4",
          "@radix-ui/react-separator": "latest",
          "@radix-ui/react-slider": "1.2.2",
          "@radix-ui/react-slot": "latest",
          "@radix-ui/react-switch": "1.1.2",
          "@radix-ui/react-tabs": "latest",
          "@radix-ui/react-toast": "1.2.4",
          "@radix-ui/react-toggle": "1.1.1",
          "@radix-ui/react-toggle-group": "1.1.1",
          "@radix-ui/react-tooltip": "latest",
          "@supabase/ssr": "latest",
          "@supabase/supabase-js": "latest",
          "@vercel/analytics": "latest",
          "@vercel/speed-insights": "latest",
          "autoprefixer": "^10.4.20",
          "class-variance-authority": "^0.7.1",
          "clsx": "^2.1.1",
          "cmdk": "1.0.4",
          "date-fns": "4.1.0",
          "embla-carousel-react": "8.5.1",
          "input-otp": "1.4.1",
          "lucide-react": "^0.454.0",
          "next": "16.0.10",
          "next-themes": "latest",
          "react": "19.2.0",
          "react-day-picker": "9.8.0",
          "react-dom": "19.2.0",
          "react-hook-form": "^7.60.0",
          "react-resizable-panels": "^2.1.7",
          "recharts": "2.15.4",
          "sonner": "^1.7.4",
          "tailwind-merge": "^2.5.5",
          "tailwindcss-animate": "^1.0.7",
          "vaul": "^0.9.9",
          "vue-router": "latest",
          "zod": "3.25.76"
        },
        "dev_dependencies": {
          "@tailwindcss/postcss": "^4.1.9",
          "@types/node": "^22",
          "@types/react": "^19",
          "@types/react-dom": "^19",
          "postcss": "^8.5",
          "tailwindcss": "^4.1.9",
          "tw-animate-css": "1.3.3",
          "typescript": "^5"
        }
      }
    ]
  },
  "routes": {
    "api_routes": [
      {
        "route": "/auth/logout",
        "source_path": "app/api/auth/logout/route.ts",
        "kind": "next-app-api-route",
        "methods": [
          "POST"
        ]
      },
      {
        "route": "/stories/[type]",
        "source_path": "app/api/stories/[type]/route.ts",
        "kind": "next-app-api-route",
        "methods": [
          "GET"
        ]
      }
    ],
    "app_routes": [
      {
        "route": "/ask",
        "source_path": "app/ask/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/best",
        "source_path": "app/best/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/favorites",
        "source_path": "app/favorites/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/from/[domain]",
        "source_path": "app/from/[domain]/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/item/[id]",
        "source_path": "app/item/[id]/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/jobs",
        "source_path": "app/jobs/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/login",
        "source_path": "app/login/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/settings",
        "source_path": "app/settings/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/show",
        "source_path": "app/show/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/signup-success",
        "source_path": "app/signup-success/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/signup",
        "source_path": "app/signup/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/submit",
        "source_path": "app/submit/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/top",
        "source_path": "app/top/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      },
      {
        "route": "/user/[username]",
        "source_path": "app/user/[username]/page.tsx",
        "kind": "next-app-page",
        "methods": [
          "GET"
        ]
      }
    ]
  },
  "components": [
    {
      "name": "app-sidebar",
      "kind": "ui-component",
      "source_path": "components/app-sidebar.tsx"
    },
    {
      "name": "comment-form",
      "kind": "ui-component",
      "source_path": "components/comment-form.tsx"
    },
    {
      "name": "comment-item",
      "kind": "ui-component",
      "source_path": "components/comment-item.tsx"
    },
    {
      "name": "comment-list",
      "kind": "ui-component",
      "source_path": "components/comment-list.tsx"
    },
    {
      "name": "header",
      "kind": "ui-component",
      "source_path": "components/header.tsx"
    },
    {
      "name": "settings-form",
      "kind": "ui-component",
      "source_path": "components/settings-form.tsx"
    },
    {
      "name": "story-detail",
      "kind": "ui-component",
      "source_path": "components/story-detail.tsx"
    },
    {
      "name": "story-item",
      "kind": "ui-component",
      "source_path": "components/story-item.tsx"
    },
    {
      "name": "story-list-client",
      "kind": "ui-component",
      "source_path": "components/story-list-client.tsx"
    },
    {
      "name": "submit-form",
      "kind": "ui-component",
      "source_path": "components/submit-form.tsx"
    },
    {
      "name": "theme-provider",
      "kind": "ui-component",
      "source_path": "components/theme-provider.tsx"
    },
    {
      "name": "button",
      "kind": "ui-component",
      "source_path": "components/ui/button.tsx"
    },
    {
      "name": "card",
      "kind": "ui-component",
      "source_path": "components/ui/card.tsx"
    },
    {
      "name": "input",
      "kind": "ui-component",
      "source_path": "components/ui/input.tsx"
    },
    {
      "name": "label",
      "kind": "ui-component",
      "source_path": "components/ui/label.tsx"
    },
    {
      "name": "radio-group",
      "kind": "ui-component",
      "source_path": "components/ui/radio-group.tsx"
    },
    {
      "name": "separator",
      "kind": "ui-component",
      "source_path": "components/ui/separator.tsx"
    },
    {
      "name": "sheet",
      "kind": "ui-component",
      "source_path": "components/ui/sheet.tsx"
    },
    {
      "name": "sidebar",
      "kind": "ui-component",
      "source_path": "components/ui/sidebar.tsx"
    },
    {
      "name": "skeleton",
      "kind": "ui-component",
      "source_path": "components/ui/skeleton.tsx"
    },
    {
      "name": "tabs",
      "kind": "ui-component",
      "source_path": "components/ui/tabs.tsx"
    },
    {
      "name": "textarea",
      "kind": "ui-component",
      "source_path": "components/ui/textarea.tsx"
    },
    {
      "name": "tooltip",
      "kind": "ui-component",
      "source_path": "components/ui/tooltip.tsx"
    },
    {
      "name": "vote-button",
      "kind": "ui-component",
      "source_path": "components/vote-button.tsx"
    }
  ],
  "data_models": [],
  "database": {
    "databases": [],
    "schemas": [],
    "migrations": []
  },
  "tests": [],
  "ci": {
    "workflows": []
  },
  "containers": {
    "dockerfiles": [],
    "compose_files": []
  },
  "env": {
    "example_files": [],
    "variables": [
      {
        "name": "HACKER_NEWS_API_URL",
        "source_paths": [
          "lib/hacker-news.ts"
        ],
        "likely_secret": false
      },
      {
        "name": "NEXT_PUBLIC_DEV_SUPABASE_REDIRECT_URL",
        "source_paths": [
          "app/signup/page.tsx"
        ],
        "likely_secret": false
      },
      {
        "name": "NEXT_PUBLIC_SITE_URL",
        "source_paths": [
          "app/api/auth/logout/route.ts"
        ],
        "likely_secret": false
      },
      {
        "name": "NEXT_PUBLIC_SUPABASE_ANON_KEY",
        "source_paths": [
          "lib/supabase/client.ts",
          "lib/supabase/middleware.ts",
          "lib/supabase/server.ts"
        ],
        "likely_secret": true
      },
      {
        "name": "NEXT_PUBLIC_SUPABASE_URL",
        "source_paths": [
          "lib/supabase/client.ts",
          "lib/supabase/middleware.ts",
          "lib/supabase/server.ts",
          "lib/supabase/service.ts"
        ],
        "likely_secret": false
      },
      {
        "name": "SUPABASE_SERVICE_ROLE_KEY",
        "source_paths": [
          "lib/supabase/service.ts"
        ],
        "likely_secret": true
      }
    ]
  },
  "configs": [
    {
      "path": "next.config.mjs"
    },
    {
      "path": "package.json"
    },
    {
      "path": "postcss.config.mjs"
    },
    {
      "path": "tsconfig.json"
    }
  ],
  "docs": {
    "readme_paths": [
      {
        "path": "README.md"
      }
    ],
    "doc_paths": [],
    "llms_context_paths": []
  },
  "discovery_files": {
    "openapi": [],
    "mcp": [],
    "llms": [],
    "sitemaps": [],
    "feeds": [],
    "well_known": [],
    "robots": [],
    "manifests": []
  },
  "integrations": [
    {
      "name": "Supabase",
      "confidence": "medium",
      "evidence_paths": [
        "app/signup/page.tsx",
        "lib/supabase/client.ts",
        "lib/supabase/middleware.ts",
        "lib/supabase/server.ts",
        "lib/supabase/service.ts",
        "package.json",
        "pnpm-lock.yaml"
      ]
    },
    {
      "name": "Vercel",
      "confidence": "medium",
      "evidence_paths": [
        "app/layout.tsx",
        "package.json",
        "pnpm-lock.yaml"
      ]
    }
  ],
  "license": {
    "spdx": null,
    "paths": []
  },
  "comments": [
    {
      "kind": "security",
      "source_path": "app/actions/submit-story.ts",
      "line": 24,
      "text": "// Security: Validate URL protocol to prevent javascript: and data: URI XSS"
    },
    {
      "kind": "deprecated",
      "source_path": "pnpm-lock.yaml",
      "line": 2235,
      "text": "deprecated: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by conta"
    },
    {
      "kind": "security",
      "source_path": "scripts/001_create_users_and_profiles.sql",
      "line": 15,
      "text": "alter table public.profiles enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/001_create_users_and_profiles.sql",
      "line": 34,
      "text": "security definer"
    },
    {
      "kind": "security",
      "source_path": "scripts/002_create_stories.sql",
      "line": 16,
      "text": "alter table public.stories enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/002_fix_rls_policies.sql",
      "line": 20,
      "text": "SECURITY DEFINER -- This allows the function to bypass RLS"
    },
    {
      "kind": "security",
      "source_path": "scripts/002_row_level_security.sql",
      "line": 2,
      "text": "alter table public.profiles enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/002_row_level_security.sql",
      "line": 3,
      "text": "alter table public.stories enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/002_row_level_security.sql",
      "line": 4,
      "text": "alter table public.comments enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/002_row_level_security.sql",
      "line": 5,
      "text": "alter table public.story_votes enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/002_row_level_security.sql",
      "line": 6,
      "text": "alter table public.comment_votes enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/002_row_level_security.sql",
      "line": 7,
      "text": "alter table public.favorites enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/003_create_comments.sql",
      "line": 14,
      "text": "alter table public.comments enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/003_functions_and_triggers.sql",
      "line": 5,
      "text": "security definer"
    },
    {
      "kind": "security",
      "source_path": "scripts/003_functions_and_triggers.sql",
      "line": 33,
      "text": "security definer"
    },
    {
      "kind": "security",
      "source_path": "scripts/003_functions_and_triggers.sql",
      "line": 61,
      "text": "security definer"
    },
    {
      "kind": "security",
      "source_path": "scripts/003_functions_and_triggers.sql",
      "line": 99,
      "text": "security definer"
    },
    {
      "kind": "security",
      "source_path": "scripts/004_create_votes.sql",
      "line": 12,
      "text": "alter table public.story_votes enable row level security;"
    },
    {
      "kind": "security",
      "source_path": "scripts/004_create_votes.sql",
      "line": 46,
      "text": "alter table public.comment_votes enable row level security;"
    }
  ],
  "security": {
    "secret_risks": [],
    "unsafe_patterns": [
      {
        "name": "ssrf-review-needed",
        "confidence": "medium",
        "evidence_paths": [
          "lib/hacker-news.ts"
        ]
      }
    ],
    "sensitive_data_indicators": [
      {
        "name": "card",
        "confidence": "medium",
        "evidence_paths": [
          "app/globals.css",
          "app/layout.tsx",
          "app/login/page.tsx",
          "app/signup-success/page.tsx",
          "app/signup/page.tsx",
          "components/story-item.tsx",
          "components/story-list-client.tsx",
          "components/ui/card.tsx",
          "components/vote-button.tsx",
          "package.json",
          "pnpm-lock.yaml",
          "styles/globals.css"
        ]
      },
      {
        "name": "email",
        "confidence": "medium",
        "evidence_paths": [
          "app/login/page.tsx",
          "app/signup-success/page.tsx",
          "app/signup/page.tsx",
          "scripts/001_create_users_and_profiles.sql"
        ]
      },
      {
        "name": "location",
        "confidence": "medium",
        "evidence_paths": [
          "app/login/page.tsx",
          "app/signup/page.tsx"
        ]
      },
      {
        "name": "password",
        "confidence": "medium",
        "evidence_paths": [
          "app/login/page.tsx",
          "app/signup/page.tsx"
        ]
      },
      {
        "name": "pii",
        "confidence": "medium",
        "evidence_paths": [
          "pnpm-lock.yaml"
        ]
      },
      {
        "name": "secret-like environment variables",
        "confidence": "medium",
        "evidence_paths": [
          "package.json"
        ]
      },
      {
        "name": "token",
        "confidence": "medium",
        "evidence_paths": [
          "lib/supabase/service.ts",
          "pnpm-lock.yaml"
        ]
      }
    ]
  },
  "generated_at": "2026-05-16T16:44:16.504Z"
}
