Skip to content

Commit f2ee23f

Browse files
author
PrintableTools Lab Bot
committed
Reduce metrics KV reads
1 parent 5a60ae3 commit f2ee23f

31 files changed

Lines changed: 605 additions & 345 deletions

app.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7904,7 +7904,11 @@ ${paragraphs.join("\n")}
79047904
const totalGenerations = (totals.generate_pdf || 0) + (totals.generate_file || 0);
79057905
const totalGameIntent = (totals.game_play_intent || 0) + (totals.game_fullscreen_open || 0) + (totals.game_embed_open || 0);
79067906
const sponsorInvoiceRequests = data.sponsorInvoiceRequests || totals.sponsor_invoice_request || 0;
7907+
const dataQualityNotice = data.dataQuality && data.dataQuality !== "rollup"
7908+
? `<p class="notice">Metrics are using a protected baseline because live KV reads are currently limited. Treat counts as conservative until the API returns rollup quality again.</p>`
7909+
: "";
79077910
target.innerHTML = `
7911+
${dataQualityNotice}
79087912
<div class="metric-grid ops-summary-grid">
79097913
<div class="metric-tile"><strong>${totals.page_view || 0}</strong><span>all page views</span></div>
79107914
<div class="metric-tile"><strong>${data.todayTotals?.page_view || 0}</strong><span>today views</span></div>
@@ -12461,7 +12465,11 @@ ${paragraphs.join("\n")}
1246112465
const totalDownloads = (data.totals.download_pdf || 0) + (data.totals.download_file || 0);
1246212466
const depthIntent = depthSignal(data.totals || {});
1246312467
const sponsorLeads = data.sponsorLeads || data.totals.sponsor_lead_submit || 0;
12468+
const dataQualityNotice = data.dataQuality && data.dataQuality !== "rollup"
12469+
? `<p class="notice">Live metrics are temporarily using the last verified baseline while KV reads are limited.</p>`
12470+
: "";
1246412471
target.innerHTML = `
12472+
${dataQualityNotice}
1246512473
<div class="metric-grid compact">
1246612474
<div class="metric-tile"><strong>${data.totals.page_view || 0}</strong><span>live page views</span></div>
1246712475
<div class="metric-tile"><strong>${totalGenerations}</strong><span>live generations</span></div>

discovery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "PrintableTools Lab",
33
"url": "https://printable-tools-lab.pages.dev/",
4-
"generatedAt": "2026-06-07T10:52:52.151Z",
4+
"generatedAt": "2026-06-07T19:04:42.246Z",
55
"positioning": "Free no-signup browser PDF, image, and QR tools with local generation, original guides, and responsible ad placement after approval.",
66
"feed": "https://printable-tools-lab.pages.dev/feed.xml",
77
"manifest": "https://printable-tools-lab.pages.dev/site.webmanifest",

docs/game-submission-feed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "HTML5 Game Submission Feed",
3-
"generatedAt": "2026-06-07T10:52:52.244Z",
3+
"generatedAt": "2026-06-07T19:04:42.342Z",
44
"directory": "https://yanqr213.github.io/printable-tools-lab/html5-game-submission-pack/",
55
"mainSubmissionPack": "https://printable-tools-lab.pages.dev/portal-submission-pack/",
66
"purpose": "Public machine-readable feed for HTML5 game portals and reviewers. It lists playable builds, clean ZIPs, SDK packages, demo videos, review reports, and ad-safety notes without private account or payout data.",

docs/games.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "HTML5 Game Submission Feed",
3-
"generatedAt": "2026-06-07T10:52:52.244Z",
3+
"generatedAt": "2026-06-07T19:04:42.342Z",
44
"directory": "https://yanqr213.github.io/printable-tools-lab/html5-game-submission-pack/",
55
"mainSubmissionPack": "https://printable-tools-lab.pages.dev/portal-submission-pack/",
66
"purpose": "Public machine-readable feed for HTML5 game portals and reviewers. It lists playable builds, clean ZIPs, SDK packages, demo videos, review reports, and ad-safety notes without private account or payout data.",

docs/organic-push-kit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PrintableTools Lab Organic Push Kit Mirror",
3-
"generatedAt": "2026-06-07T10:52:52.244Z",
3+
"generatedAt": "2026-06-07T19:04:42.342Z",
44
"directory": "https://yanqr213.github.io/printable-tools-lab/organic-push-kit/",
55
"livePage": "https://printable-tools-lab.pages.dev/organic-push-kit/",
66
"liveJson": "https://printable-tools-lab.pages.dev/organic-push-kit.json",

docs/sponsor-call.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PrintableTools Lab Sponsor Call Mirror",
3-
"generatedAt": "2026-06-07T10:52:52.244Z",
3+
"generatedAt": "2026-06-07T19:04:42.342Z",
44
"directory": "https://yanqr213.github.io/printable-tools-lab/sponsor-call/",
55
"livePage": "https://printable-tools-lab.pages.dev/sponsor-call/",
66
"liveJson": "https://printable-tools-lab.pages.dev/sponsor-call.json",

