Edge Delivery Services
Generators for the files you write by hand on every Edge Delivery project
Fill in a short form, check the preview, download a zip. Free, with no account. Everything runs in your browser and nothing you type is sent to us.
A starting point an engineer reviews. Every format was checked against Adobe's public documentation and boilerplate repositories on 13 November 2026, and each generator links the pages it was checked against. The output is tested with parsers, Adobe's lint rules and sample data. It was not published to a live Edge Delivery Services site, so preview your own result before you rely on it.
Generator 1
Block generator
Name the block and list what an author fills in. You get the block folder with a decorate(block) that reads the rows in order, scoped CSS, the table an author writes and, for the Universal Editor, the definition, model and filter entries.
- Note: The code reads block fields by row position. Tell authors to keep an empty row when they leave a field out.
import { createOptimizedPicture } from '../../scripts/aem.js';
/*
* Teaser block (teaser).
* A starting point written by Surge Migrate on 13 Nov 2026. Review it before you ship it.
*
* Rows this block expects, in order:
* row 1: image (image)
* row 2: body (richtext)
* row 3: cta (link)
* Options (extra classes on the block): dark.
* Authors write these rows in the block table. Keep an empty row for a field they leave out.
*/
const FIELDS = ['image', 'body', 'cta'];
function isEmpty(el) {
return !el.textContent.trim() && !el.querySelector('picture, img, video, iframe, a');
}
function optimiseImages(root) {
root.querySelectorAll('picture > img').forEach((img) => {
const picture = createOptimizedPicture(img.src, img.alt, false, [{ width: '750' }]);
img.closest('picture').replaceWith(picture);
});
}
export default function decorate(block) {
const rows = [...block.children];
// Block fields: one row each. The row keeps its place; it only gets a class.
FIELDS.forEach((field, i) => {
const row = rows[i];
if (!row) return;
row.classList.add(`teaser-${field}`);
if (isEmpty(row)) row.classList.add('teaser-empty');
});
optimiseImages(block);
}
Verified here: the JavaScript parses and its decorate runs on a sample block; blocks from this generator pass the ESLint and Stylelint rules of Adobe's two boilerplates (run on 13 November 2026). Not verified: rendering on a live site, or your design. How-to pages: block anatomy, block options, Universal Editor definitions.
Format checked against Adobe's documentation on 13 November 2026: Markup, sections, blocks and auto blocking, adobe/aem-boilerplate (commit 3acb6d9, 7 Nov 2026).
Generator 2
Redirects sheet
Paste old and new URLs: two columns from a spreadsheet, or one pair per line. You get the redirects sheet as .xlsx, CSV and tab-separated rows, with duplicates, chains and loops found first.
- Fix: Line 11: "/press/*" has a wildcard. Adobe does not support wildcards in the redirects sheet; set pattern redirects on your CDN.
- Fix: Loop: /a -> /b -> /a (lines 7, 8). These rules were left out.
- Check: Line 5: Source "/news/2019/launch/" ends with a slash. Adobe's page does not say whether "/news/2019/launch" and "/news/2019/launch/" match the same rule. Test both on preview.
- Check: Line 6: Source "/search?q=shoes" has a query string. Adobe documents Source as a path only. Test it on preview, or handle query strings on your CDN.
- Check: Line 9: Source "/About-Us" has upper-case letters. Check on preview that the old URL, typed exactly like this, redirects.
- Check: Line 3: chain of 2 redirects: /old-products -> /products -> /shop. Point "/old-products" straight at "/shop".
- Note: Line 10 repeats line 3 ("/old-products"). It was left out.
Source,Destination
/content/site/en/about.html,/about
/old-products,/products
/products,/shop
/news/2019/launch/,/blog/launch
/search?q=shoes,/shop/shoes
/About-Us,/about
What Adobe documents: Source is a path, Destination a path or a full URL; wildcards are not supported in the sheet (use your CDN); if a workbook has several sheets only helix-default is used. Adobe does not say how a trailing slash, a query string or upper case in Source is matched, so those are flagged for a test on preview. Not verified: these rules on a live site. How-to: the redirects sheet.
Format checked against Adobe's documentation on 13 November 2026: Redirects, Limits, Spreadsheets and JSON.
Generator 3
Query index configuration
Build helix-query.yaml: which pages go into an index and which properties are read from each page. The buttons add the properties Adobe's indexing page lists.
# Query index configuration for Edge Delivery Services.
# Written by Surge Migrate on 13 Nov 2026. Review it, then check each property with: aem up --print-index
# Reference: https://www.aem.live/docs/indexing-reference
indices:
pages:
include:
- '/**'
exclude:
- '/drafts/**'
target: /query-index.json
properties:
title:
select: 'head > meta[property="og:title"]'
value: 'attribute(el, "content")'
description:
select: 'head > meta[name="description"]'
value: 'attribute(el, "content")'
image:
select: 'head > meta[property="og:image"]'
value: 'attribute(el, "content")'
lastModified:
select: none
value: 'parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT")'
robots:
select: 'head > meta[name="robots"]'
value: 'attribute(el, "content")'
Which applies when. Sites on the configuration service (new sites): the index definition lives in the site configuration; use Adobe's Index Admin tool or post this file with the command in the zip, and remove any helix-query.yaml from GitHub. Older sites without it: commit helix-query.yaml to the repository root. Verified here: the YAML parses back to the same data and fits Adobe's published index schema. Not verified: your selectors on your pages; check them with aem up --print-index. How-to: query index set-up.
Format checked against Adobe's documentation on 13 November 2026: Indexing, Indexing reference, Setting up the configuration service, helix-shared index and sitemap schemas, Limits.
Generator 4
Sitemap configuration
Build helix-sitemap.yaml: one sitemap from one index, or one per language with hreflang links and a generated sitemap index. With no configuration at all, Edge Delivery Services already writes /sitemap.xml.
- Note: Sitemap "site": it has languages, so its own source and destination were left out.
- Note: With an index list, AEM writes /sitemap-index.xml itself. Adobe says to remove a static sitemap-index.xml from the repository, as it is no longer served.
# Sitemap configuration for Edge Delivery Services.
# Written by Surge Migrate on 13 Nov 2026. Review it before use.
# Reference: https://www.aem.live/developer/sitemap
sitemaps:
site:
origin: 'https://www.example.com'
default: en
lastmod: YYYY-MM-DD
languages:
en:
source: /en/query-index.json
destination: /sitemap-en.xml
hreflang: en
alternate: '/en/{path}'
fr:
source: /fr/query-index.json
destination: /sitemap-fr.xml
hreflang: fr
alternate: '/fr/{path}'
index:
- /sitemap-en.xml
- /sitemap-fr.xml
Which applies when. Sites on the configuration service: post the file with the command in the zip. Older sites: commit helix-sitemap.yaml to the repository root. Adobe documents a default language; the published schema does not list that key, and we follow the documentation. Verified here: the YAML parses back to the same data and fits Adobe's published sitemap schema. Not verified: a sitemap built from it on a live site. This form writes one sitemap entry; add more by hand in the file.
Format checked against Adobe's documentation on 13 November 2026: Sitemaps, Setting up the configuration service, helix-shared index and sitemap schemas, Limits.
Generator 5
Metadata: bulk sheet and page table
Set metadata for many pages at once with the metadata sheet: one row per URL pattern, one column per property. You also get a ready Metadata table for a single page.
| URL | Row | |||
|---|---|---|---|---|
Paste rows from a spreadsheet
Binary file, 1,729 bytes. Download the zip to open it.What Adobe documents: the sheet is called metadata (metadata.xlsx in SharePoint) and sits in the content root; it is read top to bottom, so the site-wide ** row comes first; a Metadata table on a page wins over it; a value of "" removes a property. Verified here: the files are built and read back. Not verified: the sheet on a live site. How-to: bulk metadata, page metadata.
Format checked against Adobe's documentation on 13 November 2026: Bulk metadata, Page metadata, Special metadata properties, Limits.
Generator 6
Project files: head.html, site configuration, robots.txt, .hlxignore
The small files every project starts with. Leave organisation, site and content URL empty if you only want head.html, robots.txt and .hlxignore.
<meta
http-equiv="Content-Security-Policy"
content="script-src 'nonce-aem' 'strict-dynamic' 'unsafe-inline' http: https:; base-uri 'self'; object-src 'none'; frame-src 'self' https:; require-trusted-types-for 'script';"
move-to-http-header="true"
/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<script nonce="aem" src="/scripts/aem.js" type="module"></script>
<script nonce="aem" src="/scripts/scripts.js" type="module"></script>
<link rel="stylesheet" href="/styles/styles.css"/>
Which applies when. Adobe's current way is the configuration service: the content source, robots rules, index and sitemap definitions live in the site configuration, set with the Admin API or the tools at tools.aem.live. The zip has the documented request body and curl command; it holds no token, and nothing here was sent. fstab.yaml is the older, file-based form: adobe/aem-boilerplate no longer ships one, and the Universal Editor tutorial reads it once at set-up and then says it can be deleted. On preview and live hosts Adobe always serves a robots.txt that disallows everything; yours applies on the production domain. Not written here: access control, CDN settings, custom headers and Sidekick configuration. How-to: head.html and 404.
Format checked against Adobe's documentation on 13 November 2026: Anatomy of a project, Setting up the configuration service, AEM Admin API, FAQ (fstab.yaml), Universal Editor developer tutorial, Best practices for handling robots, Limits, adobe/aem-boilerplate (commit 3acb6d9, 7 Nov 2026), adobe-rnd/aem-boilerplate-xwalk (commit 6210531, 21 May 2026).
Moving a whole site? These tools write single files. Surge Migrate also converts whole pages into Edge Delivery documents, and you check the result before you install anything. The import kit turns a component-to-block mapping into an import script and starter blocks, and the how-to pages explain each file above step by step.
Plan and build
Free tools that go with this one
This tool does one job in the planning around a move. Effort, redirect mapping, and code and request builders for the work around a move.
- Universal Editor config checkLists ids that do not line up across component-definition.json, component-models.json and component-filters.json, blocks authors cannot add and bad field names, with a draft of the mechanical fixes.
- Redirect workbenchFinds duplicates, loops, chains and lines a host will not take in a redirect list, then writes draft files for AEM as a Cloud Service, Edge Delivery Services, Shopify, Wix, Framer, Ghost, Apache, nginx and Netlify.
- Link auditChecks every link, image and DAM file on a site's pages once, and lists broken, unverifiable and redirected links by page and by AEM component or Edge Delivery block, flagging old or staging hosts you name.
All free tools, by step and by who they are for →
Moving the whole site? Converted automatically. Checked before you install.
Enter your page addresses. Surge Migrate reads the public pages, converts them into the import format of the system you are moving to, and reports what it could not place. You check the result first, then run the import yourself.