Skip to content

Navigation

SitePack

SitePack is an open standard for packaging website data for backup and migration between systems.

Projects

  • sitepack-spec/ — specification, schemas, registries, and examples.
  • sitepack-tools-node/ — Node.js reference validator.
  • sitepack-tools-php/ — PHP reference validator.

Quickstart

Validate examples with the Node tool:

Code
cd sitepack-tools-node
npm ci
npm run validate-examples -- ../sitepack-spec/examples

Validate one unpacked package:

Code
node bin/sitepack-validate <packageRoot>

Validate an envelope header:

Code
node bin/sitepack-validate envelope <path-to-enc-json>

Validate a volume set:

Code
node bin/sitepack-validate volumes <path-to-volumes-json>

Create a volume set:

Code
node bin/sitepack-volumes create <packageRoot> <outDir> --max-part-size 104857600

PHP quickstart:

Code
cd sitepack-tools-php
composer install
./bin/sitepack-validate --quiet package <packageRoot>
./bin/sitepack-validate envelope <path-to-enc-json>
./bin/sitepack-validate volumes <path-to-volumes-json>
php scripts/validate-examples.php ../sitepack-spec/examples

Repository layout

Code
.
├── sitepack-spec/
├── sitepack-tools-node/
└── sitepack-tools-php/

Versioning

The specification and tools follow SemVer. See subproject changelogs for details.

License

MIT. See LICENSE in the repository root and in each subproject.

Contributing

See CONTRIBUTING.md.

Search documentation

Enter at least 2 characters

    Settings

    Theme
    Font size
    Page width