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

@immediately-run/prettier-config

v0.1.0

Published

The shared Prettier configuration for immediately.run's core repositories.

Readme

@immediately-run/prettier-config

The shared Prettier configuration for immediately.run's core repositories: sandbox, immediately-run-sdk, immediately-run-site-main and immediately-run-backend.

Why this package exists

Before it, exactly one of the four repos had Prettier at all, and that one had drifted 106 files from its own config with nothing able to catch it. The post-mortem found four independent causes, and this package is aimed at the two that a per-repo config cannot fix by itself:

  • The formatter version floated. prettier: ^2.6.2 resolved to 2.8.8, which formats typeof steps[number] as (typeof steps)[number]. A caret range on a formatter is a slow-motion reformat. The version is therefore a peer dependency pinned exactly here, so moving it is a deliberate release of this package rather than a side effect of someone running npm install.
  • Two styles coexisted in one tree. trailingComma was unset, so Prettier 2 used "es5" while contributors' editors — bundling Prettier 3 — used "all". Every setting is now explicit rather than defaulted, because a default is a value that changes when the tool does.

The remaining two causes were per-repo and are fixed in each repo: a format script that could not fail (prettier --write with --check appended exits 0), and an abandoned import-sort plugin that silently stripped inline type modifiers.

Use it

npm i -D @immediately-run/prettier-config prettier

Point at it from package.json — no .prettierrc file needed:

{
  "prettier": "@immediately-run/prettier-config"
}

Then give the repo a check that can actually fail, and wire it into CI:

{
  "scripts": {
    "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"",
    "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json}\""
  }
}

format:check is the CI step — not format -- --check. Appending --check to a --write script does not make it read-only: Prettier rewrites the tree and exits 0. That is precisely how the drift went unnoticed, so it is worth checking your CI runs the right one.

Each repo keeps its own .prettierignore — generated bundles, vendored artifacts and test fixtures are per-repo facts, not shared style. One rule is shared, though: anything generated at build time belongs in .prettierignore, or format:check passes in CI (which runs before the generators) and fails locally (which runs after).

Changing the config

Any change here reformats four repositories, so treat it as a release:

  1. Change index.json, bump the version, open a PR. The tests assert the settings that caused the original drift, so an accidental edit fails rather than propagates.
  2. Merging to main publishes only when the version is new, and only after the production environment approval — the deliberate release act is the version bump, not the merge (TESTING_AUTOMATION_SPEC R-TA-1). The release job refuses to publish if no human approval is recorded on the run.
  3. Land the resulting reformat in each consumer as its own commit, and add that commit to the repo's .git-blame-ignore-revs so git blame skips it.

Bumping Prettier itself

The peer pin makes this deliberate, and in one repo it is more than a chore: sandbox's Prettier is also the product's formattersrc/services/authoring/ format.ts bundles prettier/standalone into the shipped authoring worker, which the platform serves to users' apps through authoring:format. Prettier 3 made format() async and moved the parsers to prettier/plugins/*, so a v3 bump rewrites a kernel service. That is a product change with its own testing story, not a formatting chore.

Licence

MIT.