Archives in memory, with no outside package (commons 0001-formatsFR-010). Writing: a POSIX ustar archive, a gzip stream of stored deflate blocks and a zip of stored entries (zip), each entry with a fixed time and mode and in the byte order of its path, so the bytes depend on the files alone (taken from erga's lib/ts/archive); and, where size matters more than the same bytes on every runtime, a zip of deflated entries (zipDeflated, through the web standard CompressionStream), the same bytes for the same files on one runtime and the same files unzipped on every runtime. Reading: a tar (ustar, pax and GNU long names), a gzip and a zip whose entries are stored or deflated (through the web standard DecompressionStream), each checked (header checksums, CRC-32) and every path refused that would leave the folder it is unpacked into. This is what lets Stolos drop fflate and unpack a verified copy of its engine. A tar, gzipped or not, is also read as a stream (untarStream, readTarStream), an entry at a time with each entry's bytes a stream of their own, with the same checks, so that an archive larger than memory can be read (FR-059).
Whether a path inside an archive stays inside the folder it is unpacked into: relative, with / between its parts, no part .., no empty part but a trailing one, no backslash, no drive letter and no NUL.
The entries of a tar archive given as a stream of bytes, gzipped or not (told by its first two bytes), one at a time as they are asked for, so that an archive larger than memory is read with one chunk held (commons 0001-formatsFR-011). Every header is checked as untar checks it (checksum, pax and GNU long names, a safe path); a failure errors the stream with an ArchiveFailure. Each entry's readable MUST be read to its end or cancelled before the next entry is given; cancelling the stream of entries cancels the bytes.
A stream from a tar archive's bytes, gzipped or not, to its entries, to put in a pipeThrough as @std/tar's UntarStream is: see readTarStream for what it checks and how each entry's body is read (commons 0001-formatsFR-011).
A zip (APPNOTE 6.3) of the files as zip lays them out, but each entry deflated (method 8) through the web standard CompressionStream("deflate-raw"), or stored where deflating would not make it smaller (an empty or incompressible file). The bytes depend on the files alone on one runtime; another runtime's deflater may choose other (equally valid) bytes, so only what they unzip to is the same everywhere.
One link of a tar: a symbolic link names a path (relative to the link's own folder, or absolute), a hard link names the path of another entry of the archive.
One entry of a tar archive read as a stream: its header and its body as a stream (empty but for a file). The body MUST be read to its end or cancelled before the next entry is given, as with @std/tar's UntarStream.