PageHub Documentation
Ship faster with fewer mistakes. Each guide tells you what to do and what to verify.
Browse by category
Start with setup guides, then use reference docs when you need details.
Getting started
Where to build, how to work with an AI agent, and how to connect one.
Build a site
How a site's files, styles and pages fit together, and the bar a finished page has to clear.
Styling
Palette and style tokens, the section skeleton, buttons, forms and company variables.
Design bar
What makes a page look finished, and how to borrow techniques from a reference site.
Accessibility
The WCAG AA checklist every page has to pass.
Editing files
The files of a site, how edits are checked, and how to undo with history.
Blocks
Find a proven section layout, place it, and the order to build a site in.
Theme
Palette names, style tokens, fonts and dark mode.
Pages
Page SEO, detail pages with URL patterns, passwords and access rules.
Animation
Entrance animations with data-animate, stagger, exits and custom keyframes.
Media
Upload images and files, use them in markup, and set the favicon.
Settings and launch
Site-wide settings, custom domains, redirects, tracking and scripts.
Site settings
URL slug, fallback SEO, share image, search and AI crawlers, timezone, language, Next.js mounts.
Custom domains
Attach a domain, the DNS records to create, and www redirects.
Redirects
Send old URLs to new ones with 301 or 302 rules.
Integrations
Analytics and pixels, cookie consent, Stripe checkout, building a shop, form webhooks.
Global JavaScript and integrations
Set up scripts, analytics and redirects with a publish checklist.
Data, members and selling
Collections, members-only content, downloads, emails, chat and commerce.
Collections
Tables of rows shown in pages, members-only rows, webhook feeds and connected apps.
Members and plans
Sign-in for visitors, paid and free plans, and drip content.
Downloads
Host a file behind one link that survives new versions.
Site emails
Receipts, welcomes, sign-in links and gift cards: edit and preview them.
Site chat
A chat bubble that answers from the site's own pages and collects leads.
Stripe and commerce
Connect Stripe, bind products, and ship cart and checkout safely.
Reference
Look up exact tags, filters, tokens, classes and API routes.
HTML + Liquid reference
The tags, filters, data objects, runtime attributes and lint rules a site's files can use.
CSS variables
Design tokens and custom properties used by the rendering system.
Tailwind utilities
The utility classes and the values each one takes.
REST API
Every /api/v1 route: what it does, who may call it, and its parameters.
Site runtime attributes
Every data-* attribute the published-page script understands: cart, carousel, calendar, state, chat and more.
Embed the editor
Put PageHub's visual editor (@pagehub/editor) in your own app, over your own files.
Embedding the editor
Props, the canvas host, replacing parts of the UI, save errors and events.
Storage adapters
Connect the editor to your own files, with version conflicts and error codes.
Tags, filters and data sources
Extend the Liquid runtime the editor and renderer share.
Architecture
How the editor packages fit together, and how an edit becomes a saved file.
SDK
@pagehub/sdk: the dialog shell, the CSS compile, theme tokens and email helpers PageHub is built on.
What the SDK ships
Every import in @pagehub/sdk and where its docs are.
Modal and confirm
The one dialog shell, and a confirm you can await from a click handler.
CSS compile
compileCSS: the Tailwind + DaisyUI CSS a page needs, built from the classes it uses.
Theme
The default design tokens, a site's own theme.css, and the shadcn palette bridge.
Email renderer
Turn email markup into CSS an email client keeps, plus a plain-text version.
Chrome stylesheet
chrome.css: scrollbars, dropdown panels, fields and buttons for the SDK's own UI.
Page settings fields
The list of a page's settings and their defaults, with read and write helpers.
JSON docs index
If you use AI tools, this lets them read the same docs you read.
Optional for AI tools
- 1. Read `/api/docs/index`.
- 2. Follow links to these same docs pages.
- 3. Refresh when `lastUpdated` changes.
curl -s https://pagehub.dev/api/docs/index | jq '.categories[].title'
Need help with something not covered here? Reach out and we'll help directly.