# Zig std library offline

**URL:** <https://ziggit.dev/t/zig-std-library-offline/4537>\
**Category:** Help\
**Tags:** zig-docs\
**Created:** [June 2, 2024, 7:31am UTC](https://ziggit.dev/t/zig-std-library-offline/4537 "2024-06-02T07:31:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthon](https://ziggit.dev/user_avatar/ziggit.dev/anthon/32/8967_2.png) [@Anthon](https://ziggit.dev/u/Anthon)\
**Post date:** [June 2, 2024, 7:31am UTC](https://ziggit.dev/t/zig-std-library-offline/4537/1 "2024-06-02T07:31:00Z")

</div>

I’ll be travelling and have no idea what the WiFi/Internet connection is going to look like, so I like to take some documentation with me.

The Zig Language Reference states "This HTML document depends on no external files, so you can use it offline. ", so for that it was easy to have as a local copy.

The Zig Standard Library documentation doesn’t seem to be a single page. Is there some way to have local “server” provide the pages and search functionality?

I am not sure if the conversion described [here](https://ziggit.dev/t/a-new-zig-standard-library-documentation-mini-site-generator/2066) still works, that could be an alternative if there is no simple way to run the standard lib documenation server locally.

---

<div class="post-metadata">

**Author:** ![dimdin](https://ziggit.dev/user_avatar/ziggit.dev/dimdin/32/1457_2.png) [@dimdin](https://ziggit.dev/u/dimdin)\
**Post date:** [June 2, 2024, 7:36am UTC](https://ziggit.dev/t/zig-std-library-offline/4537/2 "2024-06-02T07:36:41Z")

</div>

`zig std` runs a local http server and serves the documentation.

---

<div class="post-metadata">

**Author:** ![Anthon](https://ziggit.dev/user_avatar/ziggit.dev/anthon/32/8967_2.png) [@Anthon](https://ziggit.dev/u/Anthon)\
**Post date:** [June 2, 2024, 8:03am UTC](https://ziggit.dev/t/zig-std-library-offline/4537/3 "2024-06-02T08:03:45Z")

</div>

Thanks,  
I got `error: FileNotFound` and the although the program did not exit, I could not connect with Firefox using copy and paste of the URL printed, which I originally thought would mean I did not have the source of the library (which of course is not true).

But it looks like the browser executable could not be found. I had to start using `zig std --no-open-browser`, which no longer gave me the `FileNotFound` erorr, and and then connect to the URL printed.

FWIW: Using Firefox on macOS on a Macbook M1

---

<div class="post-metadata">

**Author:** ![dimdin](https://ziggit.dev/user_avatar/ziggit.dev/dimdin/32/1457_2.png) [@dimdin](https://ziggit.dev/u/dimdin)\
**Post date:** [June 2, 2024, 8:17am UTC](https://ziggit.dev/t/zig-std-library-offline/4537/4 "2024-06-02T08:17:11Z")

</div>

In macOS zig 0.12.0 opening the url is missing. It is fixed in 0.13.0-dev.  
On 0.12.0 you can automate it by specifying the port like in:

```zig
open http://127.0.0.1:8008
zig std --port 8008 --no-open-browser

```