docs/sponsor-deal-room.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PrintableTools Lab Sponsor Deal Room Mirror",
3-
"generatedAt": "2026-06-07T10:52:52.244Z",
3+
"generatedAt": "2026-06-07T19:04:42.342Z",
44
"directory": "https://yanqr213.github.io/printable-tools-lab/sponsor-deal-room/",
55
"livePage": "https://printable-tools-lab.pages.dev/sponsor-deal-room/",
66
"liveJson": "https://printable-tools-lab.pages.dev/sponsor-deal-room.json",

docs/sponsor-opportunities.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PrintableTools Lab Sponsor Opportunities Mirror",
3-
"generatedAt": "2026-06-07T10:52:52.244Z",
3+
"generatedAt": "2026-06-07T19:04:42.342Z",
44
"directory": "https://yanqr213.github.io/printable-tools-lab/sponsor-opportunities/",
55
"livePage": "https://printable-tools-lab.pages.dev/sponsor-opportunities/",
66
"liveJson": "https://printable-tools-lab.pages.dev/sponsor-opportunities.json",

docs/tools.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"finder": "https://printable-tools-lab.pages.dev/pdf-tool-finder/",
66
"feed": "https://printable-tools-lab.pages.dev/feed.xml",
77
"githubPagesDirectory": "https://yanqr213.github.io/printable-tools-lab/",
8-
"generatedAt": "2026-06-07T10:52:52.244Z",
8+
"generatedAt": "2026-06-07T19:04:42.342Z",
99
"landingPages": [
1010
{
1111
"title": "Free Upload Limit Fixer",
@@ -1559,7 +1559,7 @@
15591559
},
15601560
"organicPushKit": {
15611561
"name": "PrintableTools Lab Organic Push Kit Mirror",
1562-
"generatedAt": "2026-06-07T10:52:52.244Z",
1562+
"generatedAt": "2026-06-07T19:04:42.342Z",
15631563
"directory": "https://yanqr213.github.io/printable-tools-lab/organic-push-kit/",
15641564
"livePage": "https://printable-tools-lab.pages.dev/organic-push-kit/",
15651565
"liveJson": "https://printable-tools-lab.pages.dev/organic-push-kit.json",
@@ -1656,7 +1656,7 @@
16561656
},
16571657
"uploadErrorCheatsheet": {
16581658
"name": "PrintableTools Lab Upload Error Cheatsheet Mirror",
1659-
"generatedAt": "2026-06-07T10:52:52.244Z",
1659+
"generatedAt": "2026-06-07T19:04:42.342Z",
16601660
"directory": "https://yanqr213.github.io/printable-tools-lab/upload-error-cheatsheet/",
16611661
"livePage": "https://printable-tools-lab.pages.dev/upload-error-cheatsheet/",
16621662
"liveJson": "https://printable-tools-lab.pages.dev/upload-error-cheatsheet.json",
@@ -1803,7 +1803,7 @@
18031803
},
18041804
"sponsorDealRoom": {
18051805
"name": "PrintableTools Lab Sponsor Deal Room Mirror",
1806-
"generatedAt": "2026-06-07T10:52:52.244Z",
1806+
"generatedAt": "2026-06-07T19:04:42.342Z",
18071807
"directory": "https://yanqr213.github.io/printable-tools-lab/sponsor-deal-room/",
18081808
"livePage": "https://printable-tools-lab.pages.dev/sponsor-deal-room/",
18091809
"liveJson": "https://printable-tools-lab.pages.dev/sponsor-deal-room.json",
@@ -1907,7 +1907,7 @@
19071907
},
19081908
"sponsorCall": {
19091909
"name": "PrintableTools Lab Sponsor Call Mirror",
1910-
"generatedAt": "2026-06-07T10:52:52.244Z",
1910+
"generatedAt": "2026-06-07T19:04:42.342Z",
19111911
"directory": "https://yanqr213.github.io/printable-tools-lab/sponsor-call/",
19121912
"livePage": "https://printable-tools-lab.pages.dev/sponsor-call/",
19131913
"liveJson": "https://printable-tools-lab.pages.dev/sponsor-call.json",
@@ -2016,7 +2016,7 @@
20162016
},
20172017
"sponsorOpportunities": {
20182018
"name": "PrintableTools Lab Sponsor Opportunities Mirror",
2019-
"generatedAt": "2026-06-07T10:52:52.244Z",
2019+
"generatedAt": "2026-06-07T19:04:42.342Z",
20202020
"directory": "https://yanqr213.github.io/printable-tools-lab/sponsor-opportunities/",
20212021
"livePage": "https://printable-tools-lab.pages.dev/sponsor-opportunities/",
20222022
"liveJson": "https://printable-tools-lab.pages.dev/sponsor-opportunities.json",

docs/upload-error-cheatsheet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PrintableTools Lab Upload Error Cheatsheet Mirror",
3-
"generatedAt": "2026-06-07T10:52:52.244Z",
3+
"generatedAt": "2026-06-07T19:04:42.342Z",
44
"directory": "https://yanqr213.github.io/printable-tools-lab/upload-error-cheatsheet/",
55
"livePage": "https://printable-tools-lab.pages.dev/upload-error-cheatsheet/",
66
"liveJson": "https://printable-tools-lab.pages.dev/upload-error-cheatsheet.json",

0 commit comments

Comments
 (0)