@marktiderman/genesis-sites
0.7.6ModuleSites and landing pages for Genesis apps: a section registry with zod 4 schemas, 20 server-rendered sections on Genesis UI (timetable, team, blog, map, timeline and downloads among them), a blog with drafts, published posts, RSS and Article JSON-LD, a guarded asset import (/import), a per-request renderer with no hydration, SEO (meta, sitemap, robots, JSON-LD, redirects), publish-time accessibility checks, one-click landing pages from a brand, a Supabase schema with draft, publish and rollback, and a visual editor on Puck (/editor) that published pages never load. Part of the Genesis framework.
Sites and landing pages for Genesis apps. A site is a set of pages made of sections. It is drawn from your brand, served as cached HTML with no hydration, and published as immutable releases you can roll back.
- **Core** (`.`): zod 4 documents (`SiteDoc`, `PageDoc`, `SectionNode`, SEO, menus, redirects) in Puck's `{ root, content }` shape, the section registry (`defineSection`), props migrations, SEO, the publish checks, the theme from your brand, templates and the `SiteStore` contract. - **Sections** (`/sections`): 20 server-rendered sections on Genesis UI. - **Web** (`/web`): `handleSiteRequest`, the renderer and request handler. - **Supabase** (`/supabase`): `createSupabaseSiteStore`, over the `genesis_sites` schema in `migrations/`. - **Import** (`/import`, Node): `importAssets`, which re-hosts an old site's images and PDFs behind a guard against server-side request forgery, and `rewriteUrls`. - **Editor** (`/editor`): `<SiteEditor>`, the visual editor (on Puck). - **Block** (`/blocks`): `sitesBlock`, so `genesis add sites` installs the migration. - **Templates** (`/templates`): industry template content, as data on the neutral sections (see A neutral core).
genesis add sites
pnpm add @marktiderman/genesis-sitesOther exports (131)
absoluteUrl · articleJsonLd · ASSET_TYPES · assetPath · BodyFontChoice · brandDisplayName · breadcrumbJsonLd · BUILT_IN_SECTION_TYPES · checkAssetHosts · checkBlog · checkContrast · checkHtmlOutline · checkPage · checkPost · checkRelease · checkSiteDoc · contrastRatio · Copy · createMemorySiteStore · DEFAULT_LANDING_DIRECTORY · DEFAULT_RESERVED_PATHS · defineSection · escapeXml · exampleBrands · FileRef · FONT_CHOICES · FontChoice · fontFileKey · formCacheTag · getSection · hexToHslTriplet · Href · Image · isConflict · isExternalHref · isLandingPage · isOwnUrl · isPlainEmail · isPublishable · isReservedPath · isSafeHref · isSafeImageSrc · isSiteBrand · LANDING_SLUG · landingDirectory · landingDirectoryProblems · landingMoves · landingPage · landingPages · landingPath · landingSlugOf · landingSlugProblems · LATIN_UNICODE_RANGE · Line · Link · LinkEvent · listSections · luminance · mailtoHref · matchRedirect · MAX_DOC_BYTES · MAX_IMPORT_POSTS · MAX_LIVE_POSTS · MAX_PAGE_PATH_LENGTH · MAX_URL_LENGTH · MenuItem · migrateNode · migratePage · migrateSite · mix · newSectionId · nodeFromPreset · normalizeRequestPath · onePageSite · opensInNewTab · organizationJsonLd · PAGE_PATH · PageDoc · PageKind · pageMeta · PagePath · pagePathProblems · pageTitle · parseHex · parseSnapshot · PostAuthor · postDescription · PostDoc · postPath · PostSlug · postSummary · PostSummarySchema · prepareImportPost · prepareRelease · PublishBlockedError · Redirect · redirectsAfterMove · registerBuiltInSection · registerSection · ReleasePage · ReleaseSnapshot · RichText · richTextPlain · robotsTxt · rssXml · safeJsonForHtml · SECTION_CATEGORIES · SectionDefinitionError · SectionId · sectionJsonSchema · sectionManifests · SectionNode · SELF_HOSTED_FONTS · Seo · SeoDefaults · siteCacheTag · SiteConflictError · SiteDoc · sitemapXml · siteTheme · stableHash · starterSite · Surface · themeCss · toCanonicalBrand · TokenOverrides · unregisterSection · validatePagePath · validatePostSlug · websiteJsonLd · withCacheInvalidation
And 67 types.
Other exports (131)
absoluteUrl · articleJsonLd · ASSET_TYPES · assetPath · BodyFontChoice · brandDisplayName · breadcrumbJsonLd · BUILT_IN_SECTION_TYPES · checkAssetHosts · checkBlog · checkContrast · checkHtmlOutline · checkPage · checkPost · checkRelease · checkSiteDoc · contrastRatio · Copy · createMemorySiteStore · DEFAULT_LANDING_DIRECTORY · DEFAULT_RESERVED_PATHS · defineSection · escapeXml · exampleBrands · FileRef · FONT_CHOICES · FontChoice · fontFileKey · formCacheTag · getSection · hexToHslTriplet · Href · Image · isConflict · isExternalHref · isLandingPage · isOwnUrl · isPlainEmail · isPublishable · isReservedPath · isSafeHref · isSafeImageSrc · isSiteBrand · LANDING_SLUG · landingDirectory · landingDirectoryProblems · landingMoves · landingPage · landingPages · landingPath · landingSlugOf · landingSlugProblems · LATIN_UNICODE_RANGE · Line · Link · LinkEvent · listSections · luminance · mailtoHref · matchRedirect · MAX_DOC_BYTES · MAX_IMPORT_POSTS · MAX_LIVE_POSTS · MAX_PAGE_PATH_LENGTH · MAX_URL_LENGTH · MenuItem · migrateNode · migratePage · migrateSite · mix · newSectionId · nodeFromPreset · normalizeRequestPath · onePageSite · opensInNewTab · organizationJsonLd · PAGE_PATH · PageDoc · PageKind · pageMeta · PagePath · pagePathProblems · pageTitle · parseHex · parseSnapshot · PostAuthor · postDescription · PostDoc · postPath · PostSlug · postSummary · PostSummarySchema · prepareImportPost · prepareRelease · PublishBlockedError · Redirect · redirectsAfterMove · registerBuiltInSection · registerSection · ReleasePage · ReleaseSnapshot · RichText · richTextPlain · robotsTxt · rssXml · safeJsonForHtml · SECTION_CATEGORIES · SectionDefinitionError · SectionId · sectionJsonSchema · sectionManifests · SectionNode · SELF_HOSTED_FONTS · Seo · SeoDefaults · siteCacheTag · SiteConflictError · SiteDoc · sitemapXml · siteTheme · stableHash · starterSite · Surface · themeCss · toCanonicalBrand · TokenOverrides · unregisterSection · validatePagePath · validatePostSlug · websiteJsonLd · withCacheInvalidation
And 67 types.
Other exports (25)
Anchor · builtInSections · ButtonLink · CHIP_TONES · fileDescription · fileHref · formatPostDate · formatTime · HiddenTitle · ICONS · ItemTitle · linkAttrs · MAP_PROVIDERS · mapEmbedUrl · mapPageUrl · resolveHref · SectionBand · SectionIntro · SectionTitle · SiteFormHeader · siteFormSlots · SiteImage · TextLink · titleId · WEEKDAYS
And 4 types.
Components (1)
- SiteRendererBeta
The document for one page.
Other exports (8)
ASSET_SIZES · ASSETS_PREFIX · collectFormSlugs · FONT_FILES · fontFaces · handleSiteRequest · pageStyleText · renderSitePageToString
And 2 types.
Other exports (3)
createSupabaseSiteStore · SITES_SCHEMA · SiteStoreError
And 1 types.
Other exports (1)
sitesBlock
Components (2)
- AssetPicker
- SiteEditorBeta
The visual editor.
Hooks (1)
- usePuck
Other exports (33)
AutosaveBlockedError · Autosaver · checkSite · countTypes · createEditorConfig · createLandingPage · createUsePuck · fromEditorData · genesisOverrides · h1SectionId · humanize · IMAGE_TYPES · itemToNode · LandingDirectoryError · moveLandingPage · movePageInList · NODE_KEYS · nodeToItem · pageTemplates · pathProblems · placeholderSnapshot · presetComponentName · pruneEmpty · publishSite · renamePage · renderPreview · safeSectionId · sectionFields · sectionTypeOf · setLandingDirectory · slugify · toEditorData · uploadProblem
And 22 types.
Other exports (9)
BlockedAddressError · guardedLookup · guardedTransport · importAssets · isPublicAddress · MAX_IMPORT_URLS · rewriteUrls · sniff · urlProblems
And 6 types.
Other exports (5)
fitness · forgeDesignSystem · industryDesignSystems · industryTemplates · studioDesignSystem
And 1 types.