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

@jterrazz/codestyle

v1.0.0

Published

_Hey there - I'm Jean-Baptiste, just another developer doing weird things with code. All my projects live on [jterrazz.com](https://jterrazz.com) - complete with backstories and lessons learned. Feel free to poke around - you might just find something use

Readme

Hey there - I'm Jean-Baptiste, just another developer doing weird things with code. All my projects live on jterrazz.com - complete with backstories and lessons learned. Feel free to poke around - you might just find something useful!

@jterrazz/codestyle

Unified lint/format configs to standardize TypeScript codebases with Oxlint + Oxfmt.

Installation

Install the package using npm:

npm install @jterrazz/codestyle --save-dev

Usage

Oxlint Configuration

Choose the configuration that matches your environment:

For Node.js projects:

// oxlint.json
{
    "extends": ["@jterrazz/codestyle/oxlint/node"]
}

For Expo/React Native projects:

// oxlint.json
{
    "extends": ["@jterrazz/codestyle/oxlint/expo"]
}

For Next.js projects:

// oxlint.json
{
    "extends": ["@jterrazz/codestyle/oxlint/nextjs"]
}

Oxfmt Configuration

// oxfmt.json
{
    "extends": ["@jterrazz/codestyle/oxfmt"]
}

Features

Environment-Specific Configurations

Node.js Configuration:

  • Requires explicit file extensions (.js) for imports
  • Optimized for Node.js patterns

Expo/React Native Configuration:

  • No file extensions in imports (auto-fixed)
  • React plugin enabled

Next.js Configuration:

  • No file extensions in imports (Turbopack compatibility, auto-fixed)
  • React and Next.js plugins enabled

Shared Features

  • TypeScript: Strict type checking with consistent type imports
  • Import Sorting: Automated import organization with architectural grouping (via perfectionist)
  • Code Quality: Perfectionist plugin for consistent code style
  • Performance: Oxlint is 50-100x faster than ESLint, Oxfmt is 10x faster than Prettier, tsgo is 10x faster than tsc

CLI Tools

This package includes a CLI tool for running quality checks:

# Run all quality checks (tsgo, Oxlint, Oxfmt) in parallel
npx codestyle

# Automatically fix all fixable issues (Oxlint --fix, Oxfmt format)
npx codestyle --fix

# Run individual checks
npx codestyle --type      # TypeScript type checking only
npx codestyle --lint      # Linting only
npx codestyle --format    # Format checking only

# Combine flags
npx codestyle --lint --fix    # Fix lint issues only
npx codestyle --format --fix  # Format files only

Scripts

Add these scripts to your package.json for common development tasks:

{
    "scripts": {
        "codestyle": "codestyle",
        "codestyle:fix": "codestyle --fix"
    }
}

Configuration

The configurations are fully modular and include:

  • Base configuration: Common rules for TypeScript, import sorting, code quality
  • Environment-specific: Tailored rules for Node.js, Expo/React Native, and Next.js
  • Custom plugins: JS plugins for import extension enforcement

Happy coding!