{"id":13512531,"url":"https://github.com/geongeorge/i-hate-regex","last_synced_at":"2026-10-19T00:10:06.414Z","repository":{"id":39535796,"uuid":"200323221","full_name":"geongeorge/i-hate-regex","owner":"geongeorge","description":"The code for iHateregex.io 😈 - The Regex Cheat Sheet","archived":false,"fork":false,"pushed_at":"2026-09-10T13:23:04.000Z","size":12205,"stargazers_count":4558,"open_issues_count":41,"forks_count":315,"subscribers_count":46,"default_branch":"main","last_synced_at":"2026-10-18T10:12:04.438Z","etag":null,"topics":["nuxt","regex","tailwindcss","vue"],"latest_commit_sha":null,"homepage":"https://iHateRegex.io","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/geongeorge.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,"accessibility":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"claude":null,"gemini":null,"cursor":null,"copilot":null,"dco":null,"cla":null,"disclosure":null},"funding":{"open_collective":"ihateregex"}},"created_at":"2019-08-03T02:42:32.000Z","updated_at":"2026-10-18T06:25:17.000Z","dependencies_parsed_at":"2026-10-18T07:00:53.806Z","dependency_job_id":"d8cadbb1-f39b-442c-993a-14c9f3d3bd7c","html_url":"https://github.com/geongeorge/i-hate-regex","commit_stats":{"total_commits":406,"total_committers":20,"mean_commits":20.3,"dds":0.2660098522167488,"last_synced_commit":"a8e8aec729390ae14ff7d6a774e4b4899bf56821"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/geongeorge/i-hate-regex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geongeorge%2Fi-hate-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geongeorge%2Fi-hate-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geongeorge%2Fi-hate-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geongeorge%2Fi-hate-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geongeorge","download_url":"https://codeload.github.com/geongeorge/i-hate-regex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geongeorge%2Fi-hate-regex/sbom","scorecard":{"id":423070,"data":{"date":"2025-08-11","repo":{"name":"github.com/geongeorge/i-hate-regex","commit":"a8e8aec729390ae14ff7d6a774e4b4899bf56821"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 2/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/geongeorge/i-hate-regex/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/geongeorge/i-hate-regex/nodejs.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating alpine:latest to alpine:latest@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T01:42:16.903Z","repository_id":39535796,"created_at":"2025-08-19T01:42:16.903Z","updated_at":"2025-08-19T01:42:16.903Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38343428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-18T02:00:06.448Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["nuxt","regex","tailwindcss","vue"],"created_at":"2024-08-01T03:01:59.598Z","updated_at":"2026-10-19T00:10:06.399Z","avatar_url":"https://github.com/geongeorge.png","language":"TypeScript","funding_links":["https://opencollective.com/ihateregex"],"categories":["Vue","实战项目","Programming Language Tutorials","TypeScript","vue","tailwindcss"],"sub_categories":["Vue实战项目","For Scala"],"readme":"\u003cdiv align=\"center\"\u003e\n\n  \u003ch1\u003e\n    iHateRegex 😈\n  \u003c/h1\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/geongeorge/i-hate-regex/pull/new\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/PRs%20-welcome-brightgreen.svg\" alt=\"PRs Welcome\" /\u003e\n    \u003c/a\u003e\n    \u003ca title=\"Chat on Telegram\" href=\"https://t.me/ihateregex\"\u003e \u003cimg src=\"https://img.shields.io/badge/chat-Telegram-blueviolet?logo=Telegram\"/\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n  \u003cp\u003e\n\u003ca href=\"https://opencollective.com/ihateregex\" target=\"_blank\"\u003e\n\u003cimg src=\"https://opencollective.com/webpack/donate/button@2x.png?color=blue\" width=180\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n  \u003ca href=\"https://ihateregex.io\"\u003e\u003cimg src=\"https://i.imgur.com/mHuTAzy.png\" width=600\u003e\u003c/a\u003e\n\n  \u003cp\u003e\n    \u003cstrong\u003edon't just use; understand.\u003c/strong\u003e\n\u003c/p\u003e\n\n  \u003cp\u003e\n    \u003cstrong\u003e\u003ca href=\"https://ihateregex.io\"\u003eiHateRegex.io\u003c/a\u003e\u003c/strong\u003e - a regex cheatsheet for the haters.\n  \u003c/p\u003e\n\n  \u003cp\u003e\n   Chat with us on \u003ca href=\"https://t.me/ihateregex\" target=\"_blank\"\u003eTelegram\u003c/a\u003e\n\n\u003c/p\u003e\n\u003c/div\u003e\n\n\u003e **v2** — iHateRegex has been rebuilt from the ground up on TypeScript, TanStack Start, and PostgreSQL. The original Nuxt version lives on the [`v1`](https://github.com/geongeorge/i-hate-regex/tree/v1) branch.\n\n## Features 😎\n\n- [x] Visual railroad diagrams of regular expressions — rendered in your browser, no embed server\n- [x] Hover any part of an expression to see what it does, in plain English\n- [x] Matched strings — the testing area with live highlighting\n- [x] Export any diagram as SVG or PNG\n- [x] Regex code highlighting and validation\n- [x] Regex descriptions with markdown support\n- [x] [Playground](https://ihateregex.io/playground) where you can create your own expressions\n- [x] User accounts with private saved regexes\n- [x] Publish your regexes to the community and share a stable link\n\n## Repository layout\n\nThis is a pnpm monorepo:\n\n```text\n├── apps/\n│   └── web/                         # TanStack Start app and PostgreSQL migrations\n└── packages/\n    └── regex-railroad-diagram/      # Browser-only TypeScript diagram renderer\n```\n\n## Setup 🚀\n\nRequirements: [Node.js](https://nodejs.org) 22.12+, [pnpm](https://pnpm.io) 10+, and PostgreSQL.\n\n```bash\n# clone this repo, then:\npnpm install\n\n# create the database and environment file\ncreatedb ihateregex_next\ncp apps/web/.env.example apps/web/.env.local\n# set DATABASE_URL, BETTER_AUTH_URL, and a random 32+ character BETTER_AUTH_SECRET\n\npnpm db:migrate   # apply database migrations\npnpm dev          # serve at http://127.0.0.1:3000\n```\n\nOther commands:\n\n```bash\npnpm build        # production build of both workspace packages\npnpm check        # type-check every workspace package\npnpm diagram:dev  # run the diagram renderer package demo\npnpm start        # run the production web server\n```\n\n## Contribute Regex 🙏\n\nContribute to this project and make this the largest collection of useful expressions 😍\n\n1. Add your regex to `apps/web/src/content/regexes.json`\n\n\u003cdetails\u003e\n\u003csummary\u003eShow sample JSON\u003c/summary\u003e\n\n```json\n{\n    \"id\": \"username\",\n    \"title\": \"username\",\n    \"tagline\": \"match a username\",\n    \"description\": \"Alphanumeric string that may include _ and - having a length of 3 to 16 characters.\",\n    \"regex\": \"^[a-z0-9_-]{3,15}$\",\n    \"flag\": \"gm\",\n    \"matchText\": [\n        \"lorem\",\n        \"ipsum\",\n        \"gr3at\",\n        \"john doe\",\n        \"johnny\"\n    ],\n    \"tags\": [\"name\", \"slug\"]\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eShow JSON properties\u003c/summary\u003e\n\n| Property | Definition |\n|------|------------|\n| id | The slug and short name of the regex. No spaces, only url-safe characters |\n| title | Title of the page |\n| tagline | Tagline shown under the title |\n| description | First line under the tagline and also the meta description |\n| regex | The actual regex string |\n| flag | Regex flags associated with the expression, e.g. `gm` |\n| matchText | Array (line by line) of strings shown in the testing area |\n| tags | Tags related to the expression |\n\n\u003c/details\u003e\n\n2. Create a markdown file in `apps/web/src/content/regex/` named `\u003cregex-id\u003e.md` with a longer description explaining how the expression works\n\nThat's it 🙌 Go ahead and shoot a new pull request✨✨\n\nYou can also publish expressions directly from the [playground](https://ihateregex.io/playground) — sign in, save, and hit publish to share a community page.\n\n## Privacy and sharing\n\nNew saves belong to the signed-in user and are private. The owner can publish a regex to create a public `/community/:id` page, and unpublish it at any time. URLs contain only an opaque database ID — never your regex in a query string.\n\n## Sponsors 💖\n\n\u003cp\u003e\n\u003ca href=\"https://opencollective.com/ihateregex\"\u003eDonate via Opencollective\u003c/a\u003e\n\u003c/p\u003e\n\n## Credits\n\n- The railroad diagrams are rendered with [regexper](https://gitlab.com/javallone/regexper-static)\n- The previous version of this site was built with [Nuxt.js](https://nuxtjs.org) — see the [`v1`](https://github.com/geongeorge/i-hate-regex/tree/v1) branch\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeongeorge%2Fi-hate-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeongeorge%2Fi-hate-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeongeorge%2Fi-hate-regex/lists"}