@subvalue/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/PRE_RELEASE.md +51 -0
- package/PRIVACY.md +45 -0
- package/README.md +119 -0
- package/dist/PRICING.md +46 -0
- package/dist/cli.js +2 -0
- package/dist/packages/cli/src/index.js +24 -0
- package/dist/packages/cli/src/runtime.js +22 -0
- package/dist/packages/cli/src/server.js +75 -0
- package/dist/packages/core/src/demo.js +10 -0
- package/dist/packages/core/src/metadata.js +14 -0
- package/dist/packages/core/src/pricing/current.js +326 -0
- package/dist/packages/core/src/pricing/index.js +84 -0
- package/dist/packages/core/src/providers/claude/index.js +24 -0
- package/dist/packages/core/src/providers/codex/index.js +51 -0
- package/dist/packages/core/src/scanner.js +48 -0
- package/dist/packages/core/src/security.js +41 -0
- package/dist/packages/core/src/storage.js +63 -0
- package/dist/packages/core/src/subscriptions.js +22 -0
- package/dist/packages/core/src/summary.js +55 -0
- package/dist/packages/core/src/types.js +29 -0
- package/dist/packages/receipt/src/index.js +90 -0
- package/dist/packages/ui/src/brand.js +5 -0
- package/dist/public/app.css +65 -0
- package/dist/public/app.js +1 -0
- package/dist/public/apps/web/src/landing.js +10 -0
- package/dist/public/apps/web/src/main.js +47 -0
- package/dist/public/brands/SOURCES.txt +14 -0
- package/dist/public/brands/anthropic-symbol-ivory.svg +4 -0
- package/dist/public/brands/claude-code-clawd.svg +3 -0
- package/dist/public/brands/claude-code-ivory.svg +28 -0
- package/dist/public/brands/codex-outline.svg +5 -0
- package/dist/public/brands/openai-blossom-white.svg +15 -0
- package/dist/public/favicon.svg +1 -0
- package/dist/public/fonts/Inter-LICENSE.txt +93 -0
- package/dist/public/fonts/Plex-LICENSE.txt +93 -0
- package/dist/public/fonts/inter-latin.woff2 +0 -0
- package/dist/public/fonts/plex-mono.woff2 +0 -0
- package/dist/public/icon.svg +1 -0
- package/dist/public/index.html +1 -0
- package/dist/public/landing.css +82 -0
- package/dist/public/landing.html +1 -0
- package/dist/public/landing.js +1 -0
- package/dist/public/logo/app-icon.svg +1 -0
- package/dist/public/logo/mark-green.svg +1 -0
- package/dist/public/logo/mark-monochrome.svg +1 -0
- package/dist/public/logo/mark-white.svg +1 -0
- package/dist/public/packages/core/src/subscriptions.js +22 -0
- package/dist/public/packages/receipt/src/index.js +90 -0
- package/dist/public/packages/ui/src/brand.js +5 -0
- package/dist/public/privacy.txt +45 -0
- package/package.json +7 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 8192 2000">
|
|
3
|
+
<!-- Generator: Adobe Illustrator 30.1.0, SVG Export Plug-In . SVG Version: 2.1.1 Build 136) -->
|
|
4
|
+
<defs>
|
|
5
|
+
<style>
|
|
6
|
+
.st0 {
|
|
7
|
+
fill: #d97757;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.st1 {
|
|
11
|
+
fill: #faf9f5;
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
14
|
+
</defs>
|
|
15
|
+
<g>
|
|
16
|
+
<path class="st1" d="M8147.2,1198.2c-25.6,44.6-53.9,77.1-85,97.4-31.2,20.3-68.5,30.4-112,30.4s-71.5-10-100.8-29.8c-28.9-19.9-51.5-47.9-67.6-83.9-7.6-17.4-13.4-36.1-17.3-56.1l403.5-126.9c-8.3-39.8-24-74.5-47.3-104.1-23.3-29.7-52.2-52.5-86.7-68.7-34.2-16.5-71.9-24.8-113.2-24.8s-104.4,13.5-148.6,40.5c-44.3,26.6-79,63.6-104.1,110.9-25.2,46.9-37.7,99.5-37.7,157.6s12.2,107,36.6,152c24.8,44.6,58.9,79.8,102.5,105.3,43.5,25.2,92.7,37.7,147.5,37.7s88.4-9.2,126.7-27.6c38.6-18.4,70.7-44.5,96.3-78.2,25.5-33.8,42.6-73,51.2-117.7l-43.9-14.1ZM7774.5,984.2c11.3-30,27-53.1,47.3-69.2,20.3-16.5,43.9-24.8,70.9-24.8s43.9,6.2,63.1,18.6c19.5,12.4,35.6,29.7,48.4,51.8,8.8,15.3,15.4,32.1,19.7,50.4l-265.6,86.8c0-3.3-.1-6.6-.1-10,0-39.4,5.4-73.9,16.3-103.6Z"/>
|
|
17
|
+
<path class="st1" d="M7513.1,1301.7c-5.2-7.9-7.9-18.4-7.9-31.5v-703.7h-44.5l-176.8,65.9v38.3l87.3,32.5v154.2c-4.2-1.7-8.6-3.3-12.9-4.9-37.5-13.9-76.2-20.8-116-20.8-64.5,0-121.9,13.9-172.3,41.7-49.9,27.4-88.9,66.4-117.1,117.1-27.8,50.7-41.7,109.2-41.7,175.6s11.5,97,34.3,137.9c23.3,40.5,55.2,72.2,95.7,95.1s85.8,34.3,135.7,34.3,66.8-6.8,99.1-20.3c32.7-13.5,62.7-32.8,90.1-58,1.7-1.5,3.4-3.1,5.1-4.7v77.3h45l176.8-47.3v-48.4c-22.5-3-40.1-6.8-52.9-11.3-12.4-4.9-21.4-11.3-27-19.1h0ZM7302,1328.8c-24.4,9.4-47.6,14.1-69.8,14.1-37.2,0-69.4-8.3-96.8-24.8-27-16.9-47.9-41.1-62.5-72.6-14.6-31.9-22-70.2-22-114.8s8.1-89.7,24.2-125c16.6-35.3,39.8-62.3,69.8-81.1,30.4-19.1,65.7-28.7,105.8-28.7s66.4,9,94.6,27c8.4,5.2,17.1,11.5,25.9,18.9v348.1c-21.7,16.5-44.8,29.4-69.2,38.8Z"/>
|
|
18
|
+
<path class="st1" d="M6703.9,868.8c-45.4-24.8-96.8-37.2-154.2-37.2s-108.1,14.1-155.4,42.2c-47.3,27.8-84.8,65.7-112.6,113.7-27.4,47.7-41.1,99.8-41.1,156.5s12.8,105.3,38.3,149.2c25.9,43.9,61.6,78.2,107,103,45.8,24.8,97.4,37.2,154.8,37.2s108.1-13.9,155.4-41.7c47.3-28.1,84.7-66,112-113.7,27.8-48,41.7-100.4,41.7-157.1s-12.9-104.7-38.8-148.6c-25.5-44.3-61.1-78.8-107-103.6ZM6691.5,1270.8c-12.4,33.8-30.4,59.7-54,77.7-23.6,17.6-51.6,26.5-83.9,26.5s-62.8-11.1-89.5-33.2c-26.2-22.1-46.9-52.7-61.9-91.8-15-39.4-22.5-84-22.5-134s6.2-87.3,18.6-121c12.8-33.8,30.8-59.5,54-77.1,23.6-18,51.6-27,83.9-27s63.8,11.1,90.1,33.2c26.7,21.8,47.3,52.4,61.9,91.8,15,39.4,22.5,84,22.5,134s-6.4,87.3-19.1,121Z"/>
|
|
19
|
+
<path class="st1" d="M6059.2,1280.9c-24.8,31.5-52.9,54.6-84.4,69.2-31.1,14.6-67.3,22-108.6,22-64.2,0-120.2-15.4-168.3-46.2-48-30.8-85.2-74.7-111.5-131.7s-39.4-123.7-39.4-199.8,11.8-143.9,35.5-198.7c24-54.8,58.8-96.4,104.1-125,45.8-28.5,101-42.8,165.5-42.8s91.2,6.9,125,20.8c34.2,13.5,61.6,34.5,82.2,63.1,21.1,28.5,36.6,65.3,46.7,110.3h50.7v-185.2c-37.2-22.1-82.4-39.4-135.7-51.8-52.9-12.4-108.4-18.6-166.6-18.6-89.7,0-169.6,19.1-239.8,57.4-70.2,37.9-125,91-164.4,159.3-39.4,67.9-59.1,145.2-59.1,231.9s19.1,154.4,57.4,217.9c38.3,63.1,91.9,112.2,161,147.5s147.9,52.9,236.4,52.9,112.8-6.6,166.1-19.7c53.3-13.5,98.3-31.9,135.1-55.2l36-203.2h-52.9c-22.1,52.2-45.8,94-70.9,125.5Z"/>
|
|
20
|
+
<path class="st1" d="M2024.2,1271.3c-22.5,31.1-50.3,55.7-83.3,73.7-32.7,18-71.9,27-117.7,27-67.6,0-125.4-16.5-173.4-49.5s-84.3-78.1-108.6-135.1-36.6-121.4-36.6-193.1,10.9-136.6,32.7-191.4c21.8-55.2,55.3-98.1,100.8-128.9s102.5-46.2,171.1-46.2,128.2,15.4,169.4,46.2c41.7,30.8,69.6,80.1,83.9,148.1h50.7v-185.2c-40.5-24-87.7-41.7-141.3-52.9-53.3-11.7-106.8-17.5-160.4-17.5-89.3,0-169.1,19-239.3,56.9-70.2,37.5-125.1,90.2-164.9,158.2-39.4,67.9-59.1,145.6-59.1,233.1s19.3,155,58,218.4,92.3,112.8,161,148.1c69.1,34.9,147.7,52.4,235.9,52.4s107.5-6.2,161.6-18.6,100.6-31.1,139.6-56.3l36-203.2h-52.9c-19.5,45.8-40.5,84.4-63.1,116Z"/>
|
|
21
|
+
<path class="st1" d="M2420.5,1345.1c-5.6-7.5-8.4-17.1-8.4-28.7v-749.8h-45l-176.8,65.9v37.7l87.8,33.2v613c0,11.7-2.8,21.2-8.4,28.7s-14.8,13.5-27.6,18c-12.4,4.1-29.7,7.5-51.8,10.1v49h309.6v-49c-22.1-2.6-39.6-6-52.4-10.1-12.4-4.5-21.4-10.5-27-18Z"/>
|
|
22
|
+
<path class="st1" d="M3749.1,1301.7c-5.2-7.9-7.9-18.4-7.9-31.5v-438.5h-44.5l-177.3,62.5v37.7l87.8,31v311.3c-24,19.1-49.9,34.2-77.7,45-27.4,10.9-53.1,16.3-77.1,16.3-37.5,0-65.3-8.6-83.3-25.9s-27-43.7-27-79.4v-398.6h-44.5l-177.3,62.5v37.7l87.8,31v290.5c0,58.9,15.6,103.8,46.7,134.5,31.1,30.4,76.7,45.6,136.8,45.6s72.1-9.4,110.3-28.1c38.7-18.7,73.7-44.5,105.3-77.1v99.6h44.5l177.3-47.3v-49c-22.9-3-40.5-6.8-52.9-11.3s-21.4-10.7-27-18.6Z"/>
|
|
23
|
+
<path class="st1" d="M5023.6,1289.9c-32.7,19.5-69.6,29.3-110.9,29.3s-90.6-13.9-124.4-41.7c-33.4-28.1-55.7-67-67-116.5l408.7-123.8c-7.9-40.1-24-75.8-48.4-107-24-31.1-53.9-55.3-89.5-72.6s-74.1-25.9-115.4-25.9-104,13.5-148.6,40.5c-44.3,27-79.2,64-104.7,110.9-25.5,46.9-38.3,98.9-38.3,155.9s12.4,107,37.2,152c25.2,44.6,59.8,79.5,104.1,104.7s94,37.7,149.2,37.7,87.3-9,125.5-27,70.5-43.5,96.8-76.6c26.6-33.4,45.2-72.2,55.7-116.5l-43.3-13.5c-25.2,40.1-54,70.2-86.7,90.1ZM4713.4,1089.5c0-38.7,6-72.6,18-101.9,12-29.7,28.7-52.5,50.1-68.7s45.8-24.2,73.2-24.2,41.5,5.2,59.1,15.8c17.6,10.1,32.3,24.8,43.9,43.9,12,18.7,20.7,40.7,25.9,65.9l-269.7,84.4c-.4-3.8-.6-8.8-.6-15.2Z"/>
|
|
24
|
+
<path class="st1" d="M4467.9,1301.7c-5.2-7.9-7.9-18.4-7.9-31.5v-703.7h-45l-176.8,65.9v37.7l87.8,33.2v154.2c-19.9-8.3-41.1-14.6-63.6-19.1-22.1-4.5-43.9-6.8-65.3-6.8-65.7,0-123.5,13.9-173.4,41.7s-88.8,67-116.5,117.7c-27.4,50.7-41.1,109-41.1,175.1s11.4,96.4,34.3,137.4c22.9,40.5,54.4,72.5,94.6,95.7,40.5,22.9,86.1,34.3,136.8,34.3s68.5-7.1,101.9-21.4,64.2-34.7,92.3-61.4v77.1h44.5l177.3-47.3v-49c-22.9-3-40.5-6.8-52.9-11.3s-21.4-10.7-27-18.6ZM4326.1,1289.4c-21.4,16.5-44.3,29.7-68.7,39.4-24.4,9.4-47.9,14.1-70.4,14.1-39.4,0-72.8-8.8-100.2-26.5-27-18-47.3-43-60.8-74.9s-20.3-69.1-20.3-111.5,7.5-84.6,22.5-119.9c15.4-35.3,38.1-63.1,68.1-83.3s66.4-30.4,109.2-30.4,83.7,15,120.5,45v347.9Z"/>
|
|
25
|
+
<path class="st1" d="M3049.9,1335.5c-5.2-7.9-7.9-18.4-7.9-31.5v-267.4c0-43.5-9.6-80.7-28.7-111.5s-47.1-54-83.9-69.8-81.5-23.6-134-23.6-80.7,6.6-116,19.7-63.2,31-83.9,53.5c-20.7,22.1-31,46.6-31,73.2s2.8,25.9,8.4,37.2c6,10.9,14.5,19.7,25.3,26.5h91.2v-50.7c0-34.2,9.4-61.2,28.1-81.1,19.1-19.9,45-29.8,77.7-29.8s65.1,10.3,83.9,31c19.1,20.7,28.7,51.1,28.7,91.2v61.4l-204.3,58c-55.2,15.8-96.1,37.3-122.7,64.7-26.3,27-39.4,61.4-39.4,103s6.8,53.6,20.3,75.4c13.9,21.8,33.2,38.7,58,50.7s53.3,18,85.6,18,77.3-8.4,111.5-25.3c34.2-17.3,64.9-42.8,92.3-76.6,4.1,32.3,17.1,57,38.8,74.3,22.1,17.3,51.4,25.9,87.8,25.9s61.4-5.8,94-17.5v-49c-22.5-2.6-40.1-6.2-52.9-10.7-12.4-4.9-21.4-11.3-27-19.1ZM2908,1278.1c-19.5,20.7-41.3,36.8-65.3,48.4-23.6,11.3-47.5,16.9-71.5,16.9s-35.6-3.5-50.7-10.7c-14.6-7.1-26.1-17.1-34.3-29.8s-12.4-27.4-12.4-43.9c0-24,6.9-44.3,20.8-60.8,13.9-16.9,33.9-29.3,60.2-37.2l153.1-45.6v162.7Z"/>
|
|
26
|
+
</g>
|
|
27
|
+
<path class="st0" d="M489.8,1506.7l15.8-69.8,18-90.1,14.6-72.1,13.5-88.9,7.9-29.3-1.1-2.3-5.6,1.1-67.6,92.3-102.5,138.5-81.1,85.6-19.1,7.9-33.8-16.9,3.4-31.5,19.1-27,111.5-143,67.6-88.9,43.9-50.7-1.1-6.8h-2.3l-297.2,193.7-52.9,6.8-23.6-21.4,3.4-34.9,11.3-11.3,88.9-61.9,221.8-123.8,3.4-11.3-3.4-5.6h-11.3l-37.2-2.3-126.1-3.4-109.2-4.5-107-5.6-27-5.6L0,989.9l2.3-16.9,22.5-14.6,32.7,2.3,70.9,5.6,107,6.8,77.7,4.5,114.8,12.4h18l2.3-7.9-5.6-4.5-4.5-4.5-111.5-74.3-119.3-78.8-63.1-46.2-33.8-23.6-16.9-21.4-6.8-47.3,30.4-33.8,41.7,3.4,10.1,2.3,41.7,32.7,88.9,68.7,117.1,86.7,16.9,13.5,7.9-4.5v-3.4l-7.9-12.4-63.1-114.8-67.6-117.1-30.4-48.4-7.9-29.3c-3-10.1-4.5-21.4-4.5-33.8l34.9-47.3,19.1-6.8,47.3,6.8,19.1,16.9,29.3,66.4,46.2,104.7,73.2,141.9,21.4,42.8,11.3,38.3,4.5,12.4h7.9v-6.8l5.6-81.1,11.3-98,11.3-126.1,3.4-36,18-42.8,34.9-22.5,27,12.4,22.5,32.7-3.4,20.3-12.4,86.7-27,136.2-16.9,92.3h10.1l11.3-12.4,46.2-60.8,77.7-96.8,33.8-38.3,40.5-42.8,25.9-20.3h48.4l34.9,52.9-15.8,55.2-49.5,63.1-41.7,52.9-59.7,79.9-36,64.2,3.4,4.5h7.9l134-29.3,73.2-12.4,85.6-14.6,39.4,18,4.5,18-15.8,38.3-92.3,22.5-108.1,21.4-161,38.3-2.3,1.1,2.3,3.4,72.1,6.8,31.5,2.3h76.6l141.9,10.1,37.2,24.8,21.4,29.3-3.4,23.6-57.4,28.1-76.6-18-180.1-42.8-60.8-14.6h-9v4.5l51.8,50.7,93.4,84.4,118.2,109.2,5.6,27-14.6,22.5-15.8-2.3-103.6-78.8-40.5-34.9-90.1-75.4h-5.6v7.9l20.3,30.4,110.3,165.5,5.6,50.7-7.9,15.8-29.3,10.1-30.4-5.6-65.3-90.1-66.4-102.5-54-91.2-5.6,4.5-32.7,340-14.6,16.9-33.8,13.5-28.1-21.4-15.8-34.9Z"/>
|
|
28
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M16.0005 13.5992C16.4972 13.5995 16.9007 14.0029 16.9009 14.4996C16.9009 14.9965 16.4974 15.3997 16.0005 15.4H13.0005C12.5035 15.4 12.1002 14.9967 12.1002 14.4996C12.1004 14.0027 12.5036 13.5992 13.0005 13.5992H16.0005Z" fill="#0D0D0D"/>
|
|
3
|
+
<path d="M8.03765 8.72811C8.46377 8.47284 9.01638 8.61074 9.27203 9.03671L10.6177 11.2789C10.8836 11.7221 10.8834 12.277 10.6177 12.7203L9.27203 14.9625C9.01633 15.3887 8.46385 15.5267 8.03765 15.2711C7.61143 15.0153 7.47333 14.4629 7.72906 14.0367L8.95074 11.9996L7.72906 9.96249C7.47341 9.53628 7.61146 8.98382 8.03765 8.72811Z" fill="#0D0D0D"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.3316 2.03768C11.1644 1.54688 13.0268 2.04668 14.356 3.20174C16.0859 2.86512 17.9511 3.36418 19.2935 4.70663C20.6356 6.04882 21.1326 7.91288 20.7964 9.64217C21.9527 10.9716 22.4534 12.8349 21.9625 14.6685C21.4711 16.5025 20.1051 17.8657 18.439 18.439C17.8658 20.1047 16.503 21.47 14.6695 21.9615C12.8356 22.4528 10.9727 21.9519 9.64312 20.7955C7.91371 21.1319 6.04993 20.635 4.70757 19.2926C3.36558 17.9505 2.86659 16.0866 3.20269 14.357C2.04693 13.0273 1.54757 11.1638 2.03863 9.33065C2.52997 7.49759 3.89436 6.13282 5.56011 5.55917C6.13382 3.8935 7.49837 2.52891 9.3316 2.03768ZM13.2623 4.63534C12.3606 3.80149 11.067 3.4361 9.79742 3.77596C8.52745 4.11626 7.58924 5.0796 7.22515 6.25253C7.08145 6.71575 6.71753 7.07928 6.25445 7.22323C5.08133 7.58702 4.11844 8.52622 3.77789 9.79647C3.43759 11.0667 3.80148 12.3606 4.63531 13.2623C4.96467 13.6184 5.09776 14.1154 4.99078 14.5885C4.71939 15.7864 5.05109 17.0891 5.98101 18.0191C6.91085 18.949 8.21345 19.2801 9.41168 19.0084L9.58941 18.9791C9.94695 18.9432 10.3065 19.0397 10.5982 19.2496L10.7378 19.3639L10.9117 19.5142C11.8015 20.2407 13.0127 20.5413 14.2037 20.2223C15.4733 19.8818 16.4111 18.9191 16.775 17.7457C16.9189 17.2824 17.2832 16.9186 17.7466 16.775L17.9634 16.6998C19.0376 16.2923 19.9051 15.3936 20.2242 14.2027C20.5641 12.9328 20.1989 11.6385 19.3648 10.7369C19.0353 10.3806 18.9021 9.88399 19.0093 9.41073L19.0533 9.18514C19.2372 8.0514 18.8917 6.85176 18.0201 5.98006C17.0901 5.05003 15.7865 4.71826 14.5884 4.98983C14.1153 5.09712 13.6186 4.96467 13.2623 4.63534Z" fill="#0D0D0D"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="721" height="721" viewBox="0 0 721 721" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_1637_2935)">
|
|
3
|
+
<g clip-path="url(#clip1_1637_2935)">
|
|
4
|
+
<path d="M304.246 295.411V249.828C304.246 245.989 305.687 243.109 309.044 241.191L400.692 188.412C413.167 181.215 428.042 177.858 443.394 177.858C500.971 177.858 537.44 222.482 537.44 269.982C537.44 273.34 537.44 277.179 536.959 281.018L441.954 225.358C436.197 222 430.437 222 424.68 225.358L304.246 295.411ZM518.245 472.945V364.024C518.245 357.304 515.364 352.507 509.608 349.149L389.174 279.096L428.519 256.543C431.877 254.626 434.757 254.626 438.115 256.543L529.762 309.323C556.154 324.679 573.905 357.304 573.905 388.971C573.905 425.436 552.315 459.024 518.245 472.941V472.945ZM275.937 376.982L236.592 353.952C233.235 352.034 231.794 349.154 231.794 345.315V239.756C231.794 188.416 271.139 149.548 324.4 149.548C344.555 149.548 363.264 156.268 379.102 168.262L284.578 222.964C278.822 226.321 275.942 231.119 275.942 237.838V376.986L275.937 376.982ZM360.626 425.922L304.246 394.255V327.083L360.626 295.416L417.002 327.083V394.255L360.626 425.922ZM396.852 571.789C376.698 571.789 357.989 565.07 342.151 553.075L436.674 498.374C442.431 495.017 445.311 490.219 445.311 483.499V344.352L485.138 367.382C488.495 369.299 489.936 372.179 489.936 376.018V481.577C489.936 532.917 450.109 571.785 396.852 571.785V571.789ZM283.134 464.79L191.486 412.01C165.094 396.654 147.343 364.029 147.343 332.362C147.343 295.416 169.415 262.309 203.48 248.393V357.791C203.48 364.51 206.361 369.308 212.117 372.665L332.074 442.237L292.729 464.79C289.372 466.707 286.491 466.707 283.134 464.79ZM277.859 543.48C223.639 543.48 183.813 502.695 183.813 452.314C183.813 448.475 184.294 444.636 184.771 440.797L279.295 495.498C285.051 498.856 290.812 498.856 296.568 495.498L417.002 425.927V471.509C417.002 475.349 415.562 478.229 412.204 480.146L320.557 532.926C308.081 540.122 293.206 543.48 277.854 543.48H277.859ZM396.852 600.576C454.911 600.576 503.37 559.313 514.41 504.612C568.149 490.696 602.696 440.315 602.696 388.976C602.696 355.387 588.303 322.762 562.392 299.25C564.791 289.173 566.231 279.096 566.231 269.024C566.231 200.411 510.571 149.067 446.274 149.067C433.322 149.067 420.846 150.984 408.37 155.305C386.775 134.192 357.026 120.758 324.4 120.758C266.342 120.758 217.883 162.02 206.843 216.721C153.104 230.637 118.557 281.018 118.557 332.357C118.557 365.946 132.95 398.571 158.861 422.083C156.462 432.16 155.022 442.237 155.022 452.309C155.022 520.922 210.682 572.266 274.978 572.266C287.931 572.266 300.407 570.349 312.883 566.028C334.473 587.141 364.222 600.576 396.852 600.576Z" fill="white"/>
|
|
5
|
+
</g>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_1637_2935">
|
|
9
|
+
<rect width="720" height="720" fill="white" transform="translate(0.606934 0.899902)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
<clipPath id="clip1_1637_2935">
|
|
12
|
+
<rect width="484.139" height="479.818" fill="white" transform="translate(118.557 120.758)"/>
|
|
13
|
+
</clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="#37ec85"><path d="M4 18V4h14v4H8v10H4Zm10 6h10V14h4v14H14v-4Z"/></svg>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ThinItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLight.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Light.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-LightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Regular.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Italic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Medium.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-MediumItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Bold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-BoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved.
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="#37ec85"><path d="M4 18V4h14v4H8v10H4Zm10 6h10V14h4v14H14v-4Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"><meta name="theme-color" content="#080b0d"><title>SubValue — Local usage</title><link rel="icon" href="/icon.svg"><link rel="stylesheet" href="/app.css"></head><body><div id="app"><main class="loading"><img class="brand-mark" src="/logo/mark-green.svg" alt=""><h1>SubValue</h1><p>Loading local usage…</p></main></div><div id="toast" role="status" aria-live="polite"></div><script type="module" src="/app.js"></script></body></html>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* Both the public page and local app use the same receipt renderer and tokens. */
|
|
2
|
+
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/inter-latin.woff2') format('woff2')}
|
|
3
|
+
@font-face{font-family:'Plex Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/plex-mono.woff2') format('woff2')}
|
|
4
|
+
|
|
5
|
+
:root{color-scheme:dark;--bg:#080a0c;--panel:#111418;--border:#25282d;--text:#eff0f1;--muted:#999fa6;--green:#37ec85;--red:#ed9987;--mono:"Plex Mono",Consolas,monospace;--sans:Inter,"Segoe UI",Arial,sans-serif}
|
|
6
|
+
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:4px}svg{width:19px;height:19px;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1.3px;font-weight:550;line-height:1.3}h2{font-size:15px;font-weight:550;letter-spacing:-.15px}h3{font-size:16px}p{line-height:1.7;color:var(--muted)}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:650;letter-spacing:-.65px;white-space:nowrap}.brand-mark{color:var(--green);font-family:var(--mono);font-size:40px;line-height:.7;font-weight:400}.topbar{max-width:1392px;margin:auto;height:84px;padding:0 40px;display:flex;align-items:center;gap:64px;border-bottom:1px solid var(--border)}.local-tag{font:9px var(--mono);color:var(--muted);border:1px solid var(--border);padding:4px 5px;margin-left:2px;letter-spacing:1px}.topbar nav{display:flex;align-self:stretch;gap:30px}.nav-item{background:none;border:0;color:var(--muted);display:flex;align-items:center;gap:8px;border-bottom:2px solid transparent;font-size:13px;padding:0 3px}.nav-item svg{display:none}.nav-item.active{color:var(--text);border-bottom-color:var(--green)}.nav-item:hover{color:var(--text)}.local-status{margin-left:auto;display:flex;gap:8px;align-items:center;font:10px var(--mono);color:var(--muted);white-space:nowrap}.status-dot{width:5px;height:5px;background:var(--green);border-radius:50%}.app-main{max-width:1392px;margin:auto;padding:38px 40px 32px;min-height:calc(100vh - 150px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.eyebrow{font:9px var(--mono);letter-spacing:1.7px;color:var(--muted);display:block;margin-bottom:10px}.control-wrap{display:flex;align-items:center;gap:12px}.date-controls{display:flex;background:var(--panel);border:1px solid var(--border);padding:3px;border-radius:5px;gap:3px}.date-controls button{border:0;background:none;color:var(--muted);min-width:49px;min-height:32px;border-radius:3px;font-size:12px}.date-controls .selected{background:#2a342d;color:var(--text)}.custom-range{display:flex;gap:8px;align-items:end}.custom-range label{font-size:10px;color:var(--muted)}.custom-range input{display:block;padding:6px;width:125px;margin-top:4px}.coverage{margin-bottom:24px;border-bottom:1px solid var(--border);padding-bottom:14px;font-size:11px;max-width:100%}.coverage summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;color:var(--muted)}.coverage summary svg{width:13px;height:13px}.details-label{font-size:10px;margin-left:auto}.details-label:after{content:' +';font-family:var(--mono)}.coverage[open] .details-label:after{content:' −'}.coverage-content{padding:18px 0 0;max-width:760px}.coverage-content p{font-size:12px;margin:12px 0}.coverage-content code{overflow-wrap:anywhere}.issue-group{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:11px}.issue-group span{display:flex;gap:20px;max-width:470px;color:var(--muted)}.issue-group b{margin-left:auto}dl{margin:0;color:var(--muted);font-size:11px}dl div{display:flex;justify-content:space-between;gap:16px;padding:5px 0}dd{margin:0;color:var(--text);text-align:right}.overview-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:26px;align-items:start}.overview-main{min-width:0}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}.metrics.single{grid-template-columns:minmax(230px,1fr)}.metric{background:var(--panel);border:1px solid var(--border);border-radius:5px;min-height:133px;padding:18px 17px;display:flex;flex-direction:column;min-width:0}.metric.api-metric{border-top:2px solid #72eb9e;padding-top:17px}.label{font-size:11px;color:var(--muted);font-weight:400}.metric strong{font-size:clamp(22px,2.4vw,35px);font-weight:520;letter-spacing:-1.2px;margin-top:14px;white-space:nowrap;font-variant-numeric:tabular-nums}.metric strong:has(.multiply){letter-spacing:-1px}.metric-detail{font-size:9px;color:var(--muted);margin-top:auto;padding-top:12px;line-height:1.4}.metric.positive strong{color:var(--green)}.metric.negative strong{color:var(--red)}.multiply{font-weight:350;padding-left:3px;color:var(--muted)}.panel{background:var(--panel);border:1px solid var(--border);border-radius:5px}.provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px}.provider-grid:has(>.provider-card:only-child){grid-template-columns:minmax(0,1fr)}.provider-card{padding:20px 23px}.provider-title{display:flex;align-items:center;gap:11px;margin-bottom:21px}.provider-logo{font-size:29px;line-height:1}.provider-logo.claude{color:#d2b49c}.badge{font:9px var(--mono);border:1px solid var(--border);border-radius:3px;padding:4px 6px;color:var(--muted);margin-left:4px}.badge.green{color:var(--green);border-color:#315440;background:#163020}.provider-values{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.provider-values>div{display:flex;flex-direction:column;gap:8px}.provider-values strong{font-size:19px;font-weight:450;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.provider-values small{font-size:10px;color:var(--muted)}.chart{padding:23px 24px 16px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.legend{display:flex;gap:13px;color:var(--muted);font-size:9px;flex-wrap:wrap}.legend span{display:flex;gap:6px;align-items:center}.legend i{height:5px;width:5px;border-radius:50%;background:var(--green)}.legend i.claude-dot{background:#8aadc2}.chart-svg{width:100%;display:block}.chart-dates{display:flex;justify-content:space-between;font:9px var(--mono);color:var(--muted);padding:8px 0 0 40px}.chart-empty{height:190px;display:flex;align-items:center;justify-content:center;position:relative;font:12px var(--mono);color:var(--muted)}.empty-chart-lines{position:absolute;inset:0;background:repeating-linear-gradient(to bottom,transparent,transparent 47px,#222c24 48px,transparent 49px);opacity:.6}.chart-empty>span:last-child{z-index:1;background:var(--panel);padding:8px 16px}.overview-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:18px;gap:10px;font-size:10px;color:var(--muted)}.overview-bottom>span{display:flex;gap:6px;align-items:center}.overview-bottom svg{width:13px;height:13px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);background:none;border:0;padding:8px 0;font-size:11px;min-height:44px}.text-button:hover{color:var(--text)}.text-button svg{width:13px;height:13px}.button{background:var(--green);color:#0b1b10;border:1px solid var(--green);border-radius:4px;display:inline-flex;gap:9px;align-items:center;justify-content:center;min-height:43px;padding:11px 20px;font-size:12px;font-weight:600}.button:hover{background:#91f7b4;border-color:#91f7b4}.button.small{min-height:32px;padding:7px 12px}.receipt-panel{padding:0 8px;display:flex;flex-direction:column;align-items:center;gap:15px;min-width:0}.receipt-kicker{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:3px}.receipt-kicker .label{font:8px var(--mono);letter-spacing:1px}.receipt-kicker svg{width:14px;height:14px;color:var(--muted)}.receipt-canvas{width:100%;max-width:440px;display:block;filter:drop-shadow(0 12px 16px #0005)}.export-button{width:100%;max-width:440px}.export-note{font:8px var(--mono);color:var(--muted)}.receipt-page-layout{display:grid;grid-template-columns:minmax(280px,440px) minmax(250px,440px);gap:88px;justify-content:center;margin-top:36px}.receipt-aside{padding-top:70px;display:flex;flex-direction:column;align-items:start;gap:14px}.receipt-aside .eyebrow{margin:0}.receipt-aside>strong{font-size:40px;letter-spacing:-1.5px;font-weight:500}.receipt-aside>span:not(.eyebrow){color:var(--muted);font-size:12px}.receipt-aside .coverage{width:100%;margin-top:12px}.privacy-note{font-size:11px;color:var(--muted)}.privacy-note summary{cursor:pointer}.privacy-note p{margin-top:10px;font-size:12px}.settings-layout{max-width:820px;margin-top:28px}.settings-section{padding:25px 27px;margin-bottom:15px}.settings-section h2{margin-bottom:23px;font-size:13px}.source-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:16px 0;border-top:1px solid var(--border)}.source-row>div{display:flex;flex-direction:column;gap:6px}.source-row strong{font-size:13px;font-weight:500}.source-state{font-size:10px;color:var(--muted)}.include-check{font-size:11px;display:flex;gap:8px;align-items:center;color:var(--muted)}input[type=checkbox]{accent-color:var(--green);width:15px;height:15px}.source-row details{grid-column:1/-1;width:100%;font-size:10px;color:var(--muted)}details summary{cursor:pointer}details summary::-webkit-details-marker{display:none}.source-row details dl{margin:12px 0}.billing-row{display:grid;grid-template-columns:120px 160px minmax(150px,1fr);gap:20px;align-items:center;margin-bottom:18px}.provider-setting-name{font-size:12px}input,select{border:1px solid #354139;background:#0d120f;color:var(--text);border-radius:4px;min-height:36px;padding:8px 10px;width:100%;outline:none}select{font-size:11px}.amount-field{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}.amount-field input{min-width:0;width:95px;text-align:right;font-variant-numeric:tabular-nums}.amount-field>span:last-child{white-space:nowrap}.compact-details{font-size:10px;color:var(--muted);margin-top:18px}.compact-details p{margin-top:8px;font-size:11px}.setting-line{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.setting-line strong{color:var(--text);font:12px var(--mono)}.privacy-tags{display:flex;flex-wrap:wrap;gap:25px;font-size:10px;color:var(--muted);margin-bottom:22px}.privacy-tags span{display:flex;gap:7px;align-items:center}.privacy-tags svg{color:var(--green);width:12px;height:12px}.settings-section>details{font-size:10px;color:var(--muted)}.settings-section>details p{font-size:11px;margin:10px 0}.settings-section code{font:10px var(--mono);line-height:1.8;overflow-wrap:anywhere}.form-actions{display:flex;justify-content:end;margin-top:22px}.app-footer{max-width:1312px;margin:0 auto 24px;display:flex;justify-content:space-between;align-items:center;font:9px var(--mono);color:#7e8f83;border-top:1px solid var(--border);padding-top:20px}.version{color:#647268;margin-left:4px}.demo-banner{background:#203128;color:var(--green);text-align:center;font:10px var(--mono);padding:8px;letter-spacing:.5px}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.loading{min-height:90vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px}.loading p{font-size:12px}.empty-panel{padding:28px;margin-top:20px}.empty-panel h2{font-size:14px}dialog{width:min(540px,calc(100vw - 32px));background:#141b16;border:1px solid #354c3d;border-radius:8px;color:var(--text);padding:34px;box-shadow:0 24px 120px #0009}dialog::backdrop{background:#050906cc;backdrop-filter:blur(3px)}dialog>.brand-mark{display:block;margin:0 0 30px}dialog h2{font-size:26px;letter-spacing:-.8px;margin:16px 0 30px}dialog .button{width:100%;margin-top:24px}.found-sources>div{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-top:1px solid var(--border)}.found-sources strong{font-weight:500;font-size:13px}.found-sources span{display:flex;gap:10px;font:11px var(--mono);color:var(--muted)}.found-sources svg{width:14px;height:14px;color:var(--green)}.onboarding-skip{display:flex;margin:10px auto 0}dialog .billing-row{grid-template-columns:1fr 1fr;gap:12px;margin-top:15px;margin-bottom:30px}dialog .provider-setting-name{display:none}dialog .billing-row select{grid-column:1/-1}dialog .amount-field{grid-column:1/-1;justify-content:end}dialog h3{font-size:14px;font-weight:450;margin-top:20px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);background:#263b2d;border:1px solid #3d6248;color:var(--text);padding:12px 20px;border-radius:5px;font-size:12px;opacity:0;pointer-events:none;z-index:10;transition:opacity .15s,transform .15s;white-space:nowrap}#toast.show{opacity:1;transform:translate(-50%,0)}
|
|
7
|
+
@media(min-width:1400px){.metric strong{font-size:34px}}
|
|
8
|
+
@media(max-width:1100px){.topbar{padding:0 28px;gap:40px}.app-main{padding:30px 28px}.overview-layout{grid-template-columns:minmax(0,1fr) 265px;gap:20px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-height:116px}.metric strong{font-size:29px}.provider-grid{grid-template-columns:1fr}.app-footer{margin:0 28px 24px}.control-wrap{flex-direction:column;align-items:end}.receipt-page-layout{gap:45px}.receipt-aside>strong{font-size:32px}}
|
|
9
|
+
@media(max-width:760px){.topbar{height:69px;padding:0 20px;gap:24px}.brand{font-size:19px}.local-tag{display:none}.topbar nav{gap:17px}.nav-item{font-size:11px}.local-status{display:none}.app-main{padding:28px 20px}.page-heading{align-items:start;flex-wrap:wrap;gap:17px}.page-heading h1{font-size:28px}.eyebrow{font-size:8px}.overview-layout{grid-template-columns:1fr}.overview-layout .receipt-panel{max-width:390px;width:100%;justify-self:center;margin-top:17px;padding:0 16px}.metrics{gap:10px;margin-bottom:16px}.metric{padding:17px;min-height:126px}.metric strong{font-size:31px}.provider-grid{margin-bottom:16px}.chart{padding:19px 18px}.panel-title{margin-bottom:20px}.panel-title h2{font-size:12px}.legend{gap:9px;font-size:8px}.chart-empty{height:158px}.overview-bottom{font-size:8px}.overview-bottom .text-button{font-size:10px}.receipt-page-layout{grid-template-columns:1fr;gap:24px;margin-top:24px}.receipt-page-layout>.receipt-panel{max-width:390px;justify-self:center;width:100%}.receipt-aside{padding:12px 0 0;max-width:420px;margin:auto;width:100%}.receipt-aside>strong{font-size:28px}.app-footer{margin:0 20px 84px;font-size:8px}.settings-section{padding:22px 19px}.billing-row{grid-template-columns:1fr 155px;gap:12px}.amount-field{grid-column:2}.provider-setting-name{align-self:center}.privacy-tags{gap:15px}.custom-range{flex-wrap:wrap;justify-content:end}.custom-range input{width:117px}.date-controls button{min-width:47px;min-height:36px}.control-wrap{align-items:start}.coverage{font-size:10px;margin-bottom:19px}.topbar nav{position:fixed;bottom:0;left:0;right:0;height:64px;z-index:8;background:#101712;border-top:1px solid var(--border);justify-content:space-around;gap:0}.nav-item{display:flex;flex-direction:column;justify-content:center;gap:5px;flex:1;border-bottom:0;border-top:2px solid transparent;font-size:10px}.nav-item.active{border-top-color:var(--green);color:var(--green)}.nav-item svg{display:block;width:18px;height:18px}.metric-detail{font-size:9px}.include-check{font-size:10px}.source-row details{font-size:10px}dialog{padding:28px}#toast{bottom:78px}.empty-panel{padding:22px}}
|
|
10
|
+
@media(max-width:360px){.app-main{padding:24px 16px}.metric{padding:15px 13px}.metric strong{font-size:27px}.metrics{gap:8px}.date-controls button{min-width:46px}.provider-card{padding:19px}.receipt-panel{padding:0!important}.overview-bottom>span{font-size:7px}}
|
|
11
|
+
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
|
|
12
|
+
|
|
13
|
+
.chart-svg{height:auto}
|
|
14
|
+
|
|
15
|
+
/* A compact graphite workspace, matching the original SubValue reference. */
|
|
16
|
+
body{background:#080b0d;background-image:none}
|
|
17
|
+
.app-shell{max-width:1220px;margin:36px auto;background:#0b0d10;border:1px solid #2b343a;border-radius:12px;box-shadow:0 28px 85px #0008,0 1px 0 #ffffff08 inset;overflow:hidden}
|
|
18
|
+
.topbar{height:70px;padding:0 25px;gap:38px;background:#090b0d;border-bottom-color:#222a2f}
|
|
19
|
+
.brand{font-size:20px;gap:9px;letter-spacing:-.6px}.brand-mark{font-size:34px}.topbar nav{gap:25px}.nav-item{font-size:12px;padding:0 2px}
|
|
20
|
+
.header-period{margin-left:auto;display:flex;align-items:center;gap:12px}.local-status{margin-left:0;color:var(--green)}.local-status svg{width:17px}
|
|
21
|
+
.date-controls{background:#101519;border-color:#252e33;padding:2px}.date-controls button{min-height:34px;min-width:45px;font-size:11px}.date-controls .selected{background:#252a2e;color:#eff0f1}
|
|
22
|
+
.app-main{padding:23px 25px 25px;min-height:0}.page-heading{margin-bottom:13px}.page-heading h1{font-size:19px;letter-spacing:-.4px;font-weight:550}
|
|
23
|
+
.coverage{border:0;padding-bottom:0;margin-bottom:20px;font-size:10px}.coverage summary{gap:7px}.coverage-content{border:1px solid var(--border);background:#101619;border-radius:5px;padding:18px;margin-top:12px;max-width:100%}
|
|
24
|
+
.overview-layout{grid-template-columns:minmax(0,1fr) 320px;gap:22px}.metrics{gap:12px;margin-bottom:16px}.metrics.single{grid-template-columns:minmax(0,1fr)}
|
|
25
|
+
.metric{min-height:116px;padding:16px 14px;background:linear-gradient(120deg,#14171b,#101317);border-color:#25282d;box-shadow:0 1px 0 #ffffff03 inset;border-radius:6px}
|
|
26
|
+
.metric.api-metric{border-top:1px solid #353b40;padding-top:16px}.metric .label{display:flex;gap:7px;align-items:center;font-size:10px;white-space:nowrap;color:#b7c0c7}.metric .label svg{width:16px;height:16px;color:#a3afb7}.metric.positive .label svg,.metric:has(.multiply) .label svg{color:var(--green)}
|
|
27
|
+
.metric strong{font-size:28px;font-weight:550;letter-spacing:-.9px;margin-top:17px;line-height:1.1}.metric-detail{padding-top:11px;font-size:9px;line-height:1.5}.metric strong{white-space:normal;overflow-wrap:anywhere}.multiply{color:inherit;padding-left:1px}
|
|
28
|
+
.panel{border-radius:6px;border-color:#25282d;background:#111418;box-shadow:0 1px 0 #ffffff03 inset}.provider-grid{gap:12px;margin-bottom:16px}.provider-card{padding:20px}.provider-title{gap:10px;margin-bottom:18px}.provider-logo{font-size:31px;color:#e7ebed}.provider-title h2{font-size:14px}.badge{font:8px var(--sans);border-radius:20px;padding:4px 8px}.badge.green{background:#153e29;color:#65f3a2;border-color:#224b34}.provider-values{padding-left:41px;gap:15px}.provider-values .label{font-size:10px}.provider-values strong{font-size:19px;font-weight:500}.provider-values small{font-size:9px}
|
|
29
|
+
.chart{padding:20px 20px 16px}.panel-title{margin-bottom:20px}.panel-title h2{font-size:12px}.legend{font-size:9px;gap:13px}.chart-svg{min-height:170px}.legend i{background:var(--green)}.chart-dates{font:9px var(--sans);padding-top:3px}.empty-chart-lines{background:repeating-linear-gradient(to bottom,transparent,transparent 47px,#242c32 48px,transparent 49px)}
|
|
30
|
+
.overview-bottom{margin-top:12px;font-size:9px}.overview-bottom>span{gap:5px}.overview-bottom .text-button{font-size:10px}.receipt-panel{padding:0;gap:14px}.receipt-canvas{filter:drop-shadow(0 10px 14px #0008)}
|
|
31
|
+
.button{background:var(--green);border-color:var(--green);color:#092214;border-radius:5px;min-height:44px;font-size:12px;font-weight:650;box-shadow:0 1px 0 #a1ffc955 inset}.button:hover{background:#5df39d;border-color:#5df39d}.export-button svg{width:16px;height:16px}
|
|
32
|
+
.app-footer{margin:0 25px 18px;border-top:1px solid #20282d;padding-top:14px;font-size:8px;color:#89979f}.app-footer .version{color:#76838b}
|
|
33
|
+
.receipt-page-layout{gap:64px;margin-top:24px;grid-template-columns:minmax(280px,380px) minmax(250px,380px)}.receipt-aside{padding-top:45px}.receipt-aside>strong{font-size:34px}.receipt-aside .coverage{margin-top:12px}
|
|
34
|
+
.settings-layout{max-width:760px;margin-top:20px}.settings-section{background:#11171b;padding:24px}.settings-section h2{font-size:13px;margin-bottom:18px}input,select{background:#0c1115;border-color:#303b43;min-height:40px}.amount-field input{width:110px}.privacy-tags{margin-bottom:18px}
|
|
35
|
+
dialog{background:#131a1e;border-color:#34453c}dialog::backdrop{background:#030607d9;backdrop-filter:blur(4px)}.demo-banner{background:#171d1a;color:#88c5a0;font-size:9px}.model-coverage{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:8px;padding:12px 0;border-top:1px solid var(--border);font-size:10px;color:var(--muted)}.model-coverage code{overflow-wrap:anywhere;color:var(--text)}.model-coverage a{grid-column:1/-1;color:var(--green)}
|
|
36
|
+
@media(min-width:1400px){.metric strong{font-size:28px}}
|
|
37
|
+
@media(max-width:1270px){.app-shell{margin:24px}.topbar{gap:28px}.overview-layout{grid-template-columns:minmax(0,1fr) 255px;gap:18px}.metric strong{font-size:25px}}
|
|
38
|
+
@media(min-width:1001px) and (max-width:1100px){.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{padding:15px 10px}.metric .label{font-size:9px;gap:5px}.metric .label svg{width:13px}.metric strong{font-size:22px}.provider-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.provider-card{padding:17px}.provider-title{flex-wrap:wrap}.provider-values{padding-left:0}}
|
|
39
|
+
@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{gap:25px}.topbar nav{gap:18px}.overview-layout{grid-template-columns:minmax(0,1fr) 245px}.metric strong{font-size:29px}.provider-grid{grid-template-columns:1fr}.header-period{gap:8px}.local-status{display:none}}
|
|
40
|
+
@media(max-width:760px){body{background:#090d10;background-image:none}.app-shell{margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible;background:none}.topbar{height:auto;min-height:120px;padding:18px 18px 13px;gap:14px;flex-wrap:wrap;background:#090b0d}.brand{font-size:20px}.header-period{flex-basis:100%;margin-left:0;flex-wrap:wrap}.date-controls{width:100%;padding:3px}.date-controls button{flex:1;min-height:39px;font-size:12px}.custom-range{width:100%;justify-content:start}.custom-range label{flex:1}.custom-range input{width:100%}.custom-range .button{min-height:39px}.app-main{padding:22px 18px 28px}.page-heading h1{font-size:19px}.page-heading{margin-bottom:12px}.coverage{margin-bottom:17px;font-size:10px}.overview-layout{grid-template-columns:1fr;gap:20px}.metrics{gap:10px;margin-bottom:14px}.metric{min-height:127px;padding:17px 15px}.metric.api-metric{padding-top:17px}.metric .label{font-size:10px}.metric strong{font-size:30px}.metric-detail{font-size:9px}.provider-grid{margin-bottom:14px}.provider-card{padding:19px}.provider-values{padding-left:42px}.provider-values strong{font-size:19px}.chart{padding:19px 16px 14px}.panel-title{gap:10px;margin-bottom:15px}.panel-title h2{font-size:11px}.legend{font-size:8px;gap:8px}.chart-svg{min-height:145px}.chart-dates{font-size:9px}.overview-bottom{font-size:8px}.overview-layout .receipt-panel{padding:0;max-width:360px;width:100%;margin-top:6px}.receipt-page-layout{grid-template-columns:1fr;gap:25px}.receipt-page-layout>.receipt-panel{max-width:360px}.receipt-aside{padding-top:0}.topbar nav{background:#0d1418;height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-top-color:#2a343a}.nav-item{min-height:62px;font-size:10px}.nav-item.active{color:var(--green);border-top-color:var(--green)}.nav-item svg{width:19px;height:19px}.app-footer{margin:0 18px calc(88px + env(safe-area-inset-bottom));padding-top:15px}.settings-section{padding:22px 18px}.billing-row{grid-template-columns:1fr 155px;gap:12px}.amount-field{grid-column:2}.privacy-tags{gap:16px}.model-coverage{grid-template-columns:1fr 1fr}.model-coverage code{grid-column:1/-1}#toast{bottom:calc(80px + env(safe-area-inset-bottom))}.export-button{min-height:46px}}
|
|
41
|
+
@media(max-width:360px){.topbar{padding-left:15px;padding-right:15px}.app-main{padding-left:15px;padding-right:15px}.metric{padding:15px 12px}.metric.api-metric{padding-top:15px}.metric .label{font-size:9px;gap:5px}.metric strong{font-size:27px}.metric .label svg{width:14px}.provider-title h2{font-size:13px}.provider-card{padding:17px}.provider-values{padding-left:0}.billing-row{grid-template-columns:1fr 142px}.privacy-tags{gap:12px}.receipt-panel{padding:0}}
|
|
42
|
+
.provider-logo svg{width:29px;height:29px}.metric:has(.multiply) .label svg{stroke-width:2.3}
|
|
43
|
+
@media(min-width:761px){.provider-grid:has(>.provider-card:only-child) .provider-card{display:grid;grid-template-columns:1fr 1.4fr;gap:20px;align-items:center;min-height:98px}.provider-grid:has(>.provider-card:only-child) .provider-title{margin:0;flex-wrap:wrap}.provider-grid:has(>.provider-card:only-child) .provider-values{padding-left:0}.provider-grid:has(>.provider-card:only-child) .provider-values>div{gap:8px}}
|
|
44
|
+
@media(max-width:760px){.date-controls button{min-height:44px}.custom-range input,.custom-range .button{min-height:44px}}
|
|
45
|
+
|
|
46
|
+
/* Neutral mark and original provider artwork stay separate from the UI wordmark. */
|
|
47
|
+
.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;line-height:1;flex-shrink:0}.brand-mark svg{width:100%;height:100%}.loading .brand-mark{width:32px;height:32px}.provider-logo{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex-shrink:0}.provider-logo img{width:29px;height:29px;object-fit:contain}.chart-svg g:hover rect{filter:brightness(1.15)}.chart-svg line{stroke-opacity:.65}.receipt-canvas{filter:drop-shadow(0 2px 2px #0007) drop-shadow(0 10px 14px #0006)}.export-button{box-shadow:0 1px 0 #b4ffcd55 inset,0 4px 14px #0003}.receipt-page-layout{grid-template-columns:minmax(280px,360px) minmax(250px,380px)}
|
|
48
|
+
@media(max-width:760px){.brand-mark{width:24px;height:24px}.receipt-page-layout{grid-template-columns:1fr}.metric{background:linear-gradient(120deg,#14171b,#101317)}.topbar nav{background:#101317}.overview-layout .receipt-panel,.receipt-page-layout>.receipt-panel{max-width:360px}.provider-values{padding-left:44px}}
|
|
49
|
+
|
|
50
|
+
/* Product identities: no generic company marks in provider cards. */
|
|
51
|
+
.codex-product-name{font-family:var(--mono);letter-spacing:-.4px!important;font-size:16px!important;font-weight:600!important}.claude-code-product-mark{width:30px;height:26px;object-fit:contain;flex-shrink:0}
|
|
52
|
+
|
|
53
|
+
.codex-product-mark{width:29px;height:29px;flex-shrink:0;filter:invert(1);opacity:.93}
|
|
54
|
+
|
|
55
|
+
/* Receipt text has room to read at dashboard scale, not just in the exported PNG. */
|
|
56
|
+
@media(min-width:1001px){.overview-layout{grid-template-columns:minmax(0,1fr) 360px}}
|
|
57
|
+
@media(min-width:761px) and (max-width:1000px){.overview-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}}
|
|
58
|
+
@media(min-width:761px){.receipt-page-layout{grid-template-columns:minmax(280px,420px) minmax(250px,380px)}}
|
|
59
|
+
.billing-row{grid-template-columns:100px 145px minmax(0,1fr);gap:16px;align-items:start}.provider-setting-name{padding-top:12px}
|
|
60
|
+
.subscription-fields{display:grid;gap:10px;min-width:0}.subscription-fields select{width:100%;text-overflow:ellipsis}.amount-field input[readonly]{color:var(--muted)}
|
|
61
|
+
.subscription-fields.hidden{display:none}
|
|
62
|
+
.compact-details a{color:var(--green)}
|
|
63
|
+
@media(max-width:760px){.billing-row{grid-template-columns:1fr 155px}.subscription-fields{grid-column:1/-1}.subscription-fields .amount-field{grid-column:auto;justify-content:end}}
|
|
64
|
+
.refresh-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 13px;background:#151a1e;border:1px solid #343d43;border-radius:4px;color:var(--text);font-size:11px;white-space:nowrap}.refresh-button svg{width:15px;height:15px;color:var(--green)}.refresh-button:hover:enabled{background:#1d2328;border-color:#59656c}
|
|
65
|
+
dialog .subscription-fields{grid-column:1/-1}
|
|
66
|
+
|
|
67
|
+
.landing-nav{max-width:1120px;padding:30px 32px;margin:auto;display:flex;justify-content:space-between;align-items:center}.github-link{font-size:12px;color:var(--muted);display:flex;gap:8px}.github-link span{color:var(--green)}.hero{text-align:center;padding:57px 24px 43px;display:flex;flex-direction:column;align-items:center}.hero>.eyebrow{color:#819989;margin-bottom:24px;font-size:9px}.hero h1{font-size:61px;letter-spacing:-3px;font-weight:550;margin-bottom:17px;line-height:1.05}.hero h2{font-size:37px;line-height:1.22;letter-spacing:-1.25px;font-weight:450}.hero p{font-size:13px;max-width:450px;margin:20px 0 27px;line-height:1.65}.install-command{display:flex;align-items:center;justify-content:space-between;gap:32px;background:#151c17;border:1px solid #354339;border-radius:5px;padding:14px 14px 14px 20px;min-width:340px;max-width:100%}.install-command code{font:14px var(--mono);white-space:nowrap;color:#edf3ef}.install-command code>span{color:var(--green);margin-right:5px}.copy-command{border:0;background:none;color:var(--muted);display:flex;padding:4px;min-height:28px;align-items:center}.copy-command:hover{color:var(--green)}.copy-command svg{width:16px;height:16px}.trust-row{display:flex;justify-content:center;gap:25px;margin-top:22px;color:#a3b0a6;font-size:10px}.trust-row span{white-space:nowrap}.release-note{font:9px var(--mono);color:var(--muted);margin-top:16px}.product-preview{max-width:1120px;margin:13px auto 0;padding:0 32px}.preview-label{display:flex;justify-content:space-between;font:8px var(--mono);letter-spacing:1.2px;color:var(--muted);margin-bottom:12px}.preview-window{border:1px solid #35473b;border-radius:9px;background:#0d130f;overflow:hidden;box-shadow:0 24px 64px #0006}.preview-topbar{display:flex;align-items:center;gap:29px;padding:20px 24px;border-bottom:1px solid var(--border);font-size:10px;color:var(--muted)}.preview-topbar .brand{font-size:16px;margin-right:20px}.preview-topbar .brand-mark{font-size:29px}.preview-tab{color:var(--text);position:relative}.preview-tab:after{content:'';height:2px;background:var(--green);position:absolute;left:0;right:0;bottom:-23px}.preview-date{margin-left:auto;font:8px var(--mono)}.preview-body{display:grid;grid-template-columns:1fr 245px;gap:22px;padding:25px}.preview-main{min-width:0}.preview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.preview-metrics>div{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--border);border-radius:4px;padding:16px 12px;gap:14px;min-width:0}.preview-metrics>div:first-child{border-top:2px solid var(--green);padding-top:15px}.preview-metrics span{font-size:8px;color:var(--muted)}.preview-metrics strong{font-size:24px;letter-spacing:-1px;font-weight:500;font-variant-numeric:tabular-nums}.green-text{color:var(--green)}.preview-provider{background:var(--panel);border:1px solid var(--border);border-radius:4px;padding:19px;display:flex;align-items:center;gap:14px;margin-bottom:16px}.preview-provider-mark{font-size:32px}.preview-provider>div{display:flex;flex-direction:column;gap:6px}.preview-provider strong{font-size:12px;font-weight:500}.preview-provider>div span{font-size:9px;color:var(--muted)}.preview-provider b{margin-left:auto;font-size:20px;font-weight:450;letter-spacing:-.5px}.preview-active{font:8px var(--mono);background:#153020;border:1px solid #284f35;color:var(--green);padding:4px 6px;border-radius:3px}.preview-chart{padding:20px;background:var(--panel);border:1px solid var(--border);border-radius:4px}.preview-chart>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:9px;margin-bottom:19px}.preview-chart strong{font-size:11px;font-weight:450}.preview-chart>div:first-child span{color:var(--green);font-size:8px}.preview-bars{height:143px;display:flex;align-items:end;gap:6px;border-bottom:1px solid #3a443d;background:repeating-linear-gradient(to top,transparent,transparent 35px,#263029 36px,transparent 37px)}.preview-bars i{background:var(--green);opacity:.87;flex:1;border-radius:1px 1px 0 0;min-width:0}.preview-chart-axis{display:flex;justify-content:space-between;font:8px var(--mono);color:var(--muted);margin-top:12px}.preview-bottom{display:flex;justify-content:space-between;gap:10px;margin-top:20px;font:7px var(--mono);letter-spacing:.6px;color:var(--muted)}.preview-receipt{display:flex;flex-direction:column;justify-content:start;gap:13px}.preview-receipt canvas{width:100%;display:block}.preview-receipt>span{background:var(--green);color:#12241a;border-radius:3px;text-align:center;padding:11px;font-size:10px;font-weight:600}.landing-privacy{max-width:1056px;margin:82px auto 0;padding:47px 0 49px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);display:grid;grid-template-columns:1fr 1fr;gap:20px}.landing-privacy .eyebrow{grid-column:1/-1}.landing-privacy h2{font-size:31px;line-height:1.25;letter-spacing:-1px;font-weight:450}.landing-privacy>div{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:20px;font-size:12px;color:var(--muted)}.landing-privacy>div span:before{content:'✓';color:var(--green);margin-right:10px}.install-section{display:flex;flex-direction:column;align-items:center;padding:54px 24px 64px}.install-section .eyebrow{margin-bottom:22px}.landing-footer{max-width:1056px;margin:auto;padding:23px 0 27px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:20px}.landing-footer .brand{font-size:15px}.landing-footer .brand-mark{font-size:30px}.landing-footer>span:last-child{font:8px var(--mono);letter-spacing:1px;color:var(--muted)}.copy-status{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);font:12px var(--mono);background:#223c2b;border-radius:4px;color:var(--green)}.copy-status:not(:empty){padding:10px 18px}
|
|
68
|
+
@media(max-width:1100px){.landing-privacy,.landing-footer{margin-left:32px;margin-right:32px}.preview-metrics strong{font-size:20px}.preview-body{grid-template-columns:1fr 215px;gap:17px;padding:20px}.preview-topbar{gap:23px}.preview-active{display:none}.preview-metrics{gap:8px}.preview-metrics>div{padding:14px 10px}.preview-metrics span{font-size:7px}}
|
|
69
|
+
@media(max-width:760px){.landing-nav{padding:24px}.hero{padding:42px 24px 35px}.hero h1{font-size:49px;letter-spacing:-2px;margin-bottom:18px}.hero h2{font-size:29px;letter-spacing:-1px}.hero p{font-size:12px;max-width:350px;line-height:1.75}.hero>.eyebrow{font-size:8px}.install-command{min-width:0;width:340px;max-width:100%;gap:17px;padding:14px 13px 14px 17px}.install-command code{font-size:12px}.trust-row{gap:21px;font-size:9px}.product-preview{padding:0 20px;margin-top:13px}.preview-label{font-size:6px;letter-spacing:.8px}.preview-topbar{padding:18px;gap:19px;font-size:8px}.preview-topbar .brand{font-size:14px;margin-right:0}.preview-topbar>span:not(.brand):not(.preview-date){display:none}.preview-date{font-size:8px}.preview-body{grid-template-columns:1fr;padding:15px;gap:20px}.preview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.preview-metrics>div{padding:15px;gap:12px}.preview-metrics strong{font-size:25px}.preview-metrics span{font-size:9px}.preview-provider{padding:17px}.preview-provider b{font-size:20px}.preview-provider strong{font-size:12px}.preview-chart{padding:16px}.preview-bars{gap:4px;height:118px}.preview-bottom{font-size:6px;line-height:1.6;margin-top:15px}.preview-receipt{max-width:290px;width:100%;margin:auto}.preview-receipt>span{font-size:11px;padding:12px}.landing-privacy{margin:50px 24px 0;padding:32px 0;grid-template-columns:1fr;gap:18px}.landing-privacy h2{font-size:28px}.landing-privacy>div{margin-top:12px;font-size:11px;gap:18px}.install-section{padding:43px 24px 49px}.landing-footer{margin:0 24px;padding:22px 0}.landing-footer>span:last-child{font-size:6px;letter-spacing:.3px}.hero .release-note{font-size:8px}}
|
|
70
|
+
|
|
71
|
+
.landing-nav{padding:26px 32px}.hero{padding:48px 24px 38px}.hero h1{font-size:48px;letter-spacing:-2px;margin-bottom:18px}.hero h2{font-size:32px;letter-spacing:-1px}.hero p{margin:17px 0 25px}.install-command{background:#11171b;border-color:#30423a;box-shadow:0 1px 0 #ffffff05 inset}.copy-command{min-height:36px;min-width:36px;justify-content:center}.trust-row{font-size:11px;color:#a8b7af}.product-preview{max-width:1180px}.preview-window{background:#0b0d10;border-color:#303b42;box-shadow:0 22px 70px #0009,0 1px 0 #ffffff08 inset;border-radius:10px}.preview-topbar{background:#090b0d;padding:21px 24px}.preview-body{padding:23px;grid-template-columns:minmax(0,1fr) 245px;gap:21px}.preview-metrics>div{background:linear-gradient(120deg,#14171b,#101317);border-color:#25282d;border-radius:5px;padding:19px 13px;gap:15px}.preview-metrics>div:first-child{border-top:1px solid #354c3c;padding-top:19px}.preview-metrics strong{font-size:27px;font-weight:550;letter-spacing:-.9px}.preview-metrics span{font-size:9px;color:#b7c0c7}.preview-provider,.preview-chart{border-color:#25282d;background:#111418;border-radius:5px}.preview-active{background:#153e29;color:#65f3a2;border-color:#224b34;border-radius:20px}.preview-bars{background:repeating-linear-gradient(to top,transparent,transparent 35px,#242c32 36px,transparent 37px);border-color:#303c42;height:179px}.preview-bars i{background:linear-gradient(to bottom,#37ec85,#227f4c);opacity:1}.preview-receipt canvas{filter:drop-shadow(0 8px 14px #0008)}.preview-receipt>span{background:#37ec85;color:#092214;font-weight:650;border-radius:5px;padding:13px;font-size:11px}.landing-privacy{margin-top:58px;padding:34px 0;align-items:center}.landing-privacy h2{font-size:27px}.install-section{padding:42px 24px 52px}.release-note{color:#a2adb5}.preview-chart>div:first-child span{color:var(--green)}
|
|
72
|
+
@media(max-width:1000px){.preview-metrics strong{font-size:22px}.preview-metrics>div{padding:17px 10px}.preview-metrics>div:first-child{padding-top:17px}.preview-body{grid-template-columns:minmax(0,1fr) 220px}}
|
|
73
|
+
@media(max-width:760px){.hero{padding-top:34px}.hero h1{font-size:40px}.hero h2{font-size:27px}.desktop-break{display:none}.hero p{max-width:335px}.landing-nav{padding:23px}.product-preview{padding:0 16px}.preview-body{grid-template-columns:1fr;padding:15px;gap:22px}.preview-metrics>div{padding:16px}.preview-metrics>div:first-child{padding-top:16px}.preview-metrics span{font-size:10px}.preview-metrics strong{font-size:27px}.preview-receipt{max-width:335px}.preview-bars{height:138px}.preview-topbar{padding:18px}.landing-privacy{margin:40px 24px 0}.landing-privacy h2{font-size:25px}.trust-row{gap:20px;font-size:10px}.install-section{padding-bottom:36px}.preview-label{font-size:7px}.copy-command{min-height:40px}.github-link{min-height:44px;align-items:center}}
|
|
74
|
+
|
|
75
|
+
.preview-topbar .brand-mark{width:23px;height:23px}.preview-provider-mark{display:flex;align-items:center}.preview-provider-mark img{width:30px;height:30px;object-fit:contain}.preview-body{grid-template-columns:minmax(0,1fr) 285px}.preview-receipt canvas{filter:drop-shadow(0 2px 2px #0007) drop-shadow(0 10px 14px #0006)}.preview-metrics>div:first-child{border-top-color:#353b40}.install-command{background:#111418;border-color:#2d3338}.preview-bars i{background:linear-gradient(to bottom,#37ec85,#278451)}
|
|
76
|
+
@media(max-width:1000px){.preview-body{grid-template-columns:minmax(0,1fr) 245px}}
|
|
77
|
+
@media(max-width:760px){.preview-body{grid-template-columns:1fr}.preview-receipt{max-width:335px}.preview-topbar .brand-mark{width:20px;height:20px}}
|
|
78
|
+
|
|
79
|
+
.preview-provider .codex-product-mark{width:29px;height:29px;filter:invert(1);opacity:.93}
|
|
80
|
+
.preview-providers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.preview-providers .preview-provider{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px 12px;margin:0;padding:17px}.preview-providers .preview-provider-mark{grid-column:1;grid-row:1}.preview-providers .preview-provider>div{grid-column:2;grid-row:1}.preview-providers .preview-provider b{grid-column:2/-1;grid-row:2;margin:0;font-variant-numeric:tabular-nums}.preview-providers .preview-active{grid-column:3;grid-row:1}.preview-legend{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.preview-chart .preview-legend .claude{color:#7aade7}.preview-bars i{display:flex;flex-direction:column;background:none;overflow:hidden}.preview-codex-bar{height:70%;background:linear-gradient(to bottom,#37ec85,#278451)}.preview-claude-bar{height:30%;background:#6799ce}
|
|
81
|
+
@media(max-width:1000px){.preview-providers{grid-template-columns:1fr}.preview-providers .preview-provider b{grid-column:3;grid-row:1;align-self:center}.preview-chart .preview-legend{gap:8px}}
|
|
82
|
+
.privacy-details{margin-top:18px;color:var(--muted);font-size:11px}.privacy-details summary{cursor:pointer;width:max-content}.privacy-details p{max-width:440px;margin-top:10px;font-size:11px;line-height:1.6}.privacy-details a{text-decoration:underline;text-underline-offset:3px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"><meta name="theme-color" content="#080b0d"><meta name="description" content="See what your Codex and Claude Code usage would have cost via API. Local, read-only, no account."><title>SubValue — Know what your AI subscription is worth</title><link rel="icon" href="./icon.svg"><link rel="stylesheet" href="./landing.css"></head><body><div id="landing"></div><script type="module" src="./landing.js"></script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './apps/web/src/landing.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 64 64"><rect width="64" height="64" rx="12" fill="#0a0c0e"/><path d="M4 18V4h14v4H8v10H4Zm10 6h10V14h4v14H14v-4Z" transform="translate(8 8) scale(1.5)" fill="#37ec85"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="#37ec85"><path d="M4 18V4h14v4H8v10H4Zm10 6h10V14h4v14H14v-4Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="currentColor"><path d="M4 18V4h14v4H8v10H4Zm10 6h10V14h4v14H14v-4Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="#f5f5f3"><path d="M4 18V4h14v4H8v10H4Zm10 6h10V14h4v14H14v-4Z"/></svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export const subscriptionVerified='2026-10-05';
|
|
4
|
+
const openai='https://learn.chatgpt.com/docs/pricing',claude='https://claude.com/pricing';
|
|
5
|
+
export const subscriptionPlans =[
|
|
6
|
+
{id:'chatgpt-free',provider:'codex',name:'ChatGPT Free',monthly:0,interval:'monthly',source:openai},
|
|
7
|
+
{id:'chatgpt-go',provider:'codex',name:'ChatGPT Go',monthly:8,interval:'monthly',source:openai},
|
|
8
|
+
{id:'chatgpt-plus',provider:'codex',name:'ChatGPT Plus',monthly:20,interval:'monthly',source:openai},
|
|
9
|
+
...[100,200,500].map(monthly=>({id:`chatgpt-pro-${monthly}`,provider:'codex' ,name:'ChatGPT Pro',monthly,interval:'monthly' ,source:openai})),
|
|
10
|
+
{id:'chatgpt-business-monthly',provider:'codex',name:'ChatGPT Business',monthly:25,interval:'monthly',perSeat:true,source:openai},
|
|
11
|
+
{id:'chatgpt-business-annual',provider:'codex',name:'ChatGPT Business',monthly:20,annual:240,interval:'annual',perSeat:true,source:openai},
|
|
12
|
+
{id:'claude-pro-monthly',provider:'claude',name:'Claude Pro',monthly:20,interval:'monthly',source:claude},
|
|
13
|
+
{id:'claude-pro-annual',provider:'claude',name:'Claude Pro',monthly:200/12,annual:200,interval:'annual',source:claude},
|
|
14
|
+
{id:'claude-max-5x',provider:'claude',name:'Claude Max 5x',monthly:100,interval:'monthly',source:'https://support.claude.com/en/articles/11049741-what-is-the-max-plan'},
|
|
15
|
+
{id:'claude-max-20x',provider:'claude',name:'Claude Max 20x',monthly:200,interval:'monthly',source:'https://support.claude.com/en/articles/11049741-what-is-the-max-plan'},
|
|
16
|
+
{id:'claude-team-standard-monthly',provider:'claude',name:'Claude Team · Standard seat',monthly:25,interval:'monthly',perSeat:true,source:claude},
|
|
17
|
+
{id:'claude-team-standard-annual',provider:'claude',name:'Claude Team · Standard seat',monthly:20,annual:240,interval:'annual',perSeat:true,source:claude},
|
|
18
|
+
{id:'claude-team-premium-monthly',provider:'claude',name:'Claude Team · Premium seat',monthly:125,interval:'monthly',perSeat:true,source:claude},
|
|
19
|
+
{id:'claude-team-premium-annual',provider:'claude',name:'Claude Team · Premium seat',monthly:100,annual:1200,interval:'annual',perSeat:true,source:claude}
|
|
20
|
+
];
|
|
21
|
+
export function subscriptionPlan(provider ,id ) {return subscriptionPlans.find(p=>p.provider===provider&&p.id===id);}
|
|
22
|
+
export function subscriptionPlanLabel(p ) {return `${p.name} · $${p.interval==='annual'?p.annual+'/year':p.monthly+'/month'}${p.perSeat?' / seat':''}`;}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
|
|
2
|
+
import {product} from '../../ui/src/brand.js';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export const money=(n ,signed=false) =>n===null?'Unavailable':`${signed&&n>=0?'+':''}${new Intl.NumberFormat('en-US',{style:'currency',currency:'USD'}).format(n)}`;
|
|
6
|
+
/** Compare only the displayed priced amount; preserve uncertainty and billing eligibility. */
|
|
7
|
+
export function comparisonForDisplay(s ) {
|
|
8
|
+
const comparison=s.total.comparison,amount=s.total.apiEquivalent??s.total.knownSubtotal;
|
|
9
|
+
if(amount===null||comparison.subscription===null)return comparison;
|
|
10
|
+
return {...comparison,value:comparison.value??amount-comparison.subscription,roi:comparison.roi??(comparison.subscription>0?amount/comparison.subscription:null)};
|
|
11
|
+
}
|
|
12
|
+
export function receiptModel(s ,generatedAt=new Date()) {
|
|
13
|
+
const rows =[];
|
|
14
|
+
for(const p of s.providers.filter(p=>p.records>0&&p.visible!==false)){
|
|
15
|
+
rows.push({left:p.provider==='codex'?'CODEX':'CLAUDE CODE',right:'',strong:true});
|
|
16
|
+
if(p.tokenBreakdown){
|
|
17
|
+
for(const [label,value] of [['Input Tokens',p.tokenBreakdown.input],['Output Tokens',p.tokenBreakdown.output],['Cache Reads',p.tokenBreakdown.cacheRead]] )rows.push({left:label,right:value===null?'Unknown':value.toLocaleString('en-US')});
|
|
18
|
+
}else if(p.tokens!==undefined)rows.push({left:p.tokensPartial?'Known Tokens':'Tokens',right:p.tokens===null?'Unknown':p.tokens.toLocaleString('en-US')});
|
|
19
|
+
const amount=p.apiEquivalent??p.knownSubtotal;
|
|
20
|
+
rows.push({left:'Estimated API Cost',right:amount===null?'—':money(amount)});
|
|
21
|
+
rows.push({left:'',right:''});
|
|
22
|
+
}
|
|
23
|
+
const amount=s.total.apiEquivalent??s.total.knownSubtotal;
|
|
24
|
+
rows.push({left:'Total API Equivalent',right:amount===null?'—':money(amount),strong:true});
|
|
25
|
+
const comp=comparisonForDisplay(s);if(comp.subscription!==null)rows.push({left:'Subscription Cost',right:money(comp.subscription)});
|
|
26
|
+
const value=comp.value;
|
|
27
|
+
if(value!==null)rows.push({left:'You Saved',right:money(value,true),accent:value>=0?'positive':'negative',strong:true});
|
|
28
|
+
// With partial pricing, compare only the printed known amount to the declared
|
|
29
|
+
// prorated subscription. The coverage footer stays visible; no outcome is inferred.
|
|
30
|
+
const multiple=comp.roi;
|
|
31
|
+
if(multiple!==null)rows.push({left:'',right:''},{left:'VALUE MULTIPLE',right:`${multiple.toFixed(2)}×`,accent:multiple>=1?'positive':'negative',strong:true});
|
|
32
|
+
if(comp.breakEven)rows.push({left:'BREAK-EVEN',right:new Date(comp.breakEven+'T12:00:00').toLocaleDateString('en-US',{month:'short',day:'numeric'}).toUpperCase()});
|
|
33
|
+
const outcome=comp.outcome==='positive'?'YOUR PLAN WAS WORTH IT':comp.outcome==='negative'?'API WOULD HAVE BEEN CHEAPER':'';
|
|
34
|
+
const coverage=s.total.apiEquivalent===null&&s.total.priceCoverage!==null?`${Math.round(s.total.priceCoverage*100)}% priced · `:'';
|
|
35
|
+
const date=(value )=>new Date(value).toLocaleDateString('en-US',{month:'short',day:'numeric',year:'numeric'});
|
|
36
|
+
const generated=generatedAt.toLocaleString('en-US',{month:'short',day:'numeric',year:'numeric',hour:'numeric',minute:'2-digit',hour12:true}).replace(' at ', ' ');
|
|
37
|
+
return {period:s.range.label.toUpperCase(),periodDetail:date(s.range.from)+' – '+date(new Date(Date.parse(s.range.until)-1).toISOString()),generated,rows,outcome,confidence:s.historyPartial?`${coverage}API equivalent · Partial history`:`${coverage}API equivalent · ${s.confidence==='HIGH'?'High confidence':'Incomplete'}`,demo:s.demo};
|
|
38
|
+
}
|
|
39
|
+
export async function receiptFonts() {if(typeof document!=='undefined'&&document.fonts)await Promise.all([document.fonts.load('14px "Plex Mono"'),document.fonts.load('600 14px "Plex Mono"')]);}
|
|
40
|
+
const paperTextures=new WeakMap ();
|
|
41
|
+
function paperTexture(canvas ) {
|
|
42
|
+
const document=canvas.ownerDocument;let texture=paperTextures.get(document);if(texture)return texture;
|
|
43
|
+
texture=document.createElement('canvas');texture.width=64;texture.height=64;
|
|
44
|
+
const context=texture.getContext('2d') ;const pixels=context.createImageData(64,64);let seed=619;
|
|
45
|
+
for(let i=0;i<64*64;i++){seed=(Math.imul(seed,1664525)+1013904223)>>>0;if(seed%7!==0)continue;const color=seed%2?255:0;pixels.data.set([color,color,color,color?4:8],i*4);}
|
|
46
|
+
context.putImageData(pixels,0,0);paperTextures.set(document,texture);return texture;
|
|
47
|
+
}
|
|
48
|
+
const rowHeight=(row )=>!row.left&&!row.right?34:!row.right?34:row.left==='VALUE MULTIPLE'?46:row.accent?32:28;
|
|
49
|
+
export function drawReceipt(canvas ,model ) {
|
|
50
|
+
const width=360,height=196+model.rows.reduce((n,row)=>n+rowHeight(row),0)+174,scale=6;
|
|
51
|
+
canvas.width=width*scale;canvas.height=height*scale;canvas.style.aspectRatio=`${width}/${height}`;
|
|
52
|
+
const c=canvas.getContext('2d');if(!c)throw new Error('Canvas unavailable');c.scale(scale,scale);
|
|
53
|
+
// The same clipped paper silhouette is used in preview and PNG, including both torn edges.
|
|
54
|
+
c.beginPath();c.moveTo(0,7);
|
|
55
|
+
for(let x=0;x<width;x+=10){const tooth=4+(x%3);c.lineTo(x+5,tooth);c.lineTo(x+10,8);}
|
|
56
|
+
c.lineTo(width,height-8);for(let x=width;x>0;x-=10){c.lineTo(x-5,height-4-(x%3));c.lineTo(x-10,height-8);}c.closePath();
|
|
57
|
+
const paper=c.createLinearGradient(0,0,width*.3,height);paper.addColorStop(0,'#181e24');paper.addColorStop(.48,'#131920');paper.addColorStop(1,'#11171c');c.fillStyle=paper;c.fill();c.save();c.clip();
|
|
58
|
+
c.fillStyle=c.createPattern(paperTexture(canvas),'repeat') ;c.fillRect(0,0,width,height);
|
|
59
|
+
c.restore();c.strokeStyle='#b4b8bd20';c.lineWidth=.6;c.stroke();
|
|
60
|
+
const mono='"Plex Mono", Consolas, monospace',left=24,right=width-24;
|
|
61
|
+
const text=(value ,x ,y ,size ,color='#e3e4e5',align ='left',bold=false,maxWidth=width-48)=>{
|
|
62
|
+
c.font=`${bold?'600 ':''}${size}px ${mono}`;while(c.measureText(value).width>maxWidth&&size>8){size-=.5;c.font=`${bold?'600 ':''}${size}px ${mono}`;}
|
|
63
|
+
c.fillStyle=color;c.textAlign=align;c.fillText(value,x,y);
|
|
64
|
+
};
|
|
65
|
+
const line=(y )=>{c.strokeStyle='#6c6f754f';c.lineWidth=1;c.setLineDash([4,5]);c.beginPath();c.moveTo(left,y);c.lineTo(right,y);c.stroke();c.setLineDash([]);};
|
|
66
|
+
text(product.name,width/2,64,29,'#f0f0ef','center');text('USAGE RECEIPT',width/2,92,13,'#b6b8bd','center');
|
|
67
|
+
if(model.demo)text('EXAMPLE DATA',width/2,112,10,'#a3a5a9','center');
|
|
68
|
+
text('Period',left,137,12.5,'#b4b5b9');text(model.periodDetail,right,137,12.5,'#d0d1d5','right',false,245);
|
|
69
|
+
text('Generated',left,158,12.5,'#b4b5b9');text(model.generated,right,158,12.5,'#d0d1d5','right',false,230);line(180);
|
|
70
|
+
let y=210;
|
|
71
|
+
for(const row of model.rows){const step=rowHeight(row);if(!row.left&&!row.right){line(y-9);y+=step;continue;}
|
|
72
|
+
const provider=!row.right,multiple=row.left==='VALUE MULTIPLE';const label=provider?(row.left==='CODEX'?'Codex':'Claude Code'):row.left;
|
|
73
|
+
const color=row.accent==='positive'?'#37ec85':row.accent==='negative'?'#ed9987':row.strong?'#e1e2e4':'#bdc0c6';
|
|
74
|
+
const valueSize=multiple?25:row.accent?22:row.strong?18:16;
|
|
75
|
+
c.font=`${valueSize}px ${mono}`;const valueWidth=c.measureText(row.right).width;
|
|
76
|
+
text(label,left,y,multiple?17:provider?17:row.strong?14:14,multiple?'#e1e2e4':color,'left',provider,provider?width-48:width-62-valueWidth);
|
|
77
|
+
text(row.right,right,y,valueSize,row.accent?color:'#e3e4e7','right',row.strong,160);y+=step;
|
|
78
|
+
}
|
|
79
|
+
line(y-3);text(model.outcome,width/2,y+27,10,model.outcome==='YOUR PLAN WAS WORTH IT'?'#37ec85':model.outcome==='API WOULD HAVE BEEN CHEAPER'?'#ed9987':'#b2b3b9','center');
|
|
80
|
+
text(model.confidence,width/2,y+(model.outcome?51:28),11,'#a9adb5','center');
|
|
81
|
+
const footerDivider=y+73;
|
|
82
|
+
c.strokeStyle='#767b8126';c.beginPath();c.moveTo(left,footerDivider);c.lineTo(right,footerDivider);c.stroke();
|
|
83
|
+
text(product.site,left,height-44,11.5,'#a9adb5');
|
|
84
|
+
// Decorative print detail only: fixed pattern, no symbology or user-derived information.
|
|
85
|
+
const pattern=[2,1,1,1,3,1,1,2,2,1,1,1,4,1,1,2,3,1,2,1,1,2,2,1,3,1,1,1,2,2,1,1,3,1,2,1,1,2,4,1,1,1,2,1,3,2,1,1,2,1,1,2,3,1,2,1,1,1,3,2,1,1,2,1];
|
|
86
|
+
const module=134/pattern.reduce((n,w)=>n+w,0);let bx=right-134;
|
|
87
|
+
const barcodeHeight=41,barcodeTop=footerDivider+(height-8-footerDivider-barcodeHeight)/2;
|
|
88
|
+
c.fillStyle='#b8bec8c9';for(const [i,w]of pattern.entries()){if(i%2===0)c.fillRect(bx,barcodeTop,w*module,barcodeHeight);bx+=w*module;}
|
|
89
|
+
}
|
|
90
|
+
export async function exportReceipt(canvas ) {const blob=await new Promise ((resolve,reject)=>canvas.toBlob(b=>b?resolve(b):reject(new Error('PNG export failed')),'image/png'));const url=URL.createObjectURL(blob);const a=document.createElement('a');a.href=url;a.download=product.exportBasename+'.png';a.click();setTimeout(()=>URL.revokeObjectURL(url),5000);}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Display identity only. Package names and local data paths are intentionally independent. */
|
|
2
|
+
export const product = {name:'SubValue',site:'subvalue.dev',exportBasename:'subvalue-receipt'};
|
|
3
|
+
// Opposed measurement corners. No letter, currency sign or provider-derived geometry.
|
|
4
|
+
export const markPath = 'M4 18V4h14v4H8v10H4Zm10 6h10V14h4v14H14v-4Z';
|
|
5
|
+
export const productMark = `<svg viewBox="0 0 32 32" fill="currentColor" aria-hidden="true"><path d="${markPath}"/></svg>`;
|