> For the complete documentation index, see [llms.txt](https://ninjalerts.gitbook.io/bitcoin-ordinals-pizza-ninjas/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ninjalerts.gitbook.io/bitcoin-ordinals-pizza-ninjas/brotli-compression.md).

# Brotli Compression

Version 0.12.0 of the Ordinals [ord client](https://github.com/ordinals/ord) introduced first class support for Brotli Compression. To leverage this feature, all you need to do is use the `--compress` flag when inscribing.

{% embed url="<https://twitter.com/bruffstar/status/1742330507738644567>" %}

Brotli is a compression algorithm developed by Google, primarily used for web compression. It is particularly powerful for text (i.e. code), but can also be used for images and other forms of data.

Here are its key features:

1. **Efficiency and Speed**: Brotli provides better compression ratios compared to other popular algorithms like gzip and Deflate. It achieves this efficiency without compromising on speed, making it highly effective for web content compression.
2. **Dictionary-Based Compression**: One of the reasons for Brotli's efficiency is its use of a static dictionary. This dictionary contains common keywords, phrases, and other substrings frequently found in web pages and text-based data. This pre-set dictionary helps in achieving higher compression ratios.
3. **Versatility**: While it's mainly used for web data, such as HTML, CSS, and JavaScript files, Brotli is versatile enough to be used for other types of data too.
4. **Web Integration**: Brotli is widely supported across various web browsers and web servers. This widespread support has helped it become a standard for web content compression.
5. **Customizability**: Brotli allows for various levels of compression, balancing between speed and efficiency. This makes it adaptable for different needs and network conditions.
6. **Secure and Reliable**: It is designed to be secure and reliable, with no known vulnerabilities as of April 2023.
7. **Open Source**: Brotli is open source, which means it's freely available for use and modification, encouraging widespread adoption and continual improvement.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ninjalerts.gitbook.io/bitcoin-ordinals-pizza-ninjas/brotli-compression.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
