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

fixmyfile

v1.0.9

Published

CLI tool to automatically fix TypeScript errors using compiler diagnostics and AST transformations

Readme

fixmyfile 🚀

⚡ Demo

Fix recurring TypeScript workflow friction automatically.


✨ What it does

fixmyfile detects common TypeScript friction points and applies automatic fixes using compiler diagnostics and AST transformations.

It focuses on repetitive issues that slow developers down during everyday TypeScript development.


⚡ Example

❌ Before

const values = [1, 2, undefined, 4].filter(Boolean);

const doubled = values.map((v) => v * 2);

TypeScript may still complain that:

'v' is possibly 'undefined'

✅ After

const values = [1, 2, undefined, 4].filter((x): x is NonNullable<typeof x> =>
  Boolean(x),
);

const doubled = values.map((v) => v * 2);

✨ Current Fixes

  • Fix missing function arguments (TS2554)
  • Fix simple type mismatches (TS2322)
  • Handle undefined symbol errors (TS2304)
  • Improve .filter(Boolean) type narrowing automatically
  • Add optional chaining for possibly undefined access (TS18048)

🖥 Usage

fixmyfile <file>

📁 Examples

See the examples/ folder for sample files and transformations.


📦 Installation

npm install -g fixmyfile

📁 Examples

See the examples/ folder for sample files.


🚧 Scope

fixmyfile currently focuses on:

  • common TypeScript workflow friction
  • repetitive compiler issues
  • safe AST-based transformations
  • single-file automatic fixes

The project intentionally prioritizes predictable and reliable transformations over aggressive code mutation.


🤝 Contributing

Contributions, issue reports, and TypeScript pain-point discussions are welcome.

Please open an issue before major changes.


🚧 Future Improvements

This project is actively evolving with improvements planned around performance, accuracy, and broader TypeScript support.


📄 License

MIT

🔗 Repository

https://github.com/i-am-killvish/fixmyfile