Expand description
Bundle size estimation and limits enforcement.
Provides pre-export size estimation to warn users before they spend time exporting/encrypting data that would exceed GitHub Pages limits.
Structs§
- Bundle
Verifier - Post-export bundle verification
- Size
Estimate - Pre-export size estimate
Enums§
- Size
Error - Size-related errors
- Size
Limit Result - Result of checking size limits
- Size
Warning - Size-related warnings
Constants§
- AEAD_
TAG_ OVERHEAD - AEAD authentication tag overhead per chunk (16 bytes)
- COMPRESSION_
RATIO - Typical compression ratio for text content (deflate)
- DEFAULT_
CHUNK_ SIZE - Default chunk size for encrypted payload (8 MiB)
- FILE_
SIZE_ WARNING_ BYTES - Warning threshold for file size (50 MiB)
- MAX_
FILE_ SIZE_ BYTES - Maximum file size for GitHub (100 MiB)
- MAX_
SITE_ SIZE_ BYTES - Maximum site size for GitHub Pages (1 GB)
- SITE_
SIZE_ WARNING_ BYTES - Warning threshold for total site size (900 MB - approaching limit)
- STATIC_
ASSETS_ SIZE - Estimated static assets size (HTML, JS, CSS, WASM vendor) - approximately 2 MB