chetanbasuray/shorol — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small JavaScript and TypeScript library called Shorol that makes regex feel human readable instead of cryptic. I want a fluent builder where someone can chain things like start, end, literal text, digits, words, whitespace, groups, named groups, alternation, character sets, ranges, lookaheads, lookbehinds, and common quantifiers, then export either the pattern string or a real RegExp.

Please keep the goal centered on readable regex that is easy to review and reuse, not super strict domain validation. Include a simple shared registry for common patterns, plus a presets area for practical helpers. At minimum, add built in examples or exports for slugs and identifiers. It should also support flags, matching helpers, and cloning. Add solid tests with valid and invalid cases, and include a few clear usage examples like phone numbers, usernames, dates, quoted values, and UUID style patterns so someone can understand it fast.

If there are repo docs for AI or contributor guidance, use them while building it.

Want more depth? Deep Reverse