npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

regkata

v1.1.1

Published

Interactive CLI tool to learn regex through hands-on lessons

Readme

regkata

Master regular expressions through practice, one kata at a time.

An interactive CLI tool that teaches you regex the way martial artists learn moves—through deliberate practice and progressive challenges. Inspired by vimtutor, regkata guides you from regex basics to advanced patterns with hands-on lessons.

Why regkata?

Regular expressions are powerful but intimidating. Most tutorials throw syntax at you and hope it sticks. regkata takes a different approach: learn by doing. Each lesson presents a challenge, you write the regex, and get instant feedback. No copy-paste, no passive reading—just you and the pattern.

Features

  • 22 Progressive Lessons - From fundamentals to real-world applications
  • 🥋 Belt System - White Belt (core patterns) → Yellow Belt (practical challenges)
  • 🎯 Real-time Validation - Test your regex against multiple cases instantly
  • 💾 Progress Tracking - Pick up exactly where you left off
  • 💡 Hint System - Stuck? Type ? for guidance
  • 🎨 Beautiful CLI - Clean, colorful interface built with React
  • Lightning Fast - Powered by Bun for instant startup

Installation

Install globally with Bun:

bun install -g regkata

Or with npm:

npm install -g regkata

Usage

Start your training:

regkata

Controls

  • Arrow keys - Navigate menu options
  • Enter - Submit your regex or select a lesson
  • ? - Show hint for the current lesson
  • exit - Return to menu

Learning Path

Your progress is automatically saved. When you return:

  • ✓ Completed lessons are marked
  • Resume from where you left off
  • Or jump to any lesson to review

What You'll Learn

⬜ White Belt - Fundamentals

Master the core regex patterns and syntax

Lesson  1: Literal Characters         →  Match exact text
Lesson  2: The Dot Metacharacter      →  Match any character
Lesson  3: Character Classes          →  Match sets of characters
Lesson  4: Character Ranges           →  Match ranges like [0-9]
Lesson  5: Negated Character Classes  →  Match anything BUT these
Lesson  6: Shorthand Character Classes →  \w, \d, \s shortcuts
Lesson  7: The Plus Quantifier        →  Match one or more
Lesson  8: The Star Quantifier        →  Match zero or more
Lesson  9: The Question Mark          →  Make optional
Lesson 10: Anchors - Start            →  ^ matches string start
Lesson 11: Anchors - End              →  $ matches string end
Lesson 12: Word Boundaries            →  \b matches word edges
Lesson 13: Alternation                →  Match this OR that
Lesson 14: Grouping                   →  Combine patterns
Lesson 15: Escaping Special Chars     →  Match literal . ? * etc.

🟨 Yellow Belt - Real World

Apply regex to practical challenges and data extraction

Lesson 16: Extract IPv4 Addresses     →  Parse server logs
Lesson 17: Extract Email Addresses    →  Find emails in text
Lesson 18: Extract URLs               →  Match HTTP/HTTPS links
Lesson 19: Parse Dates                →  MM/DD/YYYY format
Lesson 20: Extract Phone Numbers      →  US XXX-XXX-XXXX format
Lesson 21: Extract Hashtags           →  Social media tags
Lesson 22: Parse Hex Colors           →  #RGB and #RRGGBB

Development

Clone and install dependencies:

git clone https://github.com/JR-G/regkata.git
cd regkata
bun install

Run in development mode:

bun run dev

Type checking:

bun run typecheck

Build for production:

bun run build

License

MIT © James Glenn