Skip to main content

Module size

Module size 

Source
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§

BundleVerifier
Post-export bundle verification
SizeEstimate
Pre-export size estimate

Enums§

SizeError
Size-related errors
SizeLimitResult
Result of checking size limits
SizeWarning
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