mapbox / mapbox/node-pre-gyp

[bloated] Production install size

Open
#288 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.2k
Forks
271
Avg merge
23h 40m
Merged PRs (30d)
2

Description

This package seems to have dependencies that are huge!
Installing node-pre-gyp as `npm install --production` it installs +8MB of node modules.
request.js is known to be bloated by requiring ajv (Another JSON Schema Validator) (2MB)!
Request.js could be replaced by `[got](https://github.com/sindresorhus/got/)`
That still leaves us with another 6MB!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running npm install --production and measuring the installed dependency footprint. Inspect request.js and the production dependencies, including the proposed got replacement, to identify the remaining size sources. Done means the production install is materially smaller and the dependency change is documented with updated measurements.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
performance, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.