Notifio is a desktop app plus a website. The app is Electron with a local React UI. The site, at notifio.app, is Next.js. Between them they declare 45 packages. I have written about what we pin and what the installer leaves out, but never asked the plainer question: for each name in package.json, how many files import it?
I wrote a small script. For every package it searches from "x", require("x"), import("x") and CSS @import and @plugin across source, scripts and config, and prints a file count. App dependencies come from HEAD, not the working tree.
The honest zeros
Seventeen packages have zero import sites (nine in the app, eight in the site), and nearly all of them should.
- Type packages (
@types/express,@types/node,@types/react,@types/react-dom,@types/mailparser) are consumed by the compiler, not by code. - Tools run from npm scripts:
electron-builder,rimraf,tsx,typescript,postcss. -
react-domin the website has zero imports because Next.js loads it itself. -
@tailwindcss/postcssis referenced as a string key inpostcss.config.mjs, which my regex deliberately does not count.
A zero is only a question. These all have answers.
The one without an answer
sharp is in the app's devDependencies. It arrived in the first commit on 20 July and is mentioned in exactly one other place: its own exclusion glob, !node_modules/.pnpm/sharp*/**/*, in the installer config.
No source file, script or config imports it. It is not a dependency of anything else in the lockfile either. In the app's pnpm store it is four directories:
sharp@0.35.6 1,056 KB @img/sharp-darwin-arm64 300 KB @img/sharp-libvips-darwin-arm64 17,980 KB @img/colour 92 KB That is 19.4 MB of image library on every developer machine. And because the installer already excludes it, the package is excluded from the product too. The exclusion glob is the only thing that ever acknowledged it existed, which is a good sign a dependency is dead: the only line that mentions it is a line that removes it.
Most likely it was added on day one for icon conversion and then the icons were produced another way, though nothing in the history says so. Removing it is one command. I have not run it, because this post is a measurement and not a change.
Small imports from large packages
Two packages in the website are imported once each, and what they cost on disk is out of proportion to what we take.
lucide-react is imported in one file, the notification demo on the homepage, and it takes eleven names: Globe, Mail, FolderOpen, Terminal, ExternalLink, Wifi, Inbox, Send, Archive, Trash2 and Star. The package ships 2,465 icon modules and occupies 48 MB in the store. Bundlers tree shake it, so the browser only receives the eleven, but the install pays for all of them.
geist is imported in one file, layout.tsx, for one thing: GeistMono. The package holds four families (mono, sans, pixel, serif) and 8.3 MB, two copies of it in the store because of how peer dependencies resolve. We use a fraction of one family. Everything else on the site is set in two other typefaces that we self-host.
Neither is a problem. Both are the kind of line you only notice when the question is asked per package and not per megabyte.
What I would do with this
Delete sharp. Leave the others. Run the same script before each release, because the interesting number is not today's zero count, it is whether it moves. The script is about forty lines of Python and fits in a comment.
If you want to see what these packages end up serving, the home page, pricing and download pages are all built from the 16 website dependencies above.

