Basically the stuff on https://pkg-size.dev/ but available via this library which returns other useful stats as well
How many dependencies are CJS vs ESM would be a bonus similar to node-modules.dev
If we're already installing the package hopefully this wouldn't require extra network calls