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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@igorskyflyer/oxfmt-config

v1.2.0

Published

✨ Pixel-perfect code formatting opinions, oxfmt-powered and ready to extend. ⚓

Readme

Table of Contents

Features

  • ✨ Consistent formatting for JS, TS, JSX, TSX, JSON, HTML, CSS, Vue and more
  • 📦 Intelligent import sorting with custom internal package support
  • 🎯 Opinionated but practical defaults
  • ⚡ Powered by Oxfmt (very fast Rust-based formatter)
  • 🛡️ Zero dependencies - oxfmt is a peer dependency only

Usage

Install it by executing any of the following, depending on the preferred package manager:

bun add -D @igorskyflyer/oxfmt-config
pnpm add -D @igorskyflyer/oxfmt-config
yarn add -D @igorskyflyer/oxfmt-config
npm i -D @igorskyflyer/oxfmt-config

Then extend the config in .oxfmtrc.json:

.oxfmtrc.json

{ "extends": "@igorskyflyer/oxfmt-config" }

Override any rule locally as needed:

.oxfmtrc.json

{
  "extends": "@igorskyflyer/oxfmt-config",
  "printWidth": 100,
  "endOfLine": "crlf",
  "arrowParens": "avoid"
}

Implementation

The formatting configuration is defined in a single .oxfmtrc.json file that serves as the authoritative source of truth for all formatting decisions across the project.

All rules are intentional, documented, and designed to produce clean, readable, and diff-friendly code with minimal visual noise.

Formatting Decisions

  • semi: false - No semicolons. Reduces visual noise while relying on modern JavaScript ASI rules.
  • singleQuote: true - Single quotes for strings, consistent across the entire @igorskyflyer ecosystem.
  • trailingComma: "all" - Trailing commas in all applicable places (objects, arrays, functions) for cleaner git diffs.
  • printWidth: 80 - Standard line width that balances readability and compactness.
  • tabWidth: 2 - Two-space indentation, aligned with the project’s TypeScript and EditorConfig standards.
  • useTabs: false - Uses spaces for consistent rendering across all editors and platforms.
  • bracketSpacing: true - Adds space inside object brackets ({ name } instead of {name}).
  • bracketSameLine: false - Keeps the closing > of JSX elements on its own line for better visual separation.
  • arrowParens: "always" - Always includes parentheses around arrow function parameters.
  • objectWrap: "preserve" - Preserves intentional multi-line objects when the developer chooses to break them.
  • singleAttributePerLine: false - Allows multiple short attributes on one line when they fit within the print width.
  • endOfLine: "lf" and insertFinalNewline: true - Unix line endings and final newline for POSIX compliance.
  • jsxSingleQuote: false - Uses double quotes in JSX attributes to match HTML conventions.
  • quoteProps: "as-needed" - Only quotes object keys when required by JavaScript syntax.
  • embeddedLanguageFormatting: "auto", htmlWhitespaceSensitivity: "css", proseWrap: "preserve" - Sensible defaults for embedded code, HTML, and Markdown.

Import Sorting

Imports are sorted in a deliberate order optimized for human readability and debugging:

  1. builtin - Node.js built-in modules (most familiar)
  2. internal + subpath - Internal packages including @igorskyflyer/*
  3. external - Third-party dependencies
  4. parent + sibling + index - Relative imports
  5. style - Style and CSS imports (always last)
  6. unknown - Catch-all for any remaining imports

Ignored Files

  • node_modules/**, dist/**, coverage/**
  • Minified files (*.min.js, *.min.css)
  • Package lockfiles (never format auto-generated files)

This configuration is applied uniformly via Oxfmt.

Motivation

Formatting decisions are a source of endless bikeshedding across projects. Each project ends up with its own slightly different config, slightly outdated, with no single source of truth.

@igorskyflyer/oxfmt-config solves this by providing one opinionated, versioned config that propagates across all projects via a simple extends.

Update once, apply everywhere - just like all packages of the @igorskyflyer ecosystem do!

Changelog

Read about the latest changes in the CHANGELOG.

License

Licensed under the MIT license.

Support

Related

This package is part of the dotfiles DX config suite - a curated index of independently installable configuration packages for linting, formatting, editing, JS/TS, React, Vue and many more.

Other related packages

@igorskyflyer/astro-render-component

🤖 Astro component renderer. Zero configuration. Produces clean HTML strings directly in Node.js without any DOM environment. 🐬

@igorskyflyer/adblock-filter-counter

🐲 A lightweight npm module for counting ad-block filter rules, ultra-simple, fast, and perfect for list maintainers, filter testers, and privacy tool developers.🦘

@igorskyflyer/zep

🧠 Zep is a zero-dependency, efficient debounce module. ⏰

@igorskyflyer/magic-string

🧵 An expressive and chainable library for advanced string manipulations. Supports appending, prepending, trimming, quoting, and path formatting with customizable whitespace handling. Makes advanced String manipulations a piece of cake. 🦥

@igorskyflyer/valid-path

🧰 Determines whether a given value can be a valid file/directory name. 🏜

Author

Created by Igor Dimitrijević (@igorskyflyer).