Introduction
ASAR is a simple archive format from the Electron project. It joins many files into one without compressing them.
Structure
0Header size a 32-bit value, written with Chromium’s Pickle serialisation8 bytes8Header a JSON description of the directory tree, with offset and size of each filevariable…File data the contents of the files, one after anothervariable
Offsets are counted from the start of the file data and written as strings. Entries can carry SHA-256 integrity hashes, and identical files are stored once.
Not described
This page is a first outline. The details of the layout are not yet described here.
Known, not yet covered
- Reference: the Pickle encoding, the header’s properties and unpacked files.
- Viewer: the site has no viewer for this format.
Links
Developers
- @electron/asar – command-line tool and library (Node.js)
Reference
- asar README – describes the archive layout