2. Package structure

For developersVersion 1.0.0Last updated:

What matters about the structure: in sections/, each file is a block.

Package structure. Folder my-site with bos.json (required manifest), index.html (optional, its head is read), css/ (every .css is loaded), js/ (every .js and .mjs is loaded), assets/ (images, fonts and videos), i18n/ (texts per language) and sections/, where each file is a block. Default limits: 5000 files and 250 MB uncompressed. .php and .htaccess files are discarded.Package structure. Folder my-site with bos.json (required manifest), index.html (optional, its head is read), css/ (every .css is loaded), js/ (every .js and .mjs is loaded), assets/ (images, fonts and videos), i18n/ (texts per language) and sections/, where each file is a block. Default limits: 5000 files and 250 MB uncompressed. .php and .htaccess files are discarded.
mi-sitio/                  ← puede ir dentro de una carpeta contenedora en el .zip
├── bos.json               ← obligatorio: manifiesto con "format": 2 y "slug" (ver sección 6)
├── index.html             ← opcional: se lee su <head> (fuentes, CDNs, orden de CSS/JS)
├── css/                   ← todo .css se carga (también subcarpetas)
├── js/                    ← todo .js / .mjs se carga
├── assets/                ← imágenes, fuentes, vídeos...
└── sections/              ← UN ARCHIVO = UN BLOQUE
    ├── header.html
    ├── hero.html
    └── footer.html
  • Allowed files: html, css, js, mjs, json, images (jpg, png, gif, webp, avif, svg, ico), fonts (woff, woff2, ttf, otf, eot), media (mp4, webm, ogg, mp3, wav), pdf, vtt, txt and md. Everything else (for example .php or .htaccess) is discarded for security, as are paths with ../.
  • Ignored: node_modules/, .git/, __MACOSX/ and hidden files.
  • Default limits: 5000 files and 250 MB unpacked. They can be changed with the filters builder_os_max_files and builder_os_max_unpacked_bytes.

Multiple pages

Each file in /sections/ is a block you can reuse on any page. You can group them with data-bos-category or define the pages in bos.json so they are created automatically.

Links between pages

about.html links are automatically converted to /about/, and index.html points to the front page.