From af524184e224377e7342d37a45c47c997706643f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 7 May 2026 07:57:28 +0000 Subject: [PATCH 1/2] Add website with /oss page featuring anti-dark-pattern and slop-scan cards Agent-Logs-Url: https://github.com/erayaha/slop-scan/sessions/0ac53f12-6992-4829-82bf-1783f14e2f8b Co-authored-by: PranayShah <2013275+PranayShah@users.noreply.github.com> --- website/app/globals.css | 36 +++++ website/app/layout.tsx | 21 +++ website/app/oss/page.tsx | 279 +++++++++++++++++++++++++++++++++++++ website/app/page.tsx | 19 +++ website/next-env.d.ts | 6 + website/next.config.mjs | 4 + website/package.json | 25 ++++ website/postcss.config.mjs | 9 ++ website/tailwind.config.ts | 34 +++++ website/tsconfig.json | 40 ++++++ 10 files changed, 473 insertions(+) create mode 100644 website/app/globals.css create mode 100644 website/app/layout.tsx create mode 100644 website/app/oss/page.tsx create mode 100644 website/app/page.tsx create mode 100644 website/next-env.d.ts create mode 100644 website/next.config.mjs create mode 100644 website/package.json create mode 100644 website/postcss.config.mjs create mode 100644 website/tailwind.config.ts create mode 100644 website/tsconfig.json diff --git a/website/app/globals.css b/website/app/globals.css new file mode 100644 index 0000000..bf8028e --- /dev/null +++ b/website/app/globals.css @@ -0,0 +1,36 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +:root { + --background: 0 0% 100%; + --foreground: 240 10% 3.9%; + --primary: 240 5.9% 10%; + --primary-foreground: 0 0% 98%; + --secondary: 240 4.8% 95.9%; + --secondary-foreground: 240 5.9% 10%; + --muted: 240 4.8% 95.9%; + --muted-foreground: 240 3.8% 46.1%; + --border: 240 5.9% 90%; +} + +.dark { + --background: 240 10% 3.9%; + --foreground: 0 0% 98%; + --primary: 0 0% 98%; + --primary-foreground: 240 5.9% 10%; + --secondary: 240 3.7% 15.9%; + --secondary-foreground: 0 0% 98%; + --muted: 240 3.7% 15.9%; + --muted-foreground: 240 5% 64.9%; + --border: 240 3.7% 15.9%; +} + +* { + border-color: hsl(var(--border)); +} + +body { + background-color: hsl(var(--background)); + color: hsl(var(--foreground)); +} diff --git a/website/app/layout.tsx b/website/app/layout.tsx new file mode 100644 index 0000000..399f6d3 --- /dev/null +++ b/website/app/layout.tsx @@ -0,0 +1,21 @@ +import type { Metadata } from "next"; +import "./globals.css"; + +export const metadata: Metadata = { + title: "Erayaha", + description: "Erayaha — open source tools for developers.", +}; + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + return ( + +
+ {children} + + + ); +} diff --git a/website/app/oss/page.tsx b/website/app/oss/page.tsx new file mode 100644 index 0000000..1b89ff1 --- /dev/null +++ b/website/app/oss/page.tsx @@ -0,0 +1,279 @@ +import type { Metadata } from "next"; +import Link from "next/link"; + +export const metadata: Metadata = { + title: "Open Source | Erayaha", + description: + "Explore Erayaha's open source projects. We build tools for the developer community to detect UX anti-patterns and improve software quality.", +}; + +const ossProjects = [ + { + category: "Developer Tools", + name: "Anti Dark Pattern Linter", + subtitle: "Catch UX anti-patterns before they ship", + description: + "A GitHub Actions linter that automatically detects UX dark patterns in your codebase. Prevent misleading UI, hidden costs, roach motels, and other deceptive patterns from reaching your users — directly in your CI/CD pipeline.", + tags: ["GitHub Actions", "UX", "Linting", "CI/CD", "Dark Patterns"], + links: [ + { + label: "GitHub", + href: "https://github.com/erayaha/anti-dark-pattern", + primary: false, + }, + { + label: "Actions Marketplace", + href: "https://github.com/marketplace/actions/erayaha-anti-dark-pattern-linter", + primary: true, + }, + ], + }, + { + category: "Security", + name: "Slop Scan", + subtitle: "Detect hallucinated npm packages before they ship", + description: + "A security CLI and GitHub Action that parses your source code and Markdown documentation for npm package references, then verifies every package against the live npm registry. Protect your supply chain from slopsquatting — AI-hallucinated package names that attackers register as malware.", + tags: ["Security", "npm", "CLI", "GitHub Actions", "Supply Chain"], + links: [ + { + label: "GitHub", + href: "https://github.com/erayaha/slop-scan", + primary: false, + }, + { + label: "Actions Marketplace", + href: "https://github.com/marketplace/actions/slop-scan", + primary: true, + }, + ], + }, +]; + +function GitHubIcon({ size = 18 }: { size?: number }) { + return ( + + ); +} + +function CodeIcon() { + return ( + + ); +} + +function ExternalLinkIcon() { + return ( + + ); +} + +export default function OSSPage() { + return ( ++ We believe in giving back. Erayaha open sources tools that help + developers build better, more ethical software — starting with + detection of UX anti-patterns. +
++ Free, open source tools built by the Erayaha team and maintained + for the community. +
++ {project.subtitle} +
++ {project.description} +
+ ++ We default to open source for tools that benefit the broader + developer ecosystem. +
++ Our tools integrate directly into your workflow as GitHub + Actions — no extra setup required. +
++ Contributions, issues, and ideas are always welcome. We build + these tools together. +
++ Star our repos, report issues, submit pull requests, or just spread + the word. Every contribution counts. +
+ ++ Erayaha builds open source tools that help developers build better, + more ethical software. +
+ + View Open Source Projects → + +