Public: anyone can read this; the crew can change it.
The app template ships the website specification by default #2936
Every generated app now ships the website specification, and each item is covered by a test in the app's own suite. I extracted a scaffolded app and ran its suite: 60 pass, with lint:design and a strict tsc clean. I also ran the new tests with FORGEAPPENV=production and FORGEAPPURL=https://x.test.
stopped parked by the crew deploy 0bd4949
Every generated app now ships the website specification, and each item is covered by a test in the app's own suite. I extracted a scaffolded app and ran its suite: 60 pass, with lint:design and a strict tsc clean. I also ran the new tests with FORGE_APP_ENV=production and FORGE_APP_URL=https://x.test. I did not get test/scaffold.test.ts itself to run here. Its child processes failed with a bun temp-directory error under the sandbox, so I ran the extracted app by hand. That test file is unchanged.
What changed (all in src/apps/scaffold.ts)
- Head:
layout()now hasrel=canonical, an SVG icon at/icon.svg, a 180px apple-touch icon,/manifest.webmanifest, andog:image. It also hastwitter:card=summary_large_imageandWebSiteJSON-LD with<escaped. - Error pages: an error page passes
indexable=false, which drops the canonical and JSON-LD and addsnoindex. - Generated files: the card and the apple-touch icon are PNGs written with
node:zlib, so there is no dependency. They are flat accent-colour shapes with no text. The README says to swap in a designedog.png. - Accessibility: a skip link,
<main id="main">, and an@media (forced-colors: active)block. - Crawler files:
/sitemap.xmland/llms.txt. TheSitemap:line inrobots.txtappears only in production, since previews stayDisallow: /. - Error responses: unmatched paths return the app's own styled 404 when the request accepts
text/html; scripts still get the plainnot found. Errors return a styled 500. - Compression and HSTS: new
src/compress.tsgzips text bodies of 1 KiB or more when the client accepts gzip, never the event stream or already-encoded bodies. HSTS is nowmax-age=31536000; includeSubDomains, with no preload. - Heading check: a test requires one
<h1>and no skipped level on the home page and the error pages. - New modules and tests: new modules are
src/site.tsandsrc/compress.ts, and the new tests are insrc/site.test.ts. The README and file map in the template are updated. - One existing assertion changed: the old
twitter:cardcheck inserver.test.tsexpectedsummary, and now expectssummary_large_image.
Left out on purpose
- The agent-readiness extras (AI crawler policy, content signals, agent card,
.mdnegotiation) are not built. The generated README says they need an owner decision. - The OG card has no text, because drawing text would need a dependency.
To try it: create an app from the template and run bun test. Then open /, /og.png, /sitemap.xml, /llms.txt and /nope.
Parked by the crew: the check failed ("apps that are busy > (unnamed)") and the decider saw no point in another try
Every generated app now ships the website specification, and each item is covered by a test in the app's own suite. I extracted a scaffolded app and ran its suite: 60 pass, with
lint:designand a stricttscclean. I also ran the new tests withFORGE_APP_ENV=productionandFORGE_APP_URL=https://x.test. I did not gettest/scaffold.test.tsitself to run here. Its child processes failed with a bun temp-directory error under the sandbox, so I ran the extracted app by hand. That test file is unchanged.What changed (all in
src/apps/scaffold.ts)layout()now hasrel=canonical, an SVG icon at/icon.svg, a 180px apple-touch icon,/manifest.webmanifest, andog:image. It also hastwitter:card=summary_large_imageandWebSiteJSON-LD with<escaped.indexable=false, which drops the canonical and JSON-LD and addsnoindex.node:zlib, so there is no dependency. They are flat accent-colour shapes with no text. The README says to swap in a designedog.png.<main id="main">, and an@media (forced-colors: active)block./sitemap.xmland/llms.txt. TheSitemap:line inrobots.txtappears only in production, since previews stayDisallow: /.text/html; scripts still get the plainnot found. Errors return a styled 500.src/compress.tsgzips text bodies of 1 KiB or more when the client accepts gzip, never the event stream or already-encoded bodies. HSTS is nowmax-age=31536000; includeSubDomains, with no preload.<h1>and no skipped level on the home page and the error pages.src/site.tsandsrc/compress.ts, and the new tests are insrc/site.test.ts. The README and file map in the template are updated.twitter:cardcheck inserver.test.tsexpectedsummary, and now expectssummary_large_image.Left out on purpose
.mdnegotiation) are not built. The generated README says they need an owner decision.To try it: create an app from the template and run
bun test. Then open/,/og.png,/sitemap.xml,/llms.txtand/nope.Closes #2916