Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...
    Documentation
    GitHub

    Trust

    Economics

    This page projects what a site saves under spool in two currencies: the bytes a traditional origin no longer sends, and the Worker requests a Cloudflare account no longer pays for. It covers read views only. Every figure carries its layer: L0 published, L1 measured here, L2 derived from the other two, and L3 a scenario.

    Each headline row's last column is its provenance. library 1.0.0, measured is a count from a reading of the shipped package with the worker controlling the spool arm. library 1.0.0 page runtime, no worker is a count from the shipped package where the reading's controlled field is false: the in-page navigation of the page runtime answered the views, and no worker was registered. model over library counts (L3) is a projection or byte formula over those counts. review construction, not shipped is a count from a construction the library does not implement, and bound, no count is a formula or a published rate. The last two rows sit in Constructions That Are Not Shipped.

    A net saving is the share of a baseline that spool removes after it pays for the bootstrap, the worker script (the stub), contacts, the sync and dataset requests, and writes. The baseline is the same visits with no spool. A negative saving is a result: spool sent more than the baseline. The multiplier is the baseline over spool. How each multiplier moved from one stage of the project to the next is under Moving Numbers.

    figure baseline net saving multiplier label applies to provenance
    Origin requests, 121 views 121 requests, no spool 95.9% 24.20x L2 Chromium, 5 requests with spool; counts L1; all origin hits, stub on the Worker library 1.0.0, measured
    Origin requests, 121 views 122 requests, no spool 95.1% 20.33x L2 Firefox, 6 requests with spool; counts L1; all origin hits, stub on the Worker library 1.0.0, measured
    Origin requests, one view a day for 5 days 5 requests, no spool 0.0% 1.00x L2 Chromium, 5 requests with spool, no saving; counts L1; no stub fetched; Firefox did not start library 1.0.0 page runtime, no worker
    Worker-invocation equivalents, 121 views 121 requests, no spool 97.5% 40.33x L2 Chromium; the stub and boot script served from a static tier library 1.0.0, measured
    Worker-invocation equivalents, one view a day for 5 days 5 requests, no spool 0.0% 1.00x L2 Chromium; the stub and boot script served from a static tier library 1.0.0 page runtime, no worker
    Bytes, 121 views, the median document 2,063,534 B, no spool 86.7% 7.51x L2 Chromium; 274,709 B with spool after the ring, boot script and one stub fetch; the 17,054 B median over L1 sizes model over library counts (L3)
    Origin requests, signed-in reader on defaults, 4 days 7 requests, no spool -185.7% 0.35x L2 Chromium, 20 requests with spool, a loss; counts L1; persistent retention, the default; 6 views over 4 days; the spool arm has a memory sink; not what a default install produces: needs principalDatasets: true, the identity option and a principal route; behind spoolProxy, a public route sends a request with a cookie outside the allowlist or an Authorization header to the origin, and a principal route needs identity library 1.0.0, measured
    Origin requests, signed-in reader, session retention (opt-in), 4 days 7 requests, no spool -214.3% 0.32x L2 Chromium, 22 requests with spool, a loss; counts L1; 6 views over 4 days; the spool arm has a memory sink; not what a default install produces: needs principalDatasets: true, the identity option and a principal route; behind spoolProxy, a public route sends a request with a cookie outside the allowlist or an Authorization header to the origin, and a principal route needs identity library 1.0.0, measured
    Origin requests on a held day, persistent retention, day 2 1 request, no spool -300.0% 0.25x L2 Chromium, day 2 of the persistent reader; 4 requests with spool (a beacon, the sync and the dataset request, and a stub check), a loss; counts L1; not what a default install produces: needs principalDatasets: true, the identity option and a principal route; behind spoolProxy, a public route sends a request with a cookie outside the allowlist or an Authorization header to the origin, and a principal route needs identity library 1.0.0, measured
    Origin requests, session revoked on the server after day 2 7 requests, no spool -157.1% 0.39x L2 Chromium, 18 requests with spool, a loss; counts L1; persistent retention; no held page on day 3; not what a default install produces: needs principalDatasets: true, the identity option and a principal route; behind spoolProxy, a public route sends a request with a cookie outside the allowlist or an Authorization header to the origin, and a principal route needs identity library 1.0.0, measured
    Origin requests, public edit, family route 9 requests, no spool -11.1% 0.9x L2 Chromium, 10 requests with spool, a loss; counts L1; 9 views over 4 days library 1.0.0, measured
    Origin requests, public edit, stored-page route 9 requests, no spool -88.9% 0.53x L2 Chromium, 17 requests with spool, a loss; counts L1; 9 views over 4 days library 1.0.0, measured
    Worker invocations over the visit, static tier, Chromium 130 invocations, no spool 96.2% 26.00x L2 Chromium, stamped static files; unstamped files also give 5 (counts L1) library 1.0.0, measured
    Worker invocations over the visit, static tier, Firefox 131 invocations, no spool 95.4% 21.83x L2 Firefox, stamped static files; unstamped files also give 6 (counts L1) library 1.0.0, measured
    Worker invocations over the visit, static tier against worker only, Chromium 13 invocations, worker only 61.5% 2.60x L2 Chromium, stamped static files; counts L1 library 1.0.0, measured
    Worker invocations over the visit, static tier against worker only, Firefox 14 invocations, worker only 57.1% 2.33x L2 Firefox, stamped static files; counts L1 library 1.0.0, measured
    Origin requests, one tab, 2,000 views, Chromium 2,000 requests, no spool 99.9% 1,000x L2 Chromium, 2 requests with spool; counts L1; the spool arm was not controlled by the worker in this reading (controlled false) library 1.0.0 page runtime, no worker
    Origin requests, one tab, 2,000 views, Firefox 2,001 requests, no spool 99.9% 667x L2 Firefox, 3 requests with spool; counts L1; the spool arm was not controlled by the worker in this reading (controlled false) library 1.0.0 page runtime, no worker

    The library readings come from 2026-11-20 (Chromium and Firefox on one Linux box, a 1,000-course demo site, every request that reaches the origin counted). At 121 views, one document, 100 in-page views and 20 warm documents, Chromium sent 5 origin requests against 121. That is a net saving of 95.9%, a multiplier of 24.20x, and 2,420,000 read views a day against the Free plan's 100,000 (L2 over L1 counts; the count includes every origin hit, so it is a bound on Worker requests and not a Worker meter). Firefox gives 20.33x. WebKit is absent from every library reading. The library's headline covers Chromium and Firefox only. WebKit, which is every browser on iOS, defaults to no worker because of an upstream script check on every navigation; its figures are model rows or single script-check readings, never library readings. "Chromium and Firefox" is well under all of mobile. The signed-in, public-edit and revoked-session rows are Chromium only, because Firefox did not start the multi-day arms under libfaketime. The own-write scenario is not measured.

    The model's five workloads are scenarios (L3). The table gives the best engine class for each and the worst, the Free plan's read views a day, the paid plan's dollars at 100 million read views a month, and the bytes a read view saves net of the ring on each network document, the boot script and the stub. The two byte columns differ only in the stub: the first fetches it in full each lifetime, as the multi-day reading did, and the second revalidates it with a 304 after the first fetch. The engine classes are Chromium and Firefox with a worker, WebKit under the default (which registers no worker, so it is the no-worker class), WebKit with workerMode: 'always', and no worker.

    workload requests per read view, no spool (L3) best engine class, requests per read view (L3) net requests saved, best (L3) multiplier, best (L3) worst engine class, multiplier (L3) classes at or below 1x (L3) Free plan read views a day, no spool to best (L3) paid plan, 100 million read views a month, no spool to best (L3) net bytes saved per read view, worker, stub in full each lifetime (L3) net bytes saved per read view, worker, stub revalidated (L3) provenance
    Short read lifetime 1.0 0.600 (Chromium and Firefox, worker) 40.0% 1.67x 0.63x (WebKit, workerMode: 'always') WebKit, default (no worker); WebKit, workerMode: 'always'; no worker 100,000 to 166,667 $27.00 to $15.00 (worst class $45.00) -222.2% -222.2% model over library counts (L3)
    Engaged daily public reader 1.0 0.040 (Chromium and Firefox, worker) 96.0% 25.00x 11.11x (WebKit, workerMode: 'always') none 100,000 to 2,500,000 $27.00 to $0.00 (worst class $0.00) 82.7% 82.7% model over library counts (L3)
    Retained public library 1.0 0.015 (Chromium and Firefox, worker) 98.5% 66.67x 15.38x (WebKit, workerMode: 'always') none 100,000 to 6,666,667 $27.00 to $0.00 (worst class $0.00) 89.7% 97.0% model over library counts (L3)
    Read/write workspace 1.1 0.165 (Chromium and Firefox, worker) 85.0% 6.67x 4.15x (WebKit, workerMode: 'always') none 90,909 to 606,061 $30.00 to $1.95 (worst class $4.95) 83.8% 91.1% model over library counts (L3)
    Ungated two-view lifetime 1.0 1.500 (Chromium and Firefox, worker) -50.0% 0.67x 0.4x (WebKit, workerMode: 'always') Chromium and Firefox, worker; WebKit, default (no worker); WebKit, workerMode: 'always'; no worker 100,000 to 66,667 $27.00 to $42.00 (worst class $72.00) -646.5% -646.5% model over library counts (L3)

    The engaged daily public reader and the retained public library gain most, because their views stay in the page or ride a replica kept across lifetimes. The short read lifetime gains little, since five views barely repay a bootstrap. The read/write workspace is held back by its writes, which reach the origin on every path. The ungated two-view lifetime loses under every engine class: three requests for two views, a multiplier of 0.67 with a worker. Bytes follow the same order and also depend on page size. The boot script is 75,872 B, the ring adds 3,036 B to each network document, and one stub fetch is 138,567 B, which a stub repays only after 8.1 held views of a 17,054 B document (L2 over L1). A tiny page, or a client with few views per lease, loses bytes whatever it saves in requests.

    case bytes, no spool bytes, spool net saving multiplier label provenance
    121 views, median document, one stub fetch 2,063,534 274,709 86.7% 7.51x L2 model over library counts (L3)
    one view a day for 5 days, median document, stub in full each held day 85,270 592,023 -594.3% 0.14x L2 model over library counts (L3)
    one view a day for 5 days, median document, stub revalidated with a 304 after the first 85,270 315,227 -269.7% 0.27x L2; the 169 B 304 is L1 at a 2 s lease in Chromium and Firefox, not at 25 h model over library counts (L3)
    case best saving best multiplier label where the saving disappears or reverses provenance
    Signed-in reader on defaults, 4 days -185.7% 0.35x L1 counts, L2 ratio; Chromium; memory sink Day 0 carries the bootstrap; days 1 to 3 cost 4, 4 and 4 requests against 1 each on the baseline; not what a default install produces: needs principalDatasets: true, the identity option and a principal route; behind spoolProxy, a public route sends a request with a cookie outside the allowlist or an Authorization header to the origin, and a principal route needs identity library 1.0.0, measured
    Read/write workspace, 10% writes 85.0% 6.67x L3 scenario; no reading of a visitor writing through the worker exists Writes reach the origin on every path, so they cap the saving at the writes share model over library counts (L3)
    Ungated two-view lifetime -50.0% 0.67x L3 scenario Bootstrap costs more than the one view it serves; the saving is a loss under every engine class model over library counts (L3)
    One view a day on a 127 B page, 5 days 0.0% 1.00x L1 counts, L2 ratio; Chromium; before the stub validator Spool sent 5 requests against 5, one per day; no stub or boot script was fetched (the bytes are in the measured readings) library 1.0.0 page runtime, no worker
    WebKit with workerMode: 'always' 93.5% 0.4x to 15.38x L3; WebKit sent a script check on every navigation (L1) The script check is one request per navigation, so a workload whose views are all documents gains nothing; the WebKit default avoids the check by registering no worker model over library counts (L3)

    The one-view-a-day row is a tie on the final tree: 5 requests with spool against 5, and no stub is fetched on the five days (L1). The local-only reader in the same reading made 10 requests against 9. The byte comparison on the 127 B demo page is under Impact, since a document that small is smaller than the inline gate and ring.

    The signed-in rows are not what a default install produces. They need principalDatasets: true, the identity option and a principal route. Behind spoolProxy, a public route sends a request with a cookie outside the allowlist or an Authorization header to the origin, and a principal route needs identity (src/proxy/eligible.ts, src/proxy/proxy.ts).

    A principal route's retention defaults to 'persistent': a non-extractable key in IndexedDB that survives a worker restart and a browser restart and is deleted at logout. A signed-in reader on that default pays the bootstrap on day 0 with 6 to 8 requests across three repeat runs of the same code (L1, measurements/demand/2026-11-20-days-ship-c.json, -ship-d.json and -ship-e.json). The swing is an install race. The page registers the worker after its second view loads, the worker needs about 2 to 4 s to take control, and a view that starts first reaches the origin without it, so the bootstrap waits for the next navigation. When the harness waits for control after each view, day 0 costs 8 requests in five of five runs, the four-day total is 20, and the held days still cost 4 requests (L1, measurements/demand/2026-11-20-days-engage-a.json to -engage-e.json; the waits ran 2.0 to 4.4 s). Each held day after that costs 4 requests and 288 B: a beacon (0 B), the sync request (80 B), the dataset request (208 B) and a stub check. Day 1 cost 288 B in ship-c and ship-d and 3,234 B in ship-e (L1). The baseline spends 1 request and 117 B a day. Over four days the reader makes 18 to 20 requests against 7 while the session stays valid, across the three runs, and 18 when the session ends on the server after day 2 (one run). On that day the principal page comes from the origin, and no held page is served locally (L1). A held principal page past its dataset's maxStaleMs syncs before it answers, and it shows only when the sync and the dataset both succeed (protocol.md).

    Known limit, not a measured claim: a signed-in held day makes four separate requests, a beacon when a sink exists, the sync, the dataset request and the stub check, where the baseline makes one. The library does not merge them into one request. Merging the contact (beacon, sync, dataset and renewal) is the work that would remove this loss, and it is not done in 1.0.

    With retention: 'session', the opt-in for a shared or kiosk device, the same reader makes 19 to 22 requests against 7 over four days while the session stays valid (ship-b, ship-d and ship-e), and 21 when the session ends on the server after day 2 (all three runs agree). With the harness waiting for control after each view, the session reader makes 22 requests over four days in five of five runs (L1, -engage-a.json to -engage-e.json). On days 2 and 3 each run sends 5 requests and 3,225 B, with the principal document of 2,813 B fetched from the origin (L1, measurements/demand/2026-11-20-days-ship-b.json, -ship-d.json and -ship-e.json). A once-a-day signed-in reader still pays 4 requests against the baseline's 1, and a held day wins on bytes only where the page document is larger than the 288 B the held day sends (L2). The settings that govern these costs are the route's retention, the dataset's maxStaleMs, the route's freshness.maxStale, and the views option, which defaults to on only with a sink (L3, not measured without a sink). A tab held open all day and a population of clients are the two ends the documents carry: the first is a bound over a floor of one request and never a count, and the second is a review construction, not shipped. The 60,000-view tab does not say what a deployed site reaches.

    The rows in this section do not come from the shipped package. Each one counts a review construction, a hand-written server and client kept outside the library, or states a bound that no reading prints. The library does not implement the miss-triggered pack or the inlined client, so the figures here are not what @drupflare/spool produces. Each row keeps its figure and layer, and its last column gives its provenance.

    case best saving best multiplier label where the saving disappears or reverses provenance
    Origin requests, request law no finite ceiling no finite value L2 a bound over a floor of one request per client (Q >= 1 + W + F), never a count bound, no count
    A tab held open all day, 60,000 in-page views 99.945% to 99.953% 1,818x to 2,143x L3 workload over an L2 floor of one request; never a measured count A client that opens a new document each time pays the document, so the saving falls to the daily rows review construction, not shipped
    A population of 40 clients with mixed visits 56.8% 2.31x L3 workload, review construction, Chromium Fewer views per client; a client with one view costs the baseline review construction, not shipped
    Durable Object requests not a saving not a saving L2 over L0 Spool without the live stream uses none; the stream adds one request per stream open and one per bump or revoke bound, no count

    The Worker meter figures differ only in whether the stub and the boot script are served as static assets. Static asset requests are not Worker invocations. A stub on the Worker adds one invocation each time the browser fetches it. In the 121-view reading the same visits are five origin requests with the stub on the Worker and three Worker-invocation equivalents with the stub and boot script on a static tier (L2 over L1). These figures assume a static tier: the Worker-invocation equivalent rows in the first table, the static-tier columns of the Free-plan and paid-plan tables below, and the best-class requests in the workload table, which count the bootstrap once and leave out later stub re-checks. The origin-request rows and the WebKit always rows put the stub on the Worker. The static-tier columns assume a stub stamped and republished each lease period; an unstamped stub leaves the contact to the page.

    The stub carries a strong ETag when the site serves it with spool.stub(request). Chromium 156 and Firefox 157 re-check with If-None-Match and get a 304 with no body, 169 B of status line and headers counted from the response object, instead of the full script. WebKit 27.2 sent no validator and took the full script (L1, Mac, a 2 s lease, 3 of 3 runs per engine). The stub GET in the local-only reading is 138,567 B (L1). Later stub requests on held days are counted at 0 B in the same readings. No reading holds a 304 at a 25 hour lease, so the revalidated byte rows are L2 on that scope.

    A held view sends no document request. The document is the only thing counted on the origin side. Static assets stay in the browser's HTTP cache, so they are not counted. API calls and third-party requests still leave during a local view, and the figures leave them out. CPU time and energy are not on this page; docs/impact.md covers them.

    Prices and limits were read on 2026-11-18. Prices are third-party list prices before any free allowance.

    input value unit layer source
    Repeat-view document, median 17,054 B L1 median repeat-view document request over every measurements/repeat-nav reading (Playwright + CDP, n=1 per site per reading)
    First-view document, median over the corpus pages 39,240 B L1 measurements/rapl/2026-11-16-first-view.json: classBytes.document over 52 pages
    Bootstrap requests after the first document, with a worker (k) 2 requests L3 design: the stub and one pack after the first document; the 2026-11-20 demand reading shows the same two non-document requests (boot script and stub) for Chromium and Firefox at 121 views
    Bootstrap requests after the first document, without a worker (k) 1 requests L3 design: one pack after the first document; no reading under measurements/ fixes it yet
    WebKit macOS script check per document navigation 1 requests L1 WebKit on macOS, Playwright, 1.5 s between navigations: /sw.js reached the origin on 6 of 6 document navigations and 3 of 3 new tabs
    WebKit macOS navigations per lifetime (e): Short read lifetime 5 navigations per lifetime L3 scenario: each of the five views is a document, since a short visit has no in-page views
    WebKit macOS navigations per lifetime (e): Engaged daily public reader 5 navigations per lifetime L3 scenario: five of the 100 views start a document (new visit, reload or new tab); the rest are in-page
    WebKit macOS navigations per lifetime (e): Retained public library 5 navigations per lifetime L3 scenario: five of the 100 views per lifetime start a document; the rest are in-page
    WebKit macOS navigations per lifetime (e): Read/write workspace 10 navigations per lifetime L3 scenario: ten of the 100 views per lifetime start a document, twice the reader share, for reloads and new tabs
    WebKit macOS navigations per lifetime (e): Ungated two-view lifetime 2 navigations per lifetime L3 scenario: both views are documents, since a two-view lifetime has no in-page view
    Free plan Worker requests 100,000 requests/day L0 developers.cloudflare.com/workers/platform/pricing (web page read 2026-11-18): "100,000 per day" on the Free plan
    Paid plan included requests 10,000,000 requests/month L0 developers.cloudflare.com/workers/platform/pricing (web page read 2026-11-18): "10 million included per month"
    Paid plan price per additional million $0.30 USD/million requests L0 developers.cloudflare.com/workers/platform/pricing (web page read 2026-11-18): "$0.30 per additional million"
    Azure internet egress, next 10 TB a month $0.087 USD/GB L0 azure.microsoft.com/en-us/pricing/details/bandwidth (web page read 2026-11-18): "From North America, Europe to any destination", next 10 TB a month $0.087 per GB
    Azure free allowance 100 GB/month L0 azure.microsoft.com/en-us/pricing/details/bandwidth (web page read 2026-11-18): first 100 GB a month free
    Google Cloud egress, 1 GiB to 1,024 GiB a month $0.12 USD/GiB L0 cloud.google.com/vpc/network-pricing (web page read 2026-11-18): "Network (data transfer out) TO North America (per GiB in USD)", 1 gibibyte to 1,024 gibibyte $0.12 per gibibyte
    Google Cloud free allowance 1 GiB/month L0 cloud.google.com/vpc/network-pricing (web page read 2026-11-18): 0 gibibyte to 1 gibibyte $0.00 (Free)

    The first-view document is the median document a first view moves: 39,240 B over 52 corpus pages. A held view never moves it, so the outputs below use the repeat-view document only.

    The five workloads are scenarios (L3). Each row sets how often a replica syncs, updates and bootstraps, and how often a read view writes or contacts the origin. The WebKit macOS navigations (e) count the document navigations on that engine per lifetime, and each one costs a script request. Each workload has its own e, stated in the inputs table above with its rationale. The request law turns those rates into requests per read view.

    The Worker invocation tables split readers into two cohorts (L3). In Chromium, Firefox and Linux WebKit, a document navigation under a running worker costs no request. In WebKit on macOS under workerMode: 'always', each document navigation costs one script request, so a stub on the Worker pays for it. Under the default workerMode: 'auto' WebKit registers no worker and takes the no-worker column of the workloads table; the WebKit macOS columns describe 'always'. A client with no worker pays one origin request for each document navigation after the first (L1, the WebKit never arm), so the no-worker column adds those navigations to its bootstrap. Each cohort shows the stub on the Worker and the stub on a static tier. The static-tier columns assume a stub stamped and republished each lease period, so every forced check installs and no Worker invocation follows. A Worker-served stub instead costs one invocation per client per active day, and an unstamped stub leaves the contact to the page.

    A Worker-served stub is still one invocation at each re-check after the lease, whether it answers 200 or 304. What changes is the bytes. With spool.stub(request) and an unchanged script, Chromium 156 and Firefox 157 sent If-None-Match and got a 304 with no body and 169 B of status line and spool headers (counted from the response object, so Node's Date and Connection are extra), in 3 of 3 runs each, once from registration.update() and once from a navigation (L1, Mac, 2 s lease so the lease expired without a faked clock). Before the change every re-check in those engines was the full 137,529 B script (L1, 3 of 3 runs each). WebKit 27.2 sent no validator on either trigger and got the full script every time, with or without the tag (L1, 3 of 3 runs). A changed script is one full response in every engine. The full script is 138,569 to 152,832 B over the five example sites, 45,257 to 46,141 B under gzip level 9 and 39,863 to 40,653 B under Brotli level 11 (L2, computed with node:zlib from L1 bytes; whether a host compresses is the host's choice, and workerResponse and the Node listener set no Content-Encoding).

    workload views per lifetime (v) lifetimes per bootstrap (L) syncs per lifetime (s) updates per lifetime (u) writes per read view (w) contacts per read view (f) WebKit macOS navigations per lifetime (e) Chromium, Firefox and Linux WebKit: requests per read view, spool, with a worker (L2) requests per read view, spool, without a worker (L2) WebKit macOS script checks per read view (L2) WebKit macOS: requests per read view, spool, with a worker (L2) requests per read view, no spool (L2) held share (L2) multiplier (L2)
    Short read lifetime 5 1 0.0 0.0 0.00 0.00 5 0.600 1.200 1.000 1.600 1.0 40.0% 1.67
    Engaged daily public reader 100 1 1.0 0.0 0.00 0.00 5 0.040 0.070 0.050 0.090 1.0 96.0% 25.00
    Retained public library 100 10 1.0 0.2 0.00 0.00 5 0.015 0.063 0.050 0.065 1.0 98.5% 66.67
    Read/write workspace 100 10 1.0 0.2 0.10 0.05 10 0.165 0.263 0.100 0.265 1.1 93.5% 6.67
    Ungated two-view lifetime 2 1 0.0 0.0 0.00 0.00 2 1.500 1.500 1.000 2.500 1.0 0.0% 0.67

    A held read view saves one document request. The bytes it no longer sends are its document, 17,054 B by median, multiplied by the held views. The table prices those bytes at two compute hosts' list prices for internet egress, before each host's free allowance. Google Cloud bills per GiB, so its dollars use binary gigabytes; the GB column is decimal.

    workload read views a month held share (L2) GB a month no longer sent (L2) Azure list price, before allowance (L2) Google Cloud list price, before allowance (L2)
    Short read lifetime 1,000,000 40.0% 6.8 $0.59 $0.76
    Engaged daily public reader 1,000,000 96.0% 16.4 $1.42 $1.83
    Retained public library 1,000,000 98.5% 16.8 $1.46 $1.88
    Read/write workspace 1,000,000 93.5% 15.9 $1.39 $1.78
    Ungated two-view lifetime 1,000,000 0.0% 0.0 $0.00 $0.00
    Short read lifetime 10,000,000 40.0% 68.2 $5.93 $7.62
    Engaged daily public reader 10,000,000 96.0% 163.7 $14.24 $18.30
    Retained public library 10,000,000 98.5% 168.0 $14.61 $18.77
    Read/write workspace 10,000,000 93.5% 159.5 $13.87 $17.82
    Ungated two-view lifetime 10,000,000 0.0% 0.0 $0.00 $0.00
    Short read lifetime 100,000,000 40.0% 682.2 $59.35 $76.24
    Engaged daily public reader 100,000,000 96.0% 1,637.2 $142.44 $182.97
    Retained public library 100,000,000 98.5% 1,679.8 $146.14 $187.73
    Read/write workspace 100,000,000 93.5% 1,594.5 $138.73 $178.20
    Ungated two-view lifetime 100,000,000 0.0% 0.0 $0.00 $0.00

    The Free plan stops at 100,000 Worker requests a day. The table gives the read views a day that limit supports with and without spool. After the first document, a bootstrap sends 2 requests with a worker and 1 without one. A lifetime with few views saves less, and a two-view lifetime costs more under spool than it saves. The last row shows that case. The WebKit macOS columns add the script check from the paid-plan section below.

    workload read views a day, no spool (L2) Chromium, Firefox and Linux WebKit: read views a day, spool, stub on the Worker (L2) Chromium, Firefox and Linux WebKit: read views a day, spool, stub on a static tier (L2) WebKit macOS: read views a day, spool, stub on the Worker (L2) WebKit macOS: read views a day, spool, stub on a static tier (L2) multiplier, stub on a static tier (L2)
    Short read lifetime 100,000 166,667 166,667 62,500 166,667 1.67
    Engaged daily public reader 100,000 2,500,000 2,500,000 1,111,111 2,500,000 25.00
    Retained public library 100,000 6,666,667 6,666,667 1,538,462 6,666,667 66.67
    Read/write workspace 90,909 606,061 606,061 377,358 606,061 6.67
    Ungated two-view lifetime 100,000 66,667 66,667 40,000 66,667 0.67

    The paid plan includes 10,000,000 requests a month, then charges $0.30 for each additional million. Requests to static assets are free and unlimited on the pricing page, so a stub served from a static tier adds no invocation, on the stamped arm described above. A stub on the Worker adds one invocation per WebKit macOS script check, at 1 request per document navigation (L1). The Chromium, Firefox and Linux WebKit columns add none. The WebKit macOS columns add the navigations in each workload's e.

    The first table gives the monthly Worker requests with and without spool. The second gives the part above the included amount and what it costs.

    workload read views a month Worker requests, no spool (L2) Chromium, Firefox and Linux WebKit: Worker requests, spool, stub on the Worker (L2) Chromium, Firefox and Linux WebKit: Worker requests, spool, stub on a static tier (L2) WebKit macOS: Worker requests, spool, stub on the Worker (L2) WebKit macOS: Worker requests, spool, stub on a static tier (L2)
    Short read lifetime 1,000,000 1,000,000 600,000 600,000 1,600,000 600,000
    Engaged daily public reader 1,000,000 1,000,000 40,000 40,000 90,000 40,000
    Retained public library 1,000,000 1,000,000 15,000 15,000 65,000 15,000
    Read/write workspace 1,000,000 1,100,000 165,000 165,000 265,000 165,000
    Ungated two-view lifetime 1,000,000 1,000,000 1,500,000 1,500,000 2,500,000 1,500,000
    Short read lifetime 10,000,000 10,000,000 6,000,000 6,000,000 16,000,000 6,000,000
    Engaged daily public reader 10,000,000 10,000,000 400,000 400,000 900,000 400,000
    Retained public library 10,000,000 10,000,000 150,000 150,000 650,000 150,000
    Read/write workspace 10,000,000 11,000,000 1,650,000 1,650,000 2,650,000 1,650,000
    Ungated two-view lifetime 10,000,000 10,000,000 15,000,000 15,000,000 25,000,000 15,000,000
    Short read lifetime 100,000,000 100,000,000 60,000,000 60,000,000 160,000,000 60,000,000
    Engaged daily public reader 100,000,000 100,000,000 4,000,000 4,000,000 9,000,000 4,000,000
    Retained public library 100,000,000 100,000,000 1,500,000 1,500,000 6,500,000 1,500,000
    Read/write workspace 100,000,000 110,000,000 16,500,000 16,500,000 26,500,000 16,500,000
    Ungated two-view lifetime 100,000,000 100,000,000 150,000,000 150,000,000 250,000,000 150,000,000
    workload read views a month above the included amount, no spool (L2) dollars, no spool (L2) Chromium, Firefox and Linux WebKit, stub on the Worker: above the included amount (L2) Chromium, Firefox and Linux WebKit, stub on the Worker: dollars (L2) Chromium, Firefox and Linux WebKit, stub on a static tier: above the included amount (L2) Chromium, Firefox and Linux WebKit, stub on a static tier: dollars (L2) WebKit macOS, stub on the Worker: above the included amount (L2) WebKit macOS, stub on the Worker: dollars (L2) WebKit macOS, stub on a static tier: above the included amount (L2) WebKit macOS, stub on a static tier: dollars (L2)
    Short read lifetime 1,000,000 0 $0.00 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Engaged daily public reader 1,000,000 0 $0.00 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Retained public library 1,000,000 0 $0.00 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Read/write workspace 1,000,000 0 $0.00 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Ungated two-view lifetime 1,000,000 0 $0.00 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Short read lifetime 10,000,000 0 $0.00 0 $0.00 0 $0.00 6,000,000 $1.80 0 $0.00
    Engaged daily public reader 10,000,000 0 $0.00 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Retained public library 10,000,000 0 $0.00 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Read/write workspace 10,000,000 1,000,000 $0.30 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Ungated two-view lifetime 10,000,000 0 $0.00 5,000,000 $1.50 5,000,000 $1.50 15,000,000 $4.50 5,000,000 $1.50
    Short read lifetime 100,000,000 90,000,000 $27.00 50,000,000 $15.00 50,000,000 $15.00 150,000,000 $45.00 50,000,000 $15.00
    Engaged daily public reader 100,000,000 90,000,000 $27.00 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Retained public library 100,000,000 90,000,000 $27.00 0 $0.00 0 $0.00 0 $0.00 0 $0.00
    Read/write workspace 100,000,000 100,000,000 $30.00 6,500,000 $1.95 6,500,000 $1.95 16,500,000 $4.95 6,500,000 $1.95
    Ungated two-view lifetime 100,000,000 90,000,000 $27.00 140,000,000 $42.00 140,000,000 $42.00 240,000,000 $72.00 140,000,000 $42.00

    A signed-in page renews its lease with a Worker request each time its route's maxStale passes. With the live stream on, a visible page holds one Server-Sent Events request instead, and the server renews the lease inside it. Durable Object rates below were read from the published pricing page on 2026-11-19 (L0): 400,000 GB-s of duration and 1 million requests a month included, then $12.50 per million GB-s and $0.15 per million requests. Duration bills the 128 MB an object holds, in wall-clock time, for as long as the object is active and cannot hibernate. An open SSE response keeps it active. These rows are written by hand and are not generated from src/report.

    Row Figure Layer
    Worker requests in a 2.3 h session at 5 minute lease, renewals 26 L1, review run, Chromium
    Worker requests in the same session with push 2 L1, review run, Chromium
    Durable Object requests for one stream 1 to open, plus 1 for each bump or revoke L2 over L0
    Duration of an object with a stream open all month 0.125 GB x 2,592,000 s = 324,000 GB-s L2 over L0
    That duration against the included 400,000 GB-s inside it, so no duration charge L2 over L0
    Duration of one stream held for an hour, object otherwise idle 0.125 GB x 3,600 s = 450 GB-s, $0.005625 outside the allowance L2 over L0
    Stream bytes an hour at the defaults 60 leases x 39 B + 144 keepalives x 4 B = 2,916 B L2 over frame lengths

    Duration is shared by every stream on the object, so many concurrent streams cost the same wall-clock time as one. The figure that grows with sessions is the Durable Object request count, one per stream opened, and the Worker request for the same open. A local wrangler dev --local run (L1) showed 3 streams, 2 bumps and 1 revoke produce 3 Durable Object fetch calls, 2 publish calls and 1 revoke call, with a revoke reaching the closed streams in 20 to 27 ms. A stream is lost with the page, so a site that navigates by document opens one per document; the saving needs a page that stays open. The local run cannot show billing. Under wrangler dev --local, workerd did not surface a client abort to the object: in two probes (keepalive 2 s, lease 4 s, with and without reader.cancel()), 8 keepalive comments written after the abort all succeeded and no write threw. The object detached the connection about 14 s later through the stall guard, which closes a stream after 8 unread frames (L1, local only). At the defaults, a lease every 60 s and a comment every 25 s write about 4.4 frames a minute, so the same guard would take roughly two minutes (L2 over the frame rates); the hard bound is live.maxAge, 3600 s by default. A silent disconnect therefore keeps the object, and its duration charge when no other stream is open, for about two minutes at the defaults and at most maxAge, which is 450 GB-s at the limit (0.125 GB x 3,600 s, L2 over L0). Whether production workerd surfaces the abort is not known.

    durableObjectHub(namespace, { hibernate: true }) serves the same path over a WebSocket accepted with the Hibernation API. SSE stays the default on every host, because spool.handle serves it on Workers, Node, Express, Hono and the other adapters with no host code. The sockets hold no timer. A page sends ping every 25 seconds and the object's auto-response answers with a lease frame, so an idle object can hibernate. The pricing page says an idle object that can hibernate is not billed for duration, that auto-response messages add no wall-clock time, that incoming messages bill at 20 to 1 and that outgoing messages are free (L0, read 2026-11-19). It does not say whether an auto-response message counts toward the 20 to 1 ratio, so the table carries both bounds. A connect, a publish, a revoke and the one maximum-age alarm each wake the object and bill one request (L0).

    The scenario (L3): one object serves the site, each session holds its stream for 1 hour, there are 1,440 bumps a day (one a minute), a month is 30 days, each session sets one alarm for live.maxAge, and an event keeps a waking object running for 10 ms, the figure the pricing page uses in its own Hibernation example (L0 example, not measured here). The allowances count as unused by any other object. Average open streams are sessions a day times hours over 24. The SSE object is active for 1 - e^-c of the month, where c is the average open streams, which is the idle probability of an M/G/infinity queue under Poisson arrivals (L3).

    Sessions a day Average open streams SSE: object requests SSE: GB-s Hibernation: object requests Hibernation: GB-s Dollars a month, either transport
    5 0.21 43,350 60,933 43,500 to 44,580 54 0.00
    100 4.17 46,200 318,977 49,200 to 70,800 62 0.00
    2,000 83.33 103,200 324,000 163,200 to 595,200 204 0.00

    Layer: L2 over the L0 rates and the L3 scenario. The low request figure treats auto-responses as free, the high one bills them at 20 to 1. Worker requests for each open are the same in both and are left out.

    Hibernation saves no dollars at this scenario. Both transports stay inside the included 1 million requests and 400,000 GB-s. Hibernation cuts the duration from 318,977 to 62 GB-s at 100 sessions a day and from 324,000 to 204 at 2,000 (L2), and at 2,000 sessions it uses up to 5.8 times the requests if pings bill (595,200 against 103,200, L2). An SSE object's duration cannot pass 324,000 GB-s a month however many streams are open, so the most Hibernation can save on one object is that duration at $12.50 per million GB-s, and only when other objects in the account have already used the allowance. The pricing page rounds billable duration up to the next million GB-s, so 324,000 GB-s outside the allowance bills as $12.50 a month (L2 over L0). This closes Hibernation as a cost saver at this scenario. It does not close push at larger scale, and Hibernation stays available as a transport. It also removes the silent-disconnect cost above: an idle object that can hibernate is not billed whether or not its client is alive, so a dropped client holds no duration (L2 over L0, production unmeasured).

    Measured under wrangler dev --local (L1, not the production meter): one Chromium page held a socket for 90 s. It sent 3 pings and got 3 lease frames back. The object's log showed a constructor at the connect and a publish 26 ms later, then nothing for 90 s: no webSocketMessage, no constructor and no alarm. At the revoke the constructor ran again with 1 socket attached, so the object had left memory and kept the socket, and the page received revoked and a clean close with code 1000. A dev-server reload during an earlier run closed sockets with code 1006 and the page connected again 3 s later (L1). Production hibernation and abort behaviour, duration billing, and whether auto-response messages count toward requests are unmeasured.

    • Requests per read view under spool, without the script check, where k is the bootstrap requests after the first document, v the read views per lifetime, L the lifetimes per bootstrap, s the syncs and u the updates per lifetime, and w the writes and f the contacts per read view, is:

      \frac{1 + k}{L \times v} + \frac{s + u}{v} + w + f
      
    • WebKit macOS requests per read view, stub on the Worker, are the Chromium count plus the term below, where rate is the script requests per navigation, e the WebKit macOS document navigations per lifetime and v the read views per lifetime:

      \frac{\text{rate} \times e}{v}
      

      A stub on a static tier adds none.

    • Requests per read view with no worker add the document navigations after the first, where L is the lifetimes per bootstrap, e the document navigations per lifetime and v the read views per lifetime:

      \frac{L \times e - 1}{L \times v}
      
    • Net saving and multiplier against a baseline b of requests, bytes or read views a day, where s is what spool sends or supports, are (a negative saving means spool sends more):

      \frac{b - s}{b} \qquad \frac{b}{s}
      
    • Requests per read view without spool, where w is the writes per read view, is:

      1 + w
      
    • Held share, clamped to 0 through 1, where w is the writes per read view, comes to:

      1 - (\text{requests per read view} - w)
      

      Writes reach the origin either way, so they do not count as held views. A maxDelayMs deadline moves when a queued write leaves the device; its request count is measured only by the REVIEW_2 writes run, so w here still assumes a flush at each moment.

    • Bytes no longer sent a month come to the product below, with the held share from the item above:

      \text{read views a month} \times \text{held share} \times \text{repeat-view document}
      
    • Dollars for bytes, before the host's free allowance, come to the ratio below times the list price, where bytes per unit and list price per unit are the host's own:

      \frac{\text{bytes}}{\text{bytes per unit}} \times \text{list price per unit}
      
    • Read views a day on the Free plan, where the limit is 100,000 Worker requests a day, is:

      \frac{100,000}{\text{requests per read view}}
      
    • Paid dollars, where the paid price is $0.30 for each additional million requests above 10,000,000 a month, is:

      \frac{\text{requests} - 10,000,000}{10^6} \times \text{paid price}