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

@syntropiq/pyrex

v0.1.0

Published

A TypeScript library providing a Python-like regex interface with automatic backend selection

Downloads

4

Readme

Pythonic Regex API in TypeScript

A TypeScript library providing a Python-like re interface for regex operations, targeting evergreen browsers. The API closely mirrors Python’s re module, with seamless support for both JavaScript and Python-only regex features.


Features

  • Pythonic API: re.match, re.search, re.compile, re.sub, re.split, re.findall, re.fullmatch, re.escape
  • Automatic backend selection:
    • Uses Pyodide and Python’s regex package for Python-only features
    • Uses latest JS RegExp and core-js polyfill for JS-compatible patterns
  • Written in modern TypeScript, targeting evergreen browsers
  • Zero technical debt: Bun for scripts, Vite for build/test/bundle, ESLint + Prettier for code quality

Installation

bun install @syntropiq/pyrex

Usage

import * as re from '@syntropiq/pyrex';

const result = re.match('a(b+)', 'abbb');
if (result) {
  console.log(result.group(1)); // 'bbb'
}

Development

  • Build: bun run build
  • Test: bun run test
  • Lint: bun run lint
  • Format: bun run format

Project Structure

  • src/ — TypeScript source code
  • test/ — Unit tests
  • PLAN.md — Architecture and implementation plan
  • TODO.md — Task breakdown and progress tracking

Contributing

Contributions are welcome! Please see PLAN.md and TODO.md for project direction and open tasks.


License

MIT