Repository navigation
Expand file tree
/
Copy pathperf-budgets.json
More file actions
65 lines (65 loc) · 13.4 KB
/
Copy pathperf-budgets.json
File metadata and controls
65 lines (65 loc) · 13.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"_about": "Sizes the Workers must stay under (scripts/perf-budget.mjs, tests/perf-budget.test.mjs). Measured on 2026-10-23 with a little room (the app grew 0.6 MB when the SDKs and schemas became lazy: each `import()` is a chunk of its own, in both of Next.js's layers, and the dashboard evaluates 1.5 MB less of it); The content calendar (2026-10-24) took the app 0.6 MB (handler 28.60 to 29.19 MB): its three dashboard pages, a docs page, 24 actions and their schemas, in both of Next.js's layers, of which the pages' client reference manifests are 0.26 MB. Raise one only in a change that says why a Worker had to grow. Bytes. The 2026-10-25 remaining handover builds add 11 public actions and four dashboard-only actions, owner claim and team pages, replies and reader settings, Stripe import, Markdown endpoints and six reader language catalogs. Measured handler 30.585 MB and app upload 32.876 MB versus brand-fleet 29.454/31.729 MB. Keep new services lazy and the inbound MIME parser in its own optional Worker. Raise only the app limits to 31.0/33.4 MB; API/readers limits stay unchanged. The next 2026-10-25 product batch adds seven registry actions, two owner pages, author/reader-preview panels, private perk downloads, code/contents blocks, selectable overview ranges and 17 ID-only event types. Measured app handler 31.389 MB, app upload 33.689 MB and API 8.594 MB, versus reader-language build 30.960/33.254/8.27 MB. These are added product routes and schemas; no new SDK was placed on dashboard imports. Set handler/upload/API limits to 31.8/34.1/8.8 MB with modest remaining room. Other limits stay unchanged. The 2026-10-25 mailing-list/meter build measured 31.73/34.03 MB. HTML source snippets, audience-block filtering and controls, the [[ link picker and private links panel, and two link-index actions bring handler/upload to 31.809/34.115 MB. No new SDK was added. Set only those limits to 32.2/34.5 MB; API and other limits stay unchanged. The supporter badge, creator matches/private inbox and short web post batch adds two creator dashboard routes, three small creator forms, one short-post editor and nine public actions. Measured handler 32261848 bytes and app upload 34574957 bytes, versus paid-trial 31.99/34.30 MB; API is 8.71 MB. Reuses the campaign and platform email engines and adds no SDK. Set only app handler/upload limits to 32.6/34.9 MB, with modest room for the remaining accepted builds. API/readers and other limits stay unchanged. AI images and the owner-only account assistant (2026-10-25) added public-image generation, guarded draft/segment/calendar tool orchestration and review UI: measured handler 32641968 bytes and app upload 34961404 bytes. App limits are 32.90 and 35.20 MB, leaving modest room above this measured feature batch; API and other limits are unchanged. Reader billing-language parity adds 107 six-language phrases, full account billing summaries and localized pledge/gift mail and known validation patterns. Measured API Worker 8817044 bytes versus 8773068 at the AI checkpoint. Raise only API to8.95 MB; other limits stay unchanged. No SDK added. The combined reader billing language and Reply Rules build measured app handler33516993 and upload35841500 bytes. Reply Rules adds owner settings, reader consent/decision UI, classifier, current-access/session checks, export metadata and public/privacy docs; the six-language catalogs grew107+9 phrases. AI-checkpoint versus current server chunks grow806393 bytes, with node_modules chunks unchanged8031669 bytes: no new SDK dependency. Client manifests grew only3326 bytes. Preserve lazy model/job imports (Contacts closure1.471MB); set app limits33.8/36.1MB after this measured feature batch. API8.840088MB remains under8.95MB; other limits unchanged. Local byte counts do not measure production latency. Group subscriptions (2026-10-25) add three page modules (owner list/detail and public buyer/manager/invite), three small form/billing components, 11 actions and their schemas, current-invoice funding and source reconciliation, private capabilities, export/privacy coverage and 73 six-language interface/email phrases. Measured handler34192236 and upload36523328 bytes versus reader-event33500k/35830k baseline; API8932704 and readers2512667 bytes stay within existing limits. No dependency was added. The two group compile runs have identical node_modules chunk bytes7327681 under the same basename-prefix measure; 42 weight/query/purge checks and final page-closure rerun preserve lazy common dashboard imports. Raise only app handler/upload to34.5/36.85MB with modest room for this feature. This is local source-size evidence, not production latency. Direct sponsorships add 24 registry actions (one human-only), inventory and verified booking, private image storage, invoice creation and recovery, approved editor snapshots, actual containing-message reports, export/privacy integration and 79 six-language interface/email phrases. No dependency was added. API measured 9059675 bytes versus the group checkpoint 8932704 bytes; increase its source budget to 9.15 MB. The accidental reader catalog import through newsletter defaults was removed: layout closure falls from 1.39 MB to 1.19 MB, retaining its 1.35 MB cap. Fresh sponsorship compile measures app handler 35515685 bytes and upload 37859574 bytes, versus group 34192236/36523328. Next server JS grows 1133659 bytes (25575680 to 26709339), of which node_modules basename-prefix chunks grow 15705 (7327681 to 7343386); no package was added. Added source, schemas, six-language copy, six public/owner page routes, editor snapshot block and client/server manifests account for the feature batch. Raise only app handler/upload to 35.8/38.15 MB with modest headroom; API/readers remain within 9.15/2.8 MB. All values measure local source size, not latency. Reader billing choices (2026-10-25) add nine creator actions, two dashboard/private reader routes, native Stripe pause/resume/save/cancel services and 46 six-language control/status phrases. Measured handler35878134 and upload38225032 bytes versus sponsorship35515685/37859574; dedicated feature source89991 bytes compiles in both Next layers. package.json and package-lock.json are byte-identical to the sponsorship checkpoint: no new dependency. API9147785 and readers2572927 stay within existing limits. Set only app handler/upload to36.15/38.50MB with modest room over this measured feature. Local source sizes do not measure production latency. Realtime collaboration adds six public private-editor actions and two dashboard-only ticket/checkpoint actions, a current-session/team/draft service authority and content-CAS fields. Early measured API9181978 versus reader-billing9147785 bytes; no Yjs, Tiptap or DOM parser enters the API. Set API9.30MB with modest room for the feature. The new optional collaboration Worker is separately measured1194343 bytes with a1.50MB budget; its native runtime tests use its compiled output. The first combined app compile measured handler36248885 and upload38599123, versus reader billing35878134/38225032: +370751/+374091 bytes for the collaborative client route, shared-schema checkpoint and private discussion code, schemas and manifests. The DOM parser remains in the separately bundled optional Worker; existing dashboard closure guards pass. Set app limits36.50/38.85MB with modest room; final verified bytes are recorded in docs/PERFORMANCE.md. Final handover after compatibility/copy/billing race followups measured handler36260231, upload38610476, API9186272, readers2575539 and optional collaboration1194911 bytes. All eight budgets pass; app full suite3470passed/0failed/3existing skips, plus12native passes. Final source-size evidence is local only. QA release fixes (2026-10-27) lower the budgets: the Cloud build (FLOCKSTACK_CLOUD_BUILD=true, set by scripts/deploy-all.mjs) replaces the S3, CloudFront and Vercel Blob clients with a stub and loads a narrowed mingo only where SQL cannot answer. Measured app handler 33267648 (from 36261626), upload 35572983 (from 38611873), API 8017027 (from 9187110), readers 2520388 (from 2575539). Limits are 33.6/35.95/8.15/2.65 MB; they only go down. The 2026-10-27 sprint wrap adds, on top of the QA size cuts, share buttons, custom headers, image crop and GIFs, random cohort sends, the tag filter and archive bulk action, held signups and private archives, Mailchimp import, gift links, the upsell template, per-issue schema and device split, and 17 registry actions. Measured app handler 33748560 and upload 36057862 versus the QA checkpoint 33267648/35572983 (+0.48 MB). No dependency was added. Limits are 34.0/36.3 MB, still about 2.3 MB under the build in production before the cuts. The optional briefings Worker (2026-10-28, docs/BRIEFINGS-DESIGN.md) is built like the readers Worker from workers/briefings/index.js: the engine in lib/briefings (66 KB), the shared docdb with its narrowed mingo (500 KB of the 608 KB), the AI key store and three models, no Next.js, React, SES or auth code. Measured 608225 bytes, the same in the Cloud and self-hosted builds; limit 0.75 MB (1.23 times) for the engine work still to come in its first runs. The same change adds the BriefingsDelivery entrypoint to the API Worker, loaded only on its first RPC call: lib/briefings-delivery.js is 4.5 KB of the API Worker, which measured 8139972 bytes in the Cloud build with the Briefings actions, under its unchanged 8.15 MB. Briefings (2026-10-28, main 4ffd4e0): the app measured handler 34273082 and upload 36590421 bytes, +524 KB and +533 KB on the sprint wrap. It is the Briefings registry actions and their schemas, AI keys, the briefing, run and AI key pages, the public verdict page and the briefings-bot docs page; the engine is not in the app (it runs in the briefings Worker; the hourly cron imports it only when self-hosted). No dependency was added. Limits 34.5/36.85 MB; trimming the Briefings schemas from the app bundle is the next size task. Subfolder hosting and briefing sections (2026-10-28, main 2e46231): handler 34614985 and upload 36946238 bytes, about +0.34 MB on the Briefings measurement: the mount actions, routing and HTMLRewriter step, the subfolder docs page with its five recipes, and the section editor and run tables. No dependency was added. Limits 34.75/37.1 MB. This is the second raise in a day: the next change to the app must take the Briefings and mount schemas and docs recipes out of the app handler (they are only needed by the API Worker and the public pages) before anything else is added. Mingo ESM (2026-10-28): every bundle now takes mingo's ESM build (scripts/mingo-esm.mjs), so its unused operators drop out: app handler 34,615,958 to 34,003,661 bytes, upload 36,947,202 to 36,125,410, API Worker 7,908,694 to 7,552,868, readers 2,252,348 to 1,898,736, briefings 749,241 to 396,140. Limits unchanged. This replaces the earlier note that Briefings and mount code must leave the app first: measured at about 0.31 MB, they cannot leave it without breaking the dashboard, self-hosting or the public pages render (docs/PERFORMANCE.md). Short chunk names (2026-10-28): scripts/short-chunk-names.mjs, after dedupe-chunks in the build command, gives every server chunk but the runtime and the [externals] chunks a base-36 name, so the 83,507 places the build names a chunk (the loaders' lists of nested async chunking, routes' entries, client reference manifests, OpenNext's modules and requireChunk) are shorter: app handler 34,243,892 to 30,716,983 bytes, upload 36,367,927 to 32,752,997. Nothing else changes (docs/PERFORMANCE.md). Limits unchanged, so the app has 4 MB of room again. SES account migration (2026-11-12): the already-shipped Anthropic/Groq main (#39, 71b69da) builds an 8,852,582-byte API Worker, above its stale 8,150,000-byte budget. The migration build is 8,827,410 bytes and adds no SDK. Reconcile only the API budget to 8,950,000 bytes, recording the existing provider cost rather than removing a shipped provider during an email migration.",
"budgets": {
"app-handler": {
"label": "app handler.mjs (OpenNext)",
"file": ".open-next/server-functions/default/handler.mjs",
"maxBytes": 34750000,
"measured": 30716983
},
"app-upload": {
"label": "app script Wrangler uploads (.worker/worker-entry.js)",
"file": ".worker/worker-entry.js",
"maxBytes": 37100000,
"measured": 32752997
},
"api-worker": {
"label": "API Worker (workers/api/dist/index.js)",
"file": "workers/api/dist/index.js",
"maxBytes": 8950000,
"measured": 8827410,
"build": "api"
},
"readers-worker": {
"label": "readers Worker (workers/readers/dist/index.js)",
"file": "workers/readers/dist/index.js",
"maxBytes": 2650000,
"measured": 2520388,
"build": "readers"
},
"router": {
"label": "router Worker, bundled and minified",
"bundle": "workers/router/index.js",
"maxBytes": 11000,
"measured": 9435
},
"public-handler": {
"label": "public pages Worker handler, bundled and minified",
"bundle": "workers/public/handler.js",
"maxBytes": 6000,
"measured": 3500
},
"replies-worker": {
"label": "optional replies Worker, bundled and minified",
"bundle": "workers/replies/index.js",
"external": [
"node:crypto"
],
"maxBytes": 100000,
"measured": 72798
},
"collaboration-worker": {
"label": "optional collaboration Worker",
"file": "workers/collaboration/dist/index.js",
"maxBytes": 1500000,
"measured": 1194343
},
"briefings-worker": {
"label": "optional briefings Worker (workers/briefings/dist/index.js)",
"file": "workers/briefings/dist/index.js",
"maxBytes": 750000,
"measured": 608225,
"build": "briefings"
}
}
}