BadgeSize
This service creates badges based on the content length of files which lives in your repository, npm package or CDN.
The reported size is based on the returned Content-Length by the site / CDN used to fetch requested file, by default this does not include the size of the returned headers but it will be the exact size that is your end-users will experience.
Known differences from previous version
- The reported size for the GZip and Brotli compression is based on the size reported by the site / CDN used to fetch the requested file, this provides a more accurate representaiton of the download impact / experience that your end-user / consumers will experience from the previous version (which used local compression).
- Does not support PNG response
- Does not support JSON response
- It uses a longer Cache-Control period to assist with reducing the overall costs of maintaining this service.
- Badges are automatically added to images based on the source of the file.
- Provides a generic compression type
any
which can be used to return your site / CDN's default compression algirithm.
Usage
See Usage
Badge Type | Example | Markdown Syntax |
---|---|---|
Raw full size | ![Full size](https://img.badgesize.io/nevware21/badgesize/main/README.md?label=Full%20size) | |
GZip Size | ![GZip size](https://img.badgesize.io/nevware21/badgesize/main/README.md?compression=gzip) | |
Note!: Github servers do not support brotli compression |
![Brotli size](https://img.badgesize.io/nevware21/badgesize/main/README.md?compression=brotli) | |
Default Compression | ![Compressed size](https://img.badgesize.io/nevware21/badgesize/main/README.md?compression=any) |
See Service Status
Please use this public GitHub repo for support to create Issues or requests.