← All APIs API

Archive API

Pack or unpack .fol archives server-side. Same format as the Archive Editor tool, byte for byte.

Endpoint

POST https://fish-gang.netlify.app/.netlify/functions/archive-fol

Format reference

A .fol file is: a JSON manifest, a single | byte, then concatenated raw file bytes.

Manifest entries: { "p": path, "s": sizeInBytes, "o": byteOffset }

Not zip-like, not compressed. Can be renamed to any extension without corruption.

Pack — request

{
  "action": "pack",
  "files": [
    { "path": "index.html", "contentBase64": "..." },
    { "path": "style.css",  "contentBase64": "..." }
  ]
}

Response: { "fileBase64": "..." } — base64 of the finished .fol file.

Unpack — request

{
  "action": "unpack",
  "fileBase64": "..."
}

Response: { "files": [{ "path", "contentBase64", "size" }] }

Limit: ~6MB total request size. For bigger archives, use the browser-based Archive Editor instead, which has no server payload limit.