{"id":49333832,"url":"https://github.com/airscripts/lgtm","last_synced_at":"2026-04-27T00:02:21.728Z","repository":{"id":349440420,"uuid":"1200851043","full_name":"airscripts/lgtm","owner":"airscripts","description":"Because code review deserves more vocabulary.","archived":false,"fork":false,"pushed_at":"2026-04-05T23:13:18.000Z","size":335,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T01:20:38.904Z","etag":null,"topics":["astro","funny","lgtm","pr","vite"],"latest_commit_sha":null,"homepage":"https://lgtm.airscript.it","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/airscripts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-03T22:43:13.000Z","updated_at":"2026-04-05T23:13:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/airscripts/lgtm","commit_stats":null,"previous_names":["airscripts/lgtm"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/airscripts/lgtm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airscripts%2Flgtm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airscripts%2Flgtm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airscripts%2Flgtm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airscripts%2Flgtm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/airscripts","download_url":"https://codeload.github.com/airscripts/lgtm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airscripts%2Flgtm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32317168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","funny","lgtm","pr","vite"],"created_at":"2026-04-27T00:02:21.264Z","updated_at":"2026-04-27T00:02:21.723Z","avatar_url":"https://github.com/airscripts.png","language":"TypeScript","readme":"# LGTM\n\nA fully static web application that catalogs alternative meanings for the acronym LGTM. Generate a random interpretation, browse the full collection, filter by category and rarity, and share individual entries via permanent URLs.\n\nLive at: https://lgtm.airscript.it\n\n---\n\n## Overview\n\nLGTM collects hundreds alternative meanings for \"LGTM\" (Looks Good To Me), organized by:\n\n- **Rarity** — common, regular, rare, legendary (weighted random generation)\n- **Category** — funny, sarcastic, wholesome, dev, existential, corporate, chaotic\n\nThe site is fully static (no server-side rendering, no database). All data lives in `data/lgtm.json`.\n\n---\n\n## Installation\n\nRequires Node.js \u003e= 24 and pnpm \u003e= 10.\n\n```sh\npnpm install\n```\n\n---\n\n## Development\n\n```sh\npnpm dev        # Start local dev server at http://localhost:4321\npnpm build      # Build static output to ./dist\npnpm preview    # Serve the built output locally\n```\n\n---\n\n## Routes\n\n| Route                     | Description                                          |\n| :------------------------ | :--------------------------------------------------- |\n| `/`                       | Homepage with weighted-random generator island       |\n| `/random`                 | Static redirect page — picks a random entry client-side and immediately navigates |\n| `/browse`                 | Full catalog with keyword search, category/rarity filter, and sort |\n| `/lgtm/[id]`              | Detail page for a single entry, shareable URL        |\n| `/categories`             | Grid of all categories with sample entries           |\n| `/categories/[category]`  | All entries within a single category                 |\n\n---\n\n## Theme Switcher\n\nThe navbar includes a 3-state theme toggle: **system** (default) → **light** → **dark** → system.\n\n- Default follows the OS `prefers-color-scheme` media query\n- The selected mode is persisted to `localStorage` under the key `lgtm-theme`\n- A no-flash inline script in `\u003chead\u003e` reads the stored value and sets `data-theme` on `\u003chtml\u003e` before CSS paints, preventing a flash of the wrong theme on reload\n\n---\n\n## Testing\n\nUses Vitest with React Testing Library and jsdom.\n\n```sh\npnpm test          # Run tests once\npnpm test:watch    # Run tests in watch mode\n```\n\nTest files live in `src/test/` and cover:\n\n- `lgtm.test.ts` — data loader functions and constants\n- `random.test.ts` — weighted random selection logic\n- `ThemeSwitcher.test.tsx` — 3-state cycle, localStorage persistence, aria labels\n- `RandomGenerator.test.tsx` — rendering, navigation calls, generate interaction\n- `LegendaryEffect.test.tsx` — particle component rendering and accessibility attributes\n\n---\n\n## CI\n\nGitHub Actions runs on every push and pull request to `main`:\n\n1. Checkout\n2. Set up pnpm\n3. Set up Node.js 24\n4. `pnpm install --frozen-lockfile`\n5. `pnpm build`\n6. `pnpm test`\n\nSee `.github/workflows/ci.yml`.\n\n---\n\n## Deployment\n\nDeployed as a static site on Vercel via the `@astrojs/vercel` adapter (static output mode). No server functions are used.\n\nTo deploy your own fork, connect the repository to a Vercel project. No environment variables are required.\n\n---\n\n## Contributing\n\n1. Fork the repository\n2. Add new entries to `data/lgtm.json` following the existing schema (numeric `id`, `acronym: \"LGTM\"`, `meaning`, `category`, `rarity`, optional `description` and `tags`)\n3. Keep IDs contiguous — the next ID is `max(existing ids) + 1`\n4. Run `pnpm build` and `pnpm test` before opening a pull request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairscripts%2Flgtm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairscripts%2Flgtm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairscripts%2Flgtm/lists"}