# baskingspot

> Zig is cold-blooded. Come bask. Libraries between std and your application.

## Libraries

- [stdx](https://baskingspot.dev/stdx/): Extensions to the Zig 0.17 standard library: fixed-capacity containers, strict parsers, IPv4 types, and the primitives std lacks.
- [testingx](https://baskingspot.dev/testingx/): A plain-text test runner, Go-style benchmarks, and compile-time test fixtures for Zig 0.17.
- [cli](https://baskingspot.dev/cli/): Command-line flags for Zig, the getopt_long way: -xvf, --out=file, and a while loop.
- [fastmem](https://baskingspot.dev/fastmem/): Fast memcpy, memmove, and memset for Zig.
- [uring](https://baskingspot.dev/uring/): An io_uring completion loop for Zig: one ring, one tick, and a user_data type you define.
- [metrics](https://baskingspot.dev/metrics/): Prometheus text exposition for Zig: write metrics to any writer, with counters, gauges, and histograms above it, and no HTTP.
- [tracy](https://baskingspot.dev/tracy/): Tracy profiler bindings for Zig: zones, plots, messages, and an allocator, compiled out when disabled.
- [http](https://baskingspot.dev/http/): HTTP/1.1 and HTTP/2 in Zig: field-value parsers, sans-I/O connection machines, and the engines that put them on a socket.
- [tls](https://baskingspot.dev/tls/): TLS 1.3 in Zig: a sans-I/O engine over caller-owned buffers, with blocking, nonblocking, and kTLS integrations.
- [grpc](https://baskingspot.dev/grpc/): gRPC in Zig: a client and a server over HTTP/2, with no code generation.
- [websocket](https://baskingspot.dev/websocket/): WebSocket frames and the upgrade handshake in Zig, with no IO and no allocator.
- [pg](https://baskingspot.dev/pg/): PostgreSQL wire protocol in Zig: frontend and backend message codecs, with no IO and no allocator.
- [sigv4](https://baskingspot.dev/sigv4/): AWS Signature Version 4 request signing in Zig: the canonical request, the string to sign, and the HMAC-SHA256 signing key, with no I/O.
- [compress](https://baskingspot.dev/compress/): Compression codecs in pure Zig: Snappy, DEFLATE, gzip, zlib, Zstandard, and Brotli.
- [image](https://baskingspot.dev/image/): Image decoders and encoders in Zig with no C: PNG, JPEG, GIF, WebP, TIFF, JPEG XL, and more.
- [toml](https://baskingspot.dev/toml/): TOML 1.1.0 in Zig: a strict parser, a value tree, and a writer.
- [json5](https://baskingspot.dev/json5/): JSON5 in Zig: unquoted keys, single quotes, hex numbers, NaN, and comments.
- [html](https://baskingspot.dev/html/): HTML in Zig, the way the WHATWG HTML standard parses it.
- [protobuf](https://baskingspot.dev/protobuf/): Protocol Buffers in Zig: the wire format, and a typed layer over plain structs.
- [bencode](https://baskingspot.dev/bencode/): Bencode in Zig: an incremental reader, a value tree, and a writer.
- [utf](https://baskingspot.dev/utf/): SIMD Unicode validation and transcoding, plus base64, in Zig with no C.
- [aho-corasick](https://baskingspot.dev/aho-corasick/): Aho-Corasick multi-pattern search in Zig, with the automaton built at comptime.

## Tools

- [zigdoc](https://baskingspot.dev/zigdoc/): Zig standard library documentation in the terminal.
- [ziglint](https://baskingspot.dev/ziglint/): Opinionated linting to keep your agent in check.

## Skills

- [zig-017](https://github.com/baskingspot/skills/tree/main/skills/zig-017): Write and port Zig 0.17: the 0.16 to 0.17 migration, and the primitive behind a hand-written type.
- [zig-016](https://github.com/baskingspot/skills/tree/main/skills/zig-016): Write Zig 0.16 with tested primitives, testingx, and the house style.
- [tiger-style](https://github.com/baskingspot/skills/tree/main/skills/tiger-style): TigerBeetle's Tiger Style, restated. Safety over performance over developer experience.

## For agents

- [llms.txt](https://baskingspot.dev/llms.txt): this roster, in the llmstxt.org format.
- Every page has a markdown copy. `/stdx/` is `/stdx/index.md`.
