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 5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
| 6 |
+
<title>AWS Lambda Size limit — check dependency sizes for lambda</title>
|
| 7 |
+
<meta name="description" content="This free browser tool measures dependency sizes against the AWS Lambda package quotas and identifies lines to drop or swap.">
|
| 8 |
+
<style>
|
| 9 |
+
:root{color-scheme:light}body{margin:0;font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;background:#faf9f5;color:#1a1512}
|
| 10 |
+
.wrap{max-width:960px;margin:0 auto;padding:28px 18px 60px}h1{font-size:26px;margin:0 0 6px}.lede{color:#4a403a;margin:0 0 16px}
|
| 11 |
+
textarea{width:100%;min-height:260px;font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;padding:12px;border:1px solid #d9d0c4;border-radius:8px;box-sizing:border-box}
|
| 12 |
+
.bar{display:flex;gap:10px;align-items:center;margin:12px 0}button{font:600 15px system-ui;padding:10px 18px;border:0;border-radius:8px;background:#1a1512;color:#fff;cursor:pointer}
|
| 13 |
+
input[type=date]{font:14px system-ui;padding:8px;border:1px solid #d9d0c4;border-radius:6px}
|
| 14 |
+
table{border-collapse:collapse;width:100%;font-size:14px;margin-top:10px}th,td{text-align:left;padding:8px 10px;border-bottom:1px solid #eee;vertical-align:top}th{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#7a6e65}
|
| 15 |
+
.sev.error{color:#a8551f;font-weight:700}.sev.warn,.sev.warning{color:#96691f}.ok{color:#2a6446;font-weight:600}.sum{font-weight:600}
|
| 16 |
+
.note{font-size:13px;color:#7a6e65;margin-top:18px}#paid{margin-top:22px;padding:14px 16px;border:1px solid #e2d8cb;border-radius:10px;background:#fffdfa}
|
| 17 |
+
</style>
|
| 18 |
+
<script data-grow-initializer="">!(function(){window.growMe||((window.growMe=function(e){window.growMe._.push(e);}),(window.growMe._=[]));var e=document.createElement("script");(e.type="text/javascript"),(e.src="https://faves.grow.me/main.js"),(e.defer=!0),e.setAttribute("data-grow-faves-site-id","U2l0ZTphZjljMzgyMC0yMmU5LTRhYjgtYTIxNS03OTRhMGY1N2ExYzM=");var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t);})();</script>
|
| 19 |
+
<!--yj-canon-s101--><link rel="canonical" href="https://getreadystack.com/tools/lambda-package-budget"><style data-yj-mfit="1">#out{max-width:100%}#out td,#out th{overflow-wrap:anywhere}#out pre,#out code{white-space:pre-wrap;overflow-wrap:anywhere}@media (max-width:640px){table{display:block;max-width:100%;overflow-x:auto}pre{max-width:100%;overflow-x:auto}code,a{overflow-wrap:anywhere}img,svg,video,canvas,iframe{max-width:100%}textarea,input,select{max-width:100%;box-sizing:border-box}.yj-lgbar{position:static!important;justify-content:flex-end;margin:0 0 10px}h1,h2,h3,h4,p,li,dd,dt,blockquote,figcaption,summary,label,.res,.lead{overflow-wrap:anywhere}label{max-width:100%;box-sizing:border-box}#out table:not(:has(tr>:nth-child(4))){display:table;table-layout:fixed;width:100%}#out table:has(tr>:nth-child(4)),#out table:has(tr>:nth-child(4)) tbody,#out table:has(tr>:nth-child(4)) tr,#out table:has(tr>:nth-child(4)) td{display:block;width:auto;overflow:visible}#out table:has(tr>:nth-child(4)) thead{display:none}#out table:has(tr>:nth-child(4)) tr{padding:10px 0;border-bottom:1px solid rgba(128,128,128,.28)}#out table:has(tr>:nth-child(4)) td{border:0;padding:1px 0}#out table:has(tr>:nth-child(4)) td:nth-child(-n+3){display:inline-block;margin-right:10px;font-size:12px;opacity:.78}}</style>
|
| 20 |
+
</head>
|
| 21 |
+
<body>
|
| 22 |
+
<div class="wrap">
|
| 23 |
+
<h1>AWS Lambda Size limit — check dependency sizes for lambda</h1>
|
| 24 |
+
<p class="lede">Lambda package size check for requirements.txt and package.json: measured unzipped MB per dependency against the 250 MB unzipped and 50 MB zipped AWS quotas, with the exact line to drop or swap. Runs entirely in your browser — nothing is uploaded.</p>
|
| 25 |
+
<textarea id="src" spellcheck="false"># invoice-ocr Lambda (python3.12, .zip deployment)
|
| 26 |
+
boto3==1.43.106
|
| 27 |
+
botocore==1.43.106
|
| 28 |
+
numpy==2.5.3
|
| 29 |
+
pandas==3.0.6
|
| 30 |
+
opencv-python==5.0.0.93
|
| 31 |
+
requests==2.34.2</textarea>
|
| 32 |
+
<div class="bar"><button id="go">Check</button><label>as of <input type="date" id="today"></label></div>
|
| 33 |
+
<div id="out" aria-live="polite"></div>
|
| 34 |
+
<div id="paid"><strong>Free here:</strong> Ranks every listed dependency by measured unzipped MB against the 250 MB Lambda limit and prints the exact line to drop or swap. <strong>In the editor:</strong> Dated size-budget report for the pull request, a CI gate that fails the build above your MB budget, and team licence keys. — that part asks for a licence key. <a href="https://getreadystack.com/api/buy/cl/polar_cl_RAeCn2bsWzjBNOsw2R8DHqrrFRj38wV88wgLP4Mj5f9">Dated size-budget report + CI gate for your team — $29 once</a></div>
|
| 35 |
+
<p class="note">Same engine as the VS Code extension, byte for byte.</p>
|
| 36 |
+
</div>
|
| 37 |
+
<script>var LPB_RULES = [
|
| 38 |
+
{
|
| 39 |
+
"id": "py-boto3",
|
| 40 |
+
"eco": "py",
|
| 41 |
+
"pkg": "boto3",
|
| 42 |
+
"ver": "1.43.106",
|
| 43 |
+
"mb": 1.0,
|
| 44 |
+
"zmb": 0.1,
|
| 45 |
+
"kind": "runtime",
|
| 46 |
+
"fix": "Delete this line: the Lambda Python runtime already includes the SDK for Python (Boto3). Keep it only if you need a newer version than the runtime ships."
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"id": "py-botocore",
|
| 50 |
+
"eco": "py",
|
| 51 |
+
"pkg": "botocore",
|
| 52 |
+
"ver": "1.43.106",
|
| 53 |
+
"mb": 20.5,
|
| 54 |
+
"zmb": 16.0,
|
| 55 |
+
"kind": "runtime",
|
| 56 |
+
"fix": "Delete this line: the Lambda Python runtime already includes the SDK for Python (Boto3). Keep it only if you need a newer version than the runtime ships."
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"id": "py-s3transfer",
|
| 60 |
+
"eco": "py",
|
| 61 |
+
"pkg": "s3transfer",
|
| 62 |
+
"ver": "0.19.2",
|
| 63 |
+
"mb": 0.3,
|
| 64 |
+
"zmb": 0.1,
|
| 65 |
+
"kind": "runtime",
|
| 66 |
+
"fix": "Delete this line: the Lambda Python runtime already includes the SDK for Python (Boto3). Keep it only if you need a newer version than the runtime ships."
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"id": "py-torch",
|
| 70 |
+
"eco": "py",
|
| 71 |
+
"pkg": "torch",
|
| 72 |
+
"ver": "2.14.1",
|
| 73 |
+
"mb": 1144.2,
|
| 74 |
+
"zmb": 554.6,
|
| 75 |
+
"kind": "container",
|
| 76 |
+
"fix": "This wheel alone is over 250 MB unzipped. A .zip function cannot hold it: set PackageType: Image and deploy a container image (10 GB limit)."
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"id": "py-tensorflow",
|
| 80 |
+
"eco": "py",
|
| 81 |
+
"pkg": "tensorflow",
|
| 82 |
+
"ver": "2.21.0",
|
| 83 |
+
"mb": 1873.3,
|
| 84 |
+
"zmb": 572.6,
|
| 85 |
+
"kind": "container",
|
| 86 |
+
"fix": "This wheel alone is over 250 MB unzipped. A .zip function cannot hold it: set PackageType: Image and deploy a container image (10 GB limit)."
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"id": "py-opencv-python",
|
| 90 |
+
"eco": "py",
|
| 91 |
+
"pkg": "opencv-python",
|
| 92 |
+
"ver": "5.0.0.93",
|
| 93 |
+
"mb": 189.5,
|
| 94 |
+
"zmb": 71.1,
|
| 95 |
+
"kind": "swap",
|
| 96 |
+
"fix": "Replace with opencv-python-headless==5.0.0.93 (150.3 MB): the opencv-python README describes it as the package for server (headless) environments, with no GUI functionality.",
|
| 97 |
+
"alt_mb": 150.3
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"id": "py-opencv-python-headless",
|
| 101 |
+
"eco": "py",
|
| 102 |
+
"pkg": "opencv-python-headless",
|
| 103 |
+
"ver": "5.0.0.93",
|
| 104 |
+
"mb": 150.3,
|
| 105 |
+
"zmb": 56.6,
|
| 106 |
+
"kind": "heavy",
|
| 107 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"id": "py-numpy",
|
| 111 |
+
"eco": "py",
|
| 112 |
+
"pkg": "numpy",
|
| 113 |
+
"ver": "2.5.3",
|
| 114 |
+
"mb": 56.4,
|
| 115 |
+
"zmb": 16.7,
|
| 116 |
+
"kind": "heavy",
|
| 117 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"id": "py-pandas",
|
| 121 |
+
"eco": "py",
|
| 122 |
+
"pkg": "pandas",
|
| 123 |
+
"ver": "3.0.6",
|
| 124 |
+
"mb": 38.9,
|
| 125 |
+
"zmb": 10.8,
|
| 126 |
+
"kind": "heavy",
|
| 127 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"id": "py-scipy",
|
| 131 |
+
"eco": "py",
|
| 132 |
+
"pkg": "scipy",
|
| 133 |
+
"ver": "1.18.1",
|
| 134 |
+
"mb": 111.9,
|
| 135 |
+
"zmb": 35.3,
|
| 136 |
+
"kind": "heavy",
|
| 137 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"id": "py-scikit-learn",
|
| 141 |
+
"eco": "py",
|
| 142 |
+
"pkg": "scikit-learn",
|
| 143 |
+
"ver": "1.9.1",
|
| 144 |
+
"mb": 31.0,
|
| 145 |
+
"zmb": 9.2,
|
| 146 |
+
"kind": "heavy",
|
| 147 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"id": "py-pyarrow",
|
| 151 |
+
"eco": "py",
|
| 152 |
+
"pkg": "pyarrow",
|
| 153 |
+
"ver": "25.0.1",
|
| 154 |
+
"mb": 157.1,
|
| 155 |
+
"zmb": 50.1,
|
| 156 |
+
"kind": "heavy",
|
| 157 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"id": "py-matplotlib",
|
| 161 |
+
"eco": "py",
|
| 162 |
+
"pkg": "matplotlib",
|
| 163 |
+
"ver": "3.11.2",
|
| 164 |
+
"mb": 25.0,
|
| 165 |
+
"zmb": 9.9,
|
| 166 |
+
"kind": "heavy",
|
| 167 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"id": "py-pillow",
|
| 171 |
+
"eco": "py",
|
| 172 |
+
"pkg": "pillow",
|
| 173 |
+
"ver": "12.3.0",
|
| 174 |
+
"mb": 19.7,
|
| 175 |
+
"zmb": 6.9,
|
| 176 |
+
"kind": "heavy",
|
| 177 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"id": "py-lxml",
|
| 181 |
+
"eco": "py",
|
| 182 |
+
"pkg": "lxml",
|
| 183 |
+
"ver": "6.1.3",
|
| 184 |
+
"mb": 11.5,
|
| 185 |
+
"zmb": 5.1,
|
| 186 |
+
"kind": "heavy",
|
| 187 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"id": "py-cryptography",
|
| 191 |
+
"eco": "py",
|
| 192 |
+
"pkg": "cryptography",
|
| 193 |
+
"ver": "50.0.2",
|
| 194 |
+
"mb": 14.9,
|
| 195 |
+
"zmb": 4.7,
|
| 196 |
+
"kind": "heavy",
|
| 197 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"id": "py-psycopg2-binary",
|
| 201 |
+
"eco": "py",
|
| 202 |
+
"pkg": "psycopg2-binary",
|
| 203 |
+
"ver": "2.9.13",
|
| 204 |
+
"mb": 11.8,
|
| 205 |
+
"zmb": 4.3,
|
| 206 |
+
"kind": "heavy",
|
| 207 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"id": "py-grpcio",
|
| 211 |
+
"eco": "py",
|
| 212 |
+
"pkg": "grpcio",
|
| 213 |
+
"ver": "1.84.0",
|
| 214 |
+
"mb": 17.9,
|
| 215 |
+
"zmb": 7.2,
|
| 216 |
+
"kind": "heavy",
|
| 217 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"id": "py-duckdb",
|
| 221 |
+
"eco": "py",
|
| 222 |
+
"pkg": "duckdb",
|
| 223 |
+
"ver": "1.5.6",
|
| 224 |
+
"mb": 61.0,
|
| 225 |
+
"zmb": 21.6,
|
| 226 |
+
"kind": "heavy",
|
| 227 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"id": "py-transformers",
|
| 231 |
+
"eco": "py",
|
| 232 |
+
"pkg": "transformers",
|
| 233 |
+
"ver": "5.18.0",
|
| 234 |
+
"mb": 50.3,
|
| 235 |
+
"zmb": 12.6,
|
| 236 |
+
"kind": "heavy",
|
| 237 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"id": "py-spacy",
|
| 241 |
+
"eco": "py",
|
| 242 |
+
"pkg": "spacy",
|
| 243 |
+
"ver": "3.8.16",
|
| 244 |
+
"mb": 123.6,
|
| 245 |
+
"zmb": 35.5,
|
| 246 |
+
"kind": "heavy",
|
| 247 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"id": "py-tokenizers",
|
| 251 |
+
"eco": "py",
|
| 252 |
+
"pkg": "tokenizers",
|
| 253 |
+
"ver": "0.23.2",
|
| 254 |
+
"mb": 11.7,
|
| 255 |
+
"zmb": 3.4,
|
| 256 |
+
"kind": "heavy",
|
| 257 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"id": "py-requests",
|
| 261 |
+
"eco": "py",
|
| 262 |
+
"pkg": "requests",
|
| 263 |
+
"ver": "2.34.2",
|
| 264 |
+
"mb": 0.2,
|
| 265 |
+
"zmb": 0.1,
|
| 266 |
+
"kind": "size",
|
| 267 |
+
"fix": ""
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"id": "py-pydantic-core",
|
| 271 |
+
"eco": "py",
|
| 272 |
+
"pkg": "pydantic-core",
|
| 273 |
+
"ver": "2.49.0",
|
| 274 |
+
"mb": 5.2,
|
| 275 |
+
"zmb": 2.1,
|
| 276 |
+
"kind": "size",
|
| 277 |
+
"fix": ""
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"id": "py-polars",
|
| 281 |
+
"eco": "py",
|
| 282 |
+
"pkg": "polars",
|
| 283 |
+
"ver": "1.44.2",
|
| 284 |
+
"mb": 4.3,
|
| 285 |
+
"zmb": 0.9,
|
| 286 |
+
"kind": "size",
|
| 287 |
+
"fix": ""
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"id": "npm-aws-sdk",
|
| 291 |
+
"eco": "npm",
|
| 292 |
+
"pkg": "aws-sdk",
|
| 293 |
+
"ver": "2.1693.0",
|
| 294 |
+
"mb": 98.2,
|
| 295 |
+
"kind": "swap",
|
| 296 |
+
"fix": "Replace with the @aws-sdk/client-\u003cservice\u003e v3 packages you call; every supported Lambda Node.js runtime already includes the AWS SDK for JavaScript v3.",
|
| 297 |
+
"alt_mb": 0
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"id": "npm-@aws-sdk/*",
|
| 301 |
+
"eco": "npm",
|
| 302 |
+
"pkg": "@aws-sdk/*",
|
| 303 |
+
"ver": "3.1144.0",
|
| 304 |
+
"mb": 3.3,
|
| 305 |
+
"kind": "runtime",
|
| 306 |
+
"fix": "The Lambda Node.js runtime already includes the AWS SDK for JavaScript v3 (a pinned minor version). Bundle it only if you need a newer version."
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"id": "npm-googleapis",
|
| 310 |
+
"eco": "npm",
|
| 311 |
+
"pkg": "googleapis",
|
| 312 |
+
"ver": "182.0.0",
|
| 313 |
+
"mb": 215.0,
|
| 314 |
+
"kind": "swap",
|
| 315 |
+
"fix": "Replace with the single-API package you call (for example @googleapis/drive) instead of the full googleapis bundle."
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"id": "npm-puppeteer",
|
| 319 |
+
"eco": "npm",
|
| 320 |
+
"pkg": "puppeteer",
|
| 321 |
+
"ver": "25.12.0",
|
| 322 |
+
"mb": null,
|
| 323 |
+
"kind": "swap",
|
| 324 |
+
"fix": "puppeteer downloads a browser at install time. On Lambda use puppeteer-core with @sparticuz/chromium (70.1 MB)."
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"id": "npm-@sparticuz/chromium",
|
| 328 |
+
"eco": "npm",
|
| 329 |
+
"pkg": "@sparticuz/chromium",
|
| 330 |
+
"ver": "153.0.0",
|
| 331 |
+
"mb": 70.1,
|
| 332 |
+
"kind": "heavy",
|
| 333 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"id": "npm-@prisma/client",
|
| 337 |
+
"eco": "npm",
|
| 338 |
+
"pkg": "@prisma/client",
|
| 339 |
+
"ver": "7.10.0",
|
| 340 |
+
"mb": 74.5,
|
| 341 |
+
"kind": "heavy",
|
| 342 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"id": "npm-sharp",
|
| 346 |
+
"eco": "npm",
|
| 347 |
+
"pkg": "sharp",
|
| 348 |
+
"ver": "0.35.5",
|
| 349 |
+
"mb": 19.7,
|
| 350 |
+
"kind": "heavy",
|
| 351 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit). sharp installs @img/sharp-libvips-linux-x64 (18.7 MB) next to its own 1.0 MB."
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"id": "npm-date-fns",
|
| 355 |
+
"eco": "npm",
|
| 356 |
+
"pkg": "date-fns",
|
| 357 |
+
"ver": "4.4.0",
|
| 358 |
+
"mb": 10.9,
|
| 359 |
+
"kind": "heavy",
|
| 360 |
+
"fix": "Counts toward the same 250 MB even inside a layer. If the function needs more than fits, deploy it as a container image (10 GB limit)."
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"id": "npm-aws-cdk-lib",
|
| 364 |
+
"eco": "npm",
|
| 365 |
+
"pkg": "aws-cdk-lib",
|
| 366 |
+
"ver": "2.272.0",
|
| 367 |
+
"mb": 137.1,
|
| 368 |
+
"kind": "devdep",
|
| 369 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"id": "npm-aws-cdk",
|
| 373 |
+
"eco": "npm",
|
| 374 |
+
"pkg": "aws-cdk",
|
| 375 |
+
"ver": "2.1143.0",
|
| 376 |
+
"mb": 23.6,
|
| 377 |
+
"kind": "devdep",
|
| 378 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"id": "npm-typescript",
|
| 382 |
+
"eco": "npm",
|
| 383 |
+
"pkg": "typescript",
|
| 384 |
+
"ver": "7.0.2",
|
| 385 |
+
"mb": 2.5,
|
| 386 |
+
"kind": "devdep",
|
| 387 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"id": "npm-jest",
|
| 391 |
+
"eco": "npm",
|
| 392 |
+
"pkg": "jest",
|
| 393 |
+
"ver": "30.5.2",
|
| 394 |
+
"mb": null,
|
| 395 |
+
"kind": "devdep",
|
| 396 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"id": "npm-eslint",
|
| 400 |
+
"eco": "npm",
|
| 401 |
+
"pkg": "eslint",
|
| 402 |
+
"ver": "10.11.0",
|
| 403 |
+
"mb": 2.9,
|
| 404 |
+
"kind": "devdep",
|
| 405 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"id": "npm-webpack",
|
| 409 |
+
"eco": "npm",
|
| 410 |
+
"pkg": "webpack",
|
| 411 |
+
"ver": "5.111.1",
|
| 412 |
+
"mb": 10.8,
|
| 413 |
+
"kind": "devdep",
|
| 414 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"id": "npm-esbuild",
|
| 418 |
+
"eco": "npm",
|
| 419 |
+
"pkg": "esbuild",
|
| 420 |
+
"ver": "0.28.2",
|
| 421 |
+
"mb": 0.1,
|
| 422 |
+
"kind": "devdep",
|
| 423 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"id": "npm-prisma",
|
| 427 |
+
"eco": "npm",
|
| 428 |
+
"pkg": "prisma",
|
| 429 |
+
"ver": "8.0.0-rc.19",
|
| 430 |
+
"mb": 0.6,
|
| 431 |
+
"kind": "devdep",
|
| 432 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"id": "npm-ts-node",
|
| 436 |
+
"eco": "npm",
|
| 437 |
+
"pkg": "ts-node",
|
| 438 |
+
"ver": "10.9.2",
|
| 439 |
+
"mb": 0.8,
|
| 440 |
+
"kind": "devdep",
|
| 441 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"id": "npm-serverless",
|
| 445 |
+
"eco": "npm",
|
| 446 |
+
"pkg": "serverless",
|
| 447 |
+
"ver": "4.43.0",
|
| 448 |
+
"mb": null,
|
| 449 |
+
"kind": "devdep",
|
| 450 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"id": "npm-@types/*",
|
| 454 |
+
"eco": "npm",
|
| 455 |
+
"pkg": "@types/*",
|
| 456 |
+
"ver": "26.6.3",
|
| 457 |
+
"mb": 2.5,
|
| 458 |
+
"kind": "devdep",
|
| 459 |
+
"fix": "Move this line from \"dependencies\" to \"devDependencies\": npm install --omit=dev leaves it out of the bundle."
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"id": "npm-lodash",
|
| 463 |
+
"eco": "npm",
|
| 464 |
+
"pkg": "lodash",
|
| 465 |
+
"ver": "4.18.1",
|
| 466 |
+
"mb": 1.4,
|
| 467 |
+
"kind": "size",
|
| 468 |
+
"fix": ""
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"id": "npm-moment",
|
| 472 |
+
"eco": "npm",
|
| 473 |
+
"pkg": "moment",
|
| 474 |
+
"ver": "2.31.0",
|
| 475 |
+
"mb": 4.5,
|
| 476 |
+
"kind": "size",
|
| 477 |
+
"fix": ""
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"id": "npm-axios",
|
| 481 |
+
"eco": "npm",
|
| 482 |
+
"pkg": "axios",
|
| 483 |
+
"ver": "1.20.0",
|
| 484 |
+
"mb": 2.0,
|
| 485 |
+
"kind": "size",
|
| 486 |
+
"fix": ""
|
| 487 |
+
}
|
| 488 |
+
];</script>
|
| 489 |
+
<script>/* Lambda Package Size Budget — engine (Node + browser). Sizes measured 2026-09-30:
|
| 490 |
+
PyPI cp312 manylinux x86_64 wheels (unzipped = sum of the wheel's file sizes) and npm dist.unpackedSize. */
|
| 491 |
+
(function () {
|
| 492 |
+
var RULES = (typeof module !== 'undefined') ? require('./rules.json') : window.LPB_RULES;
|
| 493 |
+
var LIMIT_UNZIPPED = 250, LIMIT_ZIPPED = 50, HEAVY_MB = 10;
|
| 494 |
+
|
| 495 |
+
function norm(n) { return String(n).toLowerCase().replace(/[_.]+/g, '-'); }
|
| 496 |
+
function find(eco, name) {
|
| 497 |
+
var n = eco === 'py' ? norm(name) : name;
|
| 498 |
+
for (var i = 0; i < RULES.length; i++) {
|
| 499 |
+
var r = RULES[i];
|
| 500 |
+
if (r.eco !== eco) continue;
|
| 501 |
+
if (r.pkg === n) return r;
|
| 502 |
+
if (/\/\*$/.test(r.pkg) && n.indexOf(r.pkg.slice(0, -1)) === 0) return r;
|
| 503 |
+
}
|
| 504 |
+
return null;
|
| 505 |
+
}
|
| 506 |
+
function mb(x) { return (Math.round(x * 10) / 10).toFixed(1); }
|
| 507 |
+
function pct(x) { return (Math.round(x / LIMIT_UNZIPPED * 1000) / 10).toFixed(1); }
|
| 508 |
+
|
| 509 |
+
function parseRequirements(text) {
|
| 510 |
+
var out = [];
|
| 511 |
+
text.split(/\r?\n/).forEach(function (raw, i) {
|
| 512 |
+
var s = raw.replace(/\s#.*$/, '').replace(/^#.*$/, '').trim();
|
| 513 |
+
if (!s || s.charAt(0) === '-') return;
|
| 514 |
+
var m = s.match(/^([A-Za-z0-9][A-Za-z0-9._-]*)/);
|
| 515 |
+
if (m) out.push({ name: m[1], line: i + 1, section: 'requirements' });
|
| 516 |
+
});
|
| 517 |
+
return out;
|
| 518 |
+
}
|
| 519 |
+
function parsePackageJson(text) {
|
| 520 |
+
var j = JSON.parse(text), lines = text.split(/\r?\n/), out = [];
|
| 521 |
+
['dependencies', 'devDependencies'].forEach(function (sec) {
|
| 522 |
+
var deps = j[sec] || {}, start = 0;
|
| 523 |
+
for (var k = 0; k < lines.length; k++) if (lines[k].indexOf('"' + sec + '"') >= 0) { start = k; break; }
|
| 524 |
+
Object.keys(deps).forEach(function (name) {
|
| 525 |
+
var line = start + 1;
|
| 526 |
+
for (var k = start; k < lines.length; k++) if (lines[k].indexOf('"' + name + '"') >= 0) { line = k + 1; break; }
|
| 527 |
+
out.push({ name: name, line: line, section: sec });
|
| 528 |
+
});
|
| 529 |
+
});
|
| 530 |
+
return out;
|
| 531 |
+
}
|
| 532 |
+
|
| 533 |
+
function check(text, opts) {
|
| 534 |
+
opts = opts || {};
|
| 535 |
+
var budget = opts.budget_mb || LIMIT_UNZIPPED;
|
| 536 |
+
var findings = [], rows = [], unmeasured = [], total = 0, zip = 0, zipKnown = true, save = 0, deps, eco;
|
| 537 |
+
var t = String(text || '').replace(/^/, '');
|
| 538 |
+
if (/^\s*\{/.test(t)) {
|
| 539 |
+
eco = 'npm';
|
| 540 |
+
try { deps = parsePackageJson(t); } catch (e) {
|
| 541 |
+
return { findings: [{ check: 'parse', sev: 'error', msg: 'package.json does not parse: ' + e.message, line: 1 }], summary: null };
|
| 542 |
+
}
|
| 543 |
+
} else { eco = 'py'; deps = parseRequirements(t); }
|
| 544 |
+
|
| 545 |
+
deps.forEach(function (d) {
|
| 546 |
+
var r = find(eco, d.name);
|
| 547 |
+
var shipped = d.section !== 'devDependencies';
|
| 548 |
+
if (r && r.kind === 'devdep') {
|
| 549 |
+
if (d.section === 'dependencies') {
|
| 550 |
+
findings.push({ check: 'dev-in-deps', sev: 'warn', line: d.line,
|
| 551 |
+
msg: d.name + (r.mb ? ' (' + mb(r.mb) + ' MB unzipped, ' + r.pkg.replace('/*', '/…') + ' ' + (r.ver || '') + ')' : '') + ' is a build tool listed under "dependencies". ' + r.fix });
|
| 552 |
+
if (r.mb) { total += r.mb; save += r.mb; rows.push({ pkg: d.name, mb: r.mb, line: d.line }); }
|
| 553 |
+
}
|
| 554 |
+
return;
|
| 555 |
+
}
|
| 556 |
+
if (!shipped) return;
|
| 557 |
+
if (!r || r.mb == null) { unmeasured.push(d.name); if (eco === 'py') zipKnown = false; return; }
|
| 558 |
+
total += r.mb; rows.push({ pkg: d.name, mb: r.mb, line: d.line });
|
| 559 |
+
if (eco === 'py') { if (r.zmb != null) zip += r.zmb; else zipKnown = false; }
|
| 560 |
+
var head = d.name + ' ' + (r.ver || '') + ': ' + mb(r.mb) + ' MB unzipped = ' + pct(r.mb) + '% of the 250 MB limit. ';
|
| 561 |
+
if (r.kind === 'runtime') { findings.push({ check: 'in-runtime', sev: 'warn', line: d.line, msg: head + r.fix }); save += r.mb; }
|
| 562 |
+
else if (r.kind === 'container') findings.push({ check: 'container-only', sev: 'error', line: d.line, msg: head + r.fix });
|
| 563 |
+
else if (r.kind === 'swap') {
|
| 564 |
+
var s = r.alt_mb != null ? r.mb - r.alt_mb : 0; save += s;
|
| 565 |
+
findings.push({ check: 'swap', sev: 'warn', line: d.line, msg: head + r.fix + (s > 0 ? ' Saves ' + mb(s) + ' MB.' : '') });
|
| 566 |
+
} else if (r.kind === 'heavy' && r.mb >= HEAVY_MB) findings.push({ check: 'heavy', sev: 'info', line: d.line, msg: head + r.fix });
|
| 567 |
+
});
|
| 568 |
+
|
| 569 |
+
rows.sort(function (a, b) { return b.mb - a.mb; });
|
| 570 |
+
var note = unmeasured.length ? ' ' + unmeasured.length + ' listed package(s) are not in the size table and are not counted: ' + unmeasured.slice(0, 5).join(', ') + (unmeasured.length > 5 ? ', …' : '') + '.' : '';
|
| 571 |
+
if (total > budget) {
|
| 572 |
+
var after = total - save;
|
| 573 |
+
findings.unshift({ check: 'over-250', sev: 'error', line: rows.length ? rows[0].line : 1,
|
| 574 |
+
msg: 'Measured dependencies unzip to ' + mb(total) + ' MB: ' + mb(total - budget) + ' MB over the ' + budget + ' MB Lambda limit (layers count toward it). Largest: ' +
|
| 575 |
+
rows.slice(0, 3).map(function (x) { return x.pkg + ' ' + mb(x.mb) + ' MB'; }).join(', ') + '.' +
|
| 576 |
+
(save > 0 ? ' The flagged lines save ' + mb(save) + ' MB: ' + mb(after) + ' MB after the fixes, ' + (after <= budget ? mb(budget - after) + ' MB under.' : mb(after - budget) + ' MB still over: deploy a container image (10 GB limit).') : '') + note });
|
| 577 |
+
}
|
| 578 |
+
if (eco === 'py' && zipKnown && zip > LIMIT_ZIPPED) {
|
| 579 |
+
findings.push({ check: 'over-50-zip', sev: 'warn', line: 1,
|
| 580 |
+
msg: 'The measured wheels download at ' + mb(zip) + ' MB zipped, above the 50 MB limit for a .zip uploaded through the Lambda API or console. Upload the .zip through Amazon S3; the 250 MB unzipped limit still applies.' });
|
| 581 |
+
}
|
| 582 |
+
return { findings: findings, summary: { ecosystem: eco, total_mb: +mb(total), zipped_mb: eco === 'py' && zipKnown ? +mb(zip) : null,
|
| 583 |
+
limit_mb: budget, over_mb: +mb(Math.max(0, total - budget)), savings_mb: +mb(save), rows: rows, unmeasured: unmeasured } };
|
| 584 |
+
}
|
| 585 |
+
|
| 586 |
+
var api = { engine: { check: check }, RULES: RULES, RULE_COUNT: RULES.length };
|
| 587 |
+
if (typeof module !== 'undefined') module.exports = api;
|
| 588 |
+
if (typeof window !== 'undefined') window.LPBENGINE = api;
|
| 589 |
+
})();
|
| 590 |
+
</script>
|
| 591 |
+
<script>// ⛔뼈대 — kit/scaffold.py 가 찍는다 (s143). findings [{check,sev,msg,line?}] → 글/HTML. 같은 파일이 Node 와 브라우저에서 산다.
|
| 592 |
+
'use strict';
|
| 593 |
+
function escapeHtml(s) { return String(s == null ? '' : s).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"'); }
|
| 594 |
+
function summaryLine(res) {
|
| 595 |
+
const f = (res && res.findings) || []; const e = f.filter(function (x) { return String(x.sev || 'error').toLowerCase().startsWith('err'); }).length;
|
| 596 |
+
return f.length ? (f.length + ' finding' + (f.length === 1 ? '' : 's') + ' (' + e + ' error' + (e === 1 ? '' : 's') + ')') : 'Clean — no findings.';
|
| 597 |
+
}
|
| 598 |
+
function toText(res, label) {
|
| 599 |
+
const f = (res && res.findings) || [];
|
| 600 |
+
const lines = ['== ' + (label || '') + ' — ' + summaryLine(res)];
|
| 601 |
+
f.forEach(function (x) { lines.push(' ' + String(x.sev || 'error').toUpperCase().slice(0, 4) + ' ' + (x.line ? 'L' + x.line + ' ' : '') + (x.check || x.id || '') + ' ' + (x.msg || x.message || '')); });
|
| 602 |
+
return lines.join('\n');
|
| 603 |
+
}
|
| 604 |
+
function toHtml(res) {
|
| 605 |
+
const f = (res && res.findings) || [];
|
| 606 |
+
if (!f.length) return '<p class="ok">' + escapeHtml(summaryLine(res)) + '</p>';
|
| 607 |
+
const rows = f.map(function (x) { return '<tr><td class="sev ' + escapeHtml(String(x.sev || 'error')) + '">' + escapeHtml(String(x.sev || 'error')) + '</td><td>' + (x.line ? 'L' + escapeHtml(x.line) : '') + '</td><td><code>' + escapeHtml(x.check || x.id || '') + '</code></td><td>' + escapeHtml(x.msg || x.message || '') + '</td></tr>'; }).join('');
|
| 608 |
+
return '<p class="sum">' + escapeHtml(summaryLine(res)) + '</p><table><thead><tr><th>Level</th><th>Line</th><th>Check</th><th>What</th></tr></thead><tbody>' + rows + '</tbody></table>';
|
| 609 |
+
}
|
| 610 |
+
var LPBREPORT = { escapeHtml: escapeHtml, summaryLine: summaryLine, toText: toText, toHtml: toHtml };
|
| 611 |
+
if (typeof module !== 'undefined' && module.exports) module.exports = LPBREPORT;
|
| 612 |
+
else window.LPBREPORT = LPBREPORT;
|
| 613 |
+
</script>
|
| 614 |
+
<script>
|
| 615 |
+
(function(){
|
| 616 |
+
var src=document.getElementById('src'), out=document.getElementById('out'), go=document.getElementById('go'), today=document.getElementById('today');
|
| 617 |
+
today.value=new Date().toISOString().slice(0,10);
|
| 618 |
+
function run(){ try { var res=window.LPBENGINE.engine.check(src.value,{today:today.value}); out.innerHTML=window.LPBREPORT.toHtml(res); } catch(e){ out.innerHTML='<p class="sev error">Could not run: '+String(e.message||e)+'</p>'; } }
|
| 619 |
+
go.onclick=run; if (src.value.trim()) run();
|
| 620 |
+
})();
|
| 621 |
+
</script>
|
| 622 |
+
|
| 623 |
+
|
| 624 |
+
<section data-yj-install="free" style="margin:2rem auto 1rem;max-width:46rem;padding:1.25rem 1.25rem;border:1px solid #cfe3d6;border-radius:12px;background:#f6fbf8;font:16px/1.6 system-ui,-apple-system,Segoe UI,sans-serif"><h2 style="margin:0 0 .4rem;font-size:1.2rem">Install free</h2><p style="margin:0 0 .8rem;color:#41505f">Free for the file open in your editor - no key, no limit. The workspace sweep and the report ask for a key.</p><a href="https://open-vsx.org/extension/readystack/lambda-package-budget" rel="noopener" data-yj-install-door="ovsx" onclick="try{navigator.sendBeacon('/api/ev',new Blob([JSON.stringify({t:'install',slug:'lambda-package-budget',src:'ovsx',path:location.pathname})],{type:'application/json'}))}catch(e){}" style="display:inline-block;margin:0 .5rem .5rem 0;padding:.6rem 1rem;border-radius:8px;background:#0f7b3f;color:#fff;text-decoration:none;font-weight:600">Open VSX (Cursor, VSCodium)</a><p style="margin:.6rem 0 0;font-size:.92rem;color:#41505f"><a href="https://getreadystack.com/api/buy/team" rel="nofollow" style="color:#0f7b3f;text-decoration:underline">Team? One key for every ReadyStack linter, 5 seats, $149 once</a></p></section>
|
| 625 |
+
<section data-yj-alert="rule" style="margin:1rem auto 1.5rem;max-width:46rem;padding:1.1rem 1.25rem;border:1px solid #d9dee6;border-radius:12px;background:#fbfcfd;font:15px/1.55 system-ui,-apple-system,Segoe UI,sans-serif"><b style="font-size:1.05rem">Get one email when this rule changes</b><div style="opacity:.78;margin:.35rem 0 .8rem">We watch the regulation and vendor sources behind Lambda Package Size Budget - 250 MB check every day. When a rule changes, you get a single email with what changed and the updated check. No newsletter.</div><div style="display:flex;gap:8px;flex-wrap:wrap"><input id="yjae" type="email" placeholder="you@example.com" style="flex:1;min-width:210px;padding:11px 13px;border:1px solid rgba(140,150,165,.34);border-radius:8px;background:#fff;color:inherit"><button id="yjab" style="padding:11px 18px;border-radius:8px;border:0;cursor:pointer;background:#0f7b3f;color:#fff;font:600 15px system-ui,sans-serif">Notify me</button></div><div id="yjao" hidden style="margin-top:.6rem;color:#0f7b3f">You're on the list. One email when it changes.</div><script>(function(){var b=document.getElementById("yjab"),e=document.getElementById("yjae");if(!b||!e)return;b.addEventListener("click",function(){var v=e.value.trim();if(!/.+@.+\..+/.test(v))return;try{localStorage.setItem("yj_em","1");}catch(_){}fetch(location.origin+"/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:v,slug:"lambda-package-budget",lang:"en",source:"rule_alert"+((b.closest&&b.closest("section")&&b.closest("section").getAttribute("data-yj-moved"))?"_at_result":"")})}).then(function(r){var o=document.getElementById("yjao");o.hidden=false;if(!r.ok){o.textContent="Could not save - please try again.";}}).catch(function(){var o=document.getElementById("yjao");o.hidden=false;o.textContent="Could not save - please try again.";});});})();</script><script>(function(){var e=document.getElementById("yjae"),s=e&&e.closest?e.closest("section"):null,o=document.getElementById("out");if(!s||!o)return;var d=false;function mv(ev){if(d)return;if(ev&&ev.target&&s.contains(ev.target))return;d=true;var b=o;while(b.parentNode&&b.parentNode!==document.body&&b.parentNode.tagName!=="MAIN"&&b.parentNode.tagName!=="ARTICLE")b=b.parentNode;if(!b.parentNode||b===s||b.contains(s))return;try{b.parentNode.insertBefore(s,b.nextSibling);s.setAttribute("data-yj-moved","1");}catch(_){}}document.addEventListener("input",mv,true);document.addEventListener("change",mv,true);document.addEventListener("click",function(ev){var b=ev.target&&ev.target.closest?ev.target.closest("button,input[type=submit]"):null;if(b&&!b.closest("[data-yj],[data-yj-cta],[data-yj-install],[data-yj-alert],.yj-find,.yj-related,#yj-ask,.yjp"))mv(ev);},true);})();</script></section>
|
| 626 |
+
|
| 627 |
+
<section data-yj-cta="paid" style="margin:3rem auto;max-width:46rem;padding:1.5rem 1.25rem;border:1px solid #d8dee9;border-radius:12px;background:#fbfcfe;font:16px/1.6 system-ui,-apple-system,Segoe UI,sans-serif"><h2 style="margin:0 0 .5rem;font-size:1.25rem">Get the full version <span class="yj-price">$29</span></h2><p class="yj-cta-paid" style="margin:.25rem 0 .6rem;color:#1f2a37">Dated size-budget report for the pull request, a CI gate that fails the build above your MB budget, and team licence keys.</p><p class="yj-cta-pay" style="margin:.25rem 0 1rem;color:#5b6b7c;font-size:.94rem">One payment, one licence key for this tool. The key is shown right after payment.</p><p class="yj-cta-anchor" style="margin:0 0 1rem;color:#5b6b7c;font-size:.94rem">A developer hour at the BLS 2025 median wage for software developers is $65.38 (OEWS).</p><a href="https://getreadystack.com/api/buy/cl/polar_cl_RAeCn2bsWzjBNOsw2R8DHqrrFRj38wV88wgLP4Mj5f9" rel="nofollow" style="display:inline-block;padding:.7rem 1.3rem;border-radius:8px;background:#1b64f2;color:#fff;text-decoration:none;font-weight:600">Buy the full version — $29</a></section>
|
| 628 |
+
<!--yj-share-s101--><div style="margin:28px 0 8px;text-align:center"><button id="yjcp" type="button" style="font:inherit;padding:10px 18px;border:1px solid #8884;border-radius:10px;background:transparent;cursor:pointer">Copy link</button><button id="yjimg" type="button" style="font:inherit;padding:10px 18px;margin-left:8px;border:1px solid #8884;border-radius:10px;background:transparent;cursor:pointer">Save result as image</button></div><script>(function(){var b=document.getElementById("yjimg");if(!b)return;b.addEventListener("click",function(){var o=document.getElementById("out");var txt=(o&&(o.innerText||o.textContent)||"").trim();if(!txt){b.textContent="(no result yet)";setTimeout(function(){b.textContent="Save result as image";},1500);return;}var lines=txt.split(String.fromCharCode(10)).filter(function(x){return x.trim();}).slice(0,10);var W=1200,P=56,c=document.createElement("canvas");c.width=W;var lh=38,H=P*2+70+lines.length*lh+60;c.height=H;var x=c.getContext("2d");x.fillStyle="#1a1512";x.fillRect(0,0,W,H);x.fillStyle="#f3e9d2";x.font="600 34px system-ui,Segoe UI,Arial";var t=(document.title||"").split("|")[0].trim();x.fillText(t.slice(0,54),P,P+34);x.font="22px ui-monospace,Menlo,Consolas,monospace";x.fillStyle="#e8dcc4";for(var i=0;i<lines.length;i++){x.fillText(lines[i].slice(0,88),P,P+70+i*lh+22);}x.font="600 22px system-ui,Segoe UI,Arial";x.fillStyle="#c9a227";var d=location.hostname.replace("www.","");x.fillText(d,W-P-x.measureText(d).width,H-P+6);c.toBlob(function(bl){var u=URL.createObjectURL(bl),a=document.createElement("a");a.href=u;a.download=(t||"result").replace(/[^a-z0-9]+/gi,"-").toLowerCase()+"-"+d+".png";document.body.appendChild(a);a.click();setTimeout(function(){URL.revokeObjectURL(u);a.remove();},2000);},"image/png");});})();</script><script>(function(){var b=document.getElementById("yjcp");if(!b)return;var t=b.textContent;b.addEventListener("click",function(){var u=location.href.split("#")[0];function d(){b.textContent="Link copied";setTimeout(function(){b.textContent=t;},1800);}if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(u).then(d,function(){prompt("",u);});}else{prompt("",u);}});})();</script>
|
| 629 |
+
<script data-yj="yj-view-beacon">(function(){try{var p=location.pathname;var k='yjv:'+p;if(sessionStorage.getItem(k))return;sessionStorage.setItem(k,'1');fetch('/api/ev',{method:'POST',keepalive:true,headers:{'Content-Type':'application/json'},body:JSON.stringify({path:p,lang:"en",ref:(document.referrer||''),src:(function(){try{return (new URLSearchParams(location.search).get('ref')||'').replace(/[^a-z_]/g,'').slice(0,12)}catch(e){return ''}})()})}).catch(function(){});}catch(e){}})();</script>
|
| 630 |
+
|
| 631 |
+
<script data-yj="yj-use-beacon">(function(){try{var o=document.getElementById('out');if(!o)return;var p=location.pathname,k='yju:'+p,sent=false;function fire(){if(sent||sessionStorage.getItem(k))return;if(!(o.textContent||'').replace(/\s+/g,'').length)return;sent=true;sessionStorage.setItem(k,'1');fetch('/api/ev',{method:'POST',keepalive:true,headers:{'Content-Type':'application/json'},body:JSON.stringify({path:p,lang:"en",t:'use',src:(function(){try{return (new URLSearchParams(location.search).get('ref')||'').replace(/[^a-z_]/g,'').slice(0,12)}catch(e){return ''}})()})}).catch(function(){});}var mo=new MutationObserver(function(){fire();if(sent)mo.disconnect();});mo.observe(o,{childList:true,characterData:true,subtree:true});}catch(e){}})();</script><div class="yj-home-find"><div class="yj-lgbar"><a href="/" class="yj-lg on">EN</a><a href="/de/" class="yj-lg">DE</a><a href="/ja/" class="yj-lg">JA</a><a href="/es/" class="yj-lg">ES</a><a href="/pt/" class="yj-lg">PT</a></div><section class="yj-find"><h2>Find a tool</h2><input id="yjq" type="search" autocomplete="off" placeholder="Type a product name, format or task"><div id="yjr"></div></section><style>.yj-lgbar{position:absolute;top:14px;right:18px;display:flex;gap:6px;z-index:60}.yj-lg{font:600 12px/1 system-ui,sans-serif;padding:6px 9px;border-radius:4px;text-decoration:none;color:#8b96a3;border:1px solid rgba(140,150,165,.28)}.yj-lg:hover{color:#e8eaed;border-color:rgba(160,175,195,.6)}.yj-lg.on{color:#0e1116;background:#cfd6de;border-color:#cfd6de}.yj-find{max-width:760px;margin:34px auto 8px;padding:0 20px}.yj-find h2{font:600 20px/1.3 system-ui,sans-serif;margin:0 0 10px}#yjq{width:100%;box-sizing:border-box;padding:13px 15px;font:400 15.5px system-ui,sans-serif;border:1px solid rgba(140,150,165,.34);border-radius:8px;background:rgba(255,255,255,.04);color:inherit}#yjq:focus{outline:none;border-color:#7FD1C4}#yjr{margin-top:10px;display:flex;flex-direction:column;gap:6px}#yjr a{display:flex;justify-content:space-between;gap:12px;padding:11px 14px;border:1px solid rgba(140,150,165,.22);border-radius:6px;text-decoration:none;font:400 14.5px/1.4 system-ui,sans-serif;color:inherit}#yjr a:hover{border-color:#7FD1C4}#yjr .pr{font:600 13px system-ui,sans-serif;color:#5fbf9a;white-space:nowrap}</style><script>(function(){var q=document.getElementById("yjq"),r=document.getElementById("yjr"),D=null;function load(){if(D)return Promise.resolve(D);return fetch("/search-index.json").then(function(x){return x.json();}).then(function(j){D=j;return j;}).catch(function(){D=[];return D;});}function esc(t){return String(t).replace(/[&<>"]/g,function(c){return {"&":"&","<":"<",">":">",'"':"""}[c];});}function run(){var v=q.value.trim().toLowerCase();if(v.length<2){r.innerHTML="";return;}load().then(function(j){var w=v.split(/\s+/),o=[];for(var i=0;i<j.length&&o.length<12;i++){var t=j[i].t.toLowerCase();var ok=true;for(var k=0;k<w.length;k++){if(t.indexOf(w[k])<0){ok=false;break;}}if(ok)o.push(j[i]);}r.innerHTML=o.length?o.map(function(x){return "<a href=\""+esc(x.u)+"\">"+"<span>"+esc(x.t)+"</span>"+(x.p?"<span class=\"pr\">$"+x.p+"</span>":"")+"</a>";}).join(""):"";});}q.addEventListener("input",run);q.addEventListener("focus",load);})();</script></div><section data-yj="yj-facts-v1" style="max-width:920px;margin:48px auto 0;padding:0 20px;font-family:system-ui,sans-serif"><style>.yj-article p{font:400 15.5px/1.7 system-ui,sans-serif;color:#26313b;margin:0 0 12px;max-width:72ch}.yj-article h2,.yj-article h3,.yj-article h4{font:600 17px/1.35 system-ui,sans-serif;color:#1b1f24;margin:22px 0 8px}.yj-article table{border-collapse:collapse;margin:10px 0 16px;font:14px/1.45 system-ui,sans-serif}.yj-article th,.yj-article td{border:1px solid #e2e6ea;padding:6px 10px;text-align:left}.yj-article th{background:#f4f6f8}.yj-article pre{background:#0f1720;color:#e6edf3;padding:12px 14px;border-radius:8px;overflow:auto;font:13px/1.5 ui-monospace,Menlo,monospace}.yj-article code{font:13px ui-monospace,Menlo,monospace;background:#f1f3f5;padding:1px 4px;border-radius:3px}.yj-article pre code{background:none;padding:0}.yj-article ul,.yj-article ol{font:15px/1.6 system-ui,sans-serif;color:#26313b}</style><p style="font:400 13px/1.5 system-ui,sans-serif;color:#6b7680;margin:0 0 14px"><time datetime="2026-10-01">Updated 2026-10-01</time> · ReadyStack</p><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","dateModified":"2026-10-01","author":{"@type":"Organization","name":"ReadyStack"}}</script><h2 style="font:600 21px/1.3 system-ui,sans-serif;margin:0 0 6px;color:#1b1f24">Worked example</h2><p style="font:400 14.5px/1.5 system-ui,sans-serif;margin:0 0 16px;color:#5b6570">Real numbers from this tool, line by line.</p><div class="yj-article"><p><img src="https://getreadystack.com/img/promo/sku439194_result_card.jpg" alt="Lambda Package Size Budget - 250 MB check" loading="lazy" style="max-width:100%;border-radius:6px"></p>
|
| 632 |
+
<p>The sample invoice-OCR Lambda in this tool unzips to 306.5 MB, 56.5 MB over the 250 MB AWS Lambda limit, and it is the kind of requirements.txt a Python developer shipping .zip functions writes in an afternoon: boto3, botocore, numpy, pandas, opencv-python and requests.</p>
|
| 633 |
+
<p>The limit is written on the AWS Lambda quotas page. A .zip deployment package may be 50 MB zipped when you upload it through the Lambda API, SDKs or console; larger archives go through Amazon S3. The contents, unzipped, may not pass 250 MB, and that figure includes layers and custom runtimes. Container images get 10 GB uncompressed. So a layer does not buy space: moving numpy into a layer moves the same 56.4 MB to a different line of the same bill.</p>
|
| 634 |
+
<p>Here is what the tool reports for the sample, line by line, using sizes measured on 2026-09-30 from the PyPI cp312 manylinux x86_64 wheel of each package (the sum of the file sizes inside the wheel) and from the npm registry's unpackedSize:</p>
|
| 635 |
+
<ul><li>opencv-python 5.0.0.93: 189.5 MB, 75.8% of the limit on its own.</li><li>numpy 2.5.3: 56.4 MB, 22.6%.</li><li>pandas 3.0.6: 38.9 MB, 15.6%.</li><li>botocore 1.43.106: 20.5 MB, 8.2%.</li><li>boto3 1.43.106: 1.0 MB.</li><li>requests 2.34.2: 0.2 MB.</li></ul>
|
| 636 |
+
<p>Total: 306.5 MB. Three of those lines have a fix that does not change your code.</p>
|
| 637 |
+
<p>First, boto3 and botocore. The Lambda Python runtime already includes the SDK for Python (Boto3); AWS says so on the Python runtime page. Bundling your own copy is only worth it when you need a newer version than the runtime ships. Deleting the two lines saves 21.5 MB.</p>
|
| 638 |
+
<p>Second, opencv-python. Its own README describes opencv-python-headless as the package for server (headless) environments, with no GUI functionality. A Lambda has no screen. Swapping the line to opencv-python-headless==5.0.0.93 takes the package from 189.5 MB to 150.3 MB, which saves 39.2 MB.</p>
|
| 639 |
+
<p>After those three lines the sample measures 245.8 MB: 4.2 MB under the limit. The tool prints that number in the same finding, so you know before the build whether the fixes are enough or whether the function belongs in a container image.</p>
|
| 640 |
+
<p>The zipped side matters too. The same wheels download at 114.8 MB zipped, above the 50 MB direct-upload limit, so the tool also tells you to upload the archive through S3.</p>
|
| 641 |
+
<p>Node projects get the same treatment from package.json. The Node.js runtimes include the AWS SDK for JavaScript v3, so @aws-sdk/client-* lines are flagged the same way as boto3. The old aws-sdk v2 package measures 98.2 MB unpacked and is not the SDK the runtime ships. Build tools listed under dependencies instead of devDependencies are a quieter leak: aws-cdk-lib alone is 137.1 MB, and npm install --omit=dev would leave it out.</p>
|
| 642 |
+
<p>Some packages cannot be saved. The torch 2.14.1 wheel is 1144.2 MB unzipped and tensorflow 2.21.0 is 1873.3 MB; either one is over 250 MB by itself. For those the tool says it plainly: set PackageType: Image and deploy a container image.</p>
|
| 643 |
+
<p>What it does not do: it counts the lines you list. A hand-written requirements.txt leaves out transitive dependencies, so run it on pip freeze output when you want the full picture. Packages outside the 47-rule size table are named in the finding and not counted, instead of being guessed.</p>
|
| 644 |
+
<p>The free part is complete: the ranking, the total, the zipped check and the fix for every line, in VS Code or on the web page, with no key. The paid licence covers the next job, which is keeping the budget in a pull request: a dated size-budget report, a CI gate with your own MB budget and team keys.</p></div><h2 style="font:600 19px/1.3 system-ui,sans-serif;margin:30px 0 10px;color:#1b1f24">15 seconds — what it actually does</h2><video controls muted playsinline preload="none" poster="/img/promo/sku439194_result_card.jpg" style="width:100%;max-width:360px;border-radius:10px;display:block;margin:0 auto"><source src="/media/sku439194_short.mp4" type="video/mp4"></video><h2 style="font:600 21px/1.3 system-ui,sans-serif;margin:34px 0 6px;color:#1b1f24">Questions people ask</h2><details style="border-bottom:1px solid #e6e9ed;padding:10px 0"><summary style="cursor:pointer;font:600 15px/1.4 system-ui,sans-serif;color:#1b1f24">What does Lambda Package Size Budget actually do?</summary><p style="margin:8px 0 2px;font:400 14.5px/1.6 system-ui,sans-serif;color:#33404b">It reads requirements.txt or package.json, looks up the measured unzipped size of each listed dependency, and compares the total with the 250 MB AWS Lambda limit for .zip functions, layers included. Each line gets a fix: delete boto3 because the runtime ships it, swap opencv-python for opencv-python-headless, move build tools to devDependencies, or deploy torch as a container image.</p></details><details style="border-bottom:1px solid #e6e9ed;padding:10px 0"><summary style="cursor:pointer;font:600 15px/1.4 system-ui,sans-serif;color:#1b1f24">Who is this for?</summary><p style="margin:8px 0 2px;font:400 14.5px/1.6 system-ui,sans-serif;color:#33404b">Python and Node.js developers who deploy AWS Lambda functions as .zip archives with SAM, Serverless Framework, CDK or plain zip, and who have hit, or are close to, the 250 MB unzipped limit. It suits a team lead who wants the size budget checked in every pull request before a deploy fails in the pipeline.</p></details><details style="border-bottom:1px solid #e6e9ed;padding:10px 0"><summary style="cursor:pointer;font:600 15px/1.4 system-ui,sans-serif;color:#1b1f24">Why not ask a chatbot or just run du on the build folder?</summary><p style="margin:8px 0 2px;font:400 14.5px/1.6 system-ui,sans-serif;color:#33404b">A chatbot guesses package sizes from memory and often forgets that layers count toward the same 250 MB. du only works after a full Linux build and does not say which line to change. This tool uses sizes measured on 2026-09-30 from PyPI cp312 x86_64 wheels and npm, and names the line and the fix.</p></details><details style="border-bottom:1px solid #e6e9ed;padding:10px 0"><summary style="cursor:pointer;font:600 15px/1.4 system-ui,sans-serif;color:#1b1f24">What is free and what does the paid version add?</summary><p style="margin:8px 0 2px;font:400 14.5px/1.6 system-ui,sans-serif;color:#33404b">Free, with no key: every listed dependency ranked by MB, the total against 250 MB, the 50 MB zipped upload check, and the fix for each line, in the editor and on the web page. The $29 one-time licence adds a dated size-budget report for the pull request, a CI gate with your own MB budget, and team licence keys.</p></details><details style="border-bottom:1px solid #e6e9ed;padding:10px 0"><summary style="cursor:pointer;font:600 15px/1.4 system-ui,sans-serif;color:#1b1f24">What does it cost compared with doing it by hand?</summary><p style="margin:8px 0 2px;font:400 14.5px/1.6 system-ui,sans-serif;color:#33404b">The licence is $29 once. A developer hour at the BLS 2025 median wage for software developers is $65.38. Working out package sizes by hand means building on Linux, unzipping, running du per folder and mapping folders back to requirement lines. In the bundled sample the tool finds 60.7 MB of savings across three lines.</p></details><script type="application/ld+json" data-yj="yj-faq-ld">{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "What does Lambda Package Size Budget actually do?", "acceptedAnswer": {"@type": "Answer", "text": "It reads requirements.txt or package.json, looks up the measured unzipped size of each listed dependency, and compares the total with the 250 MB AWS Lambda limit for .zip functions, layers included. Each line gets a fix: delete boto3 because the runtime ships it, swap opencv-python for opencv-python-headless, move build tools to devDependencies, or deploy torch as a container image."}}, {"@type": "Question", "name": "Who is this for?", "acceptedAnswer": {"@type": "Answer", "text": "Python and Node.js developers who deploy AWS Lambda functions as .zip archives with SAM, Serverless Framework, CDK or plain zip, and who have hit, or are close to, the 250 MB unzipped limit. It suits a team lead who wants the size budget checked in every pull request before a deploy fails in the pipeline."}}, {"@type": "Question", "name": "Why not ask a chatbot or just run du on the build folder?", "acceptedAnswer": {"@type": "Answer", "text": "A chatbot guesses package sizes from memory and often forgets that layers count toward the same 250 MB. du only works after a full Linux build and does not say which line to change. This tool uses sizes measured on 2026-09-30 from PyPI cp312 x86_64 wheels and npm, and names the line and the fix."}}, {"@type": "Question", "name": "What is free and what does the paid version add?", "acceptedAnswer": {"@type": "Answer", "text": "Free, with no key: every listed dependency ranked by MB, the total against 250 MB, the 50 MB zipped upload check, and the fix for each line, in the editor and on the web page. The $29 one-time licence adds a dated size-budget report for the pull request, a CI gate with your own MB budget, and team licence keys."}}, {"@type": "Question", "name": "What does it cost compared with doing it by hand?", "acceptedAnswer": {"@type": "Answer", "text": "The licence is $29 once. A developer hour at the BLS 2025 median wage for software developers is $65.38. Working out package sizes by hand means building on Linux, unzipping, running du per folder and mapping folders back to requirement lines. In the bundled sample the tool finds 60.7 MB of savings across three lines."}}]}</script><div id="yj-ask" style="margin:36px 0 0;padding:18px 18px 16px;border:1px solid #e2e6ea;border-radius:10px;background:#fbfbfc"><h2 style="font:600 19px/1.3 system-ui,sans-serif;margin:0 0 4px;color:#1b1f24">Ask about this tool</h2><p style="font:400 13.5px/1.5 system-ui,sans-serif;margin:0 0 12px;color:#5b6570">One question, answered by the person who built it. Your email only if you want the answer sent.</p><form onsubmit="return yjAsk(event)" style="display:grid;gap:8px"><textarea name="question" required minlength="10" maxlength="2000" rows="3" placeholder="Your question" style="font:14px/1.5 system-ui,sans-serif;padding:10px;border:1px solid #cfd6dd;border-radius:6px"></textarea><div style="display:flex;gap:8px;flex-wrap:wrap"><input type="email" name="email" placeholder="Email (optional)" style="flex:1;min-width:200px;font:14px system-ui,sans-serif;padding:9px 10px;border:1px solid #cfd6dd;border-radius:6px"><button type="submit" style="font:600 14px system-ui,sans-serif;padding:9px 18px;border:0;border-radius:6px;background:#1b1f24;color:#fff;cursor:pointer">Send</button></div><p id="yj-ask-msg" style="font:13px system-ui,sans-serif;margin:2px 0 0;color:#0a6238;min-height:1em"></p></form><script>function yjAsk(e){e.preventDefault();var f=e.target,m=document.getElementById("yj-ask-msg");m.style.color="#0a6238";fetch(location.origin+"/api/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sku:439194,slug:"lambda-package-budget",lang:"en",question:f.question.value,email:f.email.value,page:location.pathname})}).then(function(r){if(!r.ok)throw 0;m.textContent="Thanks \u2014 noted. Answers land on this page and, if you left an email, in your inbox.";f.question.value="";}).catch(function(){m.style.color="#a8551f";m.textContent="Could not send. Please try again in a minute.";});return false;}</script></div></section><section class="yj-related" style="max-width:920px;margin:56px auto 40px;padding:0 20px"><h2 style="font:600 21px/1.3 system-ui,sans-serif;margin:0 0 6px;color:#1b1f24">Same job, next tool</h2><p style="font:400 14.5px/1.5 system-ui,sans-serif;margin:0 0 20px;color:#5b6570">Free in the browser. The full version is a one-time licence.</p><div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px"><a class="yj-rel-c" href="https://getreadystack.com/tools/runtime-eol-deploy-block-audit"><span class="yj-rel-t">Runtime EOL and Deploy-Block Audit for Docker, CI and AWS Lambda</span><span class="yj-rel-p">$29</span></a><a class="yj-rel-c" href="https://getreadystack.com/tools/spdx-license-field-lint"><span class="yj-rel-t">SPDX License Field Lint for package.json, pyproject.toml and Cargo.toml</span><span class="yj-rel-p">$29</span></a><a class="yj-rel-c" href="https://getreadystack.com/tools/package-json-release-gate"><span class="yj-rel-t">npm publish package.json gate: engines & SPDX</span><span class="yj-rel-p">$29</span></a><a class="yj-rel-c" href="https://getreadystack.com/tools/robots-txt-ai-crawler-audit"><span class="yj-rel-t">AI Crawler Rules - robots.txt Audit for AI Search</span><span class="yj-rel-p">$29</span></a><a class="yj-rel-c" href="https://getreadystack.com/tools/cran-policy-submission-lint"><span class="yj-rel-t">CRAN Policy Submission Lint</span><span class="yj-rel-p">$29</span></a><a class="yj-rel-c" href="https://getreadystack.com/tools/csaf-advisory-check-cra-2026"><span class="yj-rel-t">CSAF Advisory Check for CRA 2026</span><span class="yj-rel-p">$29</span></a></div><style>.yj-rel-c{display:flex;flex-direction:column;gap:8px;padding:15px 16px;border:1px solid #e2e6ea;border-radius:6px;text-decoration:none;background:#fff}.yj-rel-c:hover{border-color:#b9c2cb;background:#fafbfc}.yj-rel-t{font:500 14.5px/1.42 system-ui,sans-serif;color:#1b1f24}.yj-rel-p{font:600 13px system-ui,sans-serif;color:#0a6238}</style></section></body>
|
| 645 |
</html>
|