Introducing a new way to review your PRs.

Read the announcement

frappe / builder

Craft beautiful websites effortlessly with an intuitive visual builder and publish them instantly

View on GitHub

20 documents · Updated Nov 23, 2026

docs / builder-server-domain

Builder server domain

The Builder server domain is the Frappe application layer that stores authored website content, applies page and site rules, and turns that content into website behavior. It links the visual builder with durable records, domain services, publishing, site configuration, access control, setup work, extensibility, usage data, and AI-assisted editing.

Domain boundary

The server domain sits between the Builder workspace and the public website. It accepts authored content through Frappe document and API boundaries, keeps draft, live, and staging states distinct, and supplies the page context that the website renderer turns into a response.

The main server responsibilities are:

  • Persist pages and their related authored resources.
  • Expose controlled services for editing, preview, assets, templates, plugins, access, analytics, and AI-assisted building.
  • Resolve routes and page context for public and preview requests.
  • Combine page content with shared components, scripts, styles, fonts, and design tokens.
  • Move content through installation, migration, import, export, template, and plugin flows.

References: builder/hooks.py• L31-33 builder/hooks.py• L49-63 builder/hooks.py• L196-201 builder/api.py• L33-65

Content model

Builder treats a page as the main authored unit. A page owns its route, publication state, staging state, block structure, page data, metadata, access choice, and links to related resources. Shared components, client scripts, templates, fonts, folders, tokens, and snapshots support the page without replacing it as the unit that becomes a website route.

The page keeps working content separate from live content. Every save path normalizes block trees before storage, so the workspace, paste flow, AI tools, and APIs can provide list-shaped trees without changing the document contract. Dynamic component properties also keep their declared value type when they use a default, so a missing value can fall back to text, number, boolean, or object content. Publishing records a version of the working content, moves it into the live fields, marks the page as published, and starts preview image generation. A restore returns content to the draft for review instead of changing the live page directly.

A staged page is served at its route but stays out of search results and the sitemap. A live page moves to staging through a separate action, while publishing a page to staging is rejected if that page is already live. When live and staged pages share a route, route selection keeps the live page in service.

Page lifecycle actions also provide product-use signals. Creation identifies whether content began as blank, imported, templated, or duplicated. Publish, stage, and unpublish events record the page lifecycle without changing the stored content or its public behavior.

See Builder content documents for the document relationships and stored authoring data.

References: builder/…/builder_page.py• L153-224 builder/…/builder_page.py• L226-307 builder/…/builder_page.py• L358-375 builder/…/builder_page.py• L406-475 builder/…/builder_page.py• L1015-1065 builder/…/builder_page.json• L12-48 builder/…/test_builder_page.py• L169-185 builder/…/test_builder_page.py• L708-771

Domain services

The server API provides the actions that let the workspace and Frappe runtime work with Builder resources. These actions cover page preview and duplication, asset and font intake, template use, folder and component operations, script ordering, component data, analytics, and plugin management. Permission checks sit at the service boundary so callers receive only the operations allowed for their page role or installation role.

Remote assets and fonts become site-owned resources when the workspace imports them. The service limits the intake size and count, reuses matching resources, and rejects private or internal network addresses during every connection and redirect before it fetches external content. This protects the site while allowing authored pages to keep the resources they need.

Component updates also cross a service boundary inside the document layer. A real component edit records a component version and queues cache clearing for affected pages after the save commits. This keeps consecutive edits available while the page refresh runs. Bulk import skips these live-edit actions until the imported resources are complete, which avoids partial synchronization during installation or migration.

The domain also has a small external service boundary for custom domains. Domain operations are sent to the Frappe Cloud domain service and are limited to System Manager access. This keeps site-domain ownership outside page content while still making domain setup available from Builder.

The onboarding survey can attach a user's role, use case, and source to the site's product profile when telemetry support is available. A skipped survey or an older Frappe version does not block Builder use.

See Server API and events for the API surface, hooks, and event links.

References: builder/api.py• L38-130 builder/api.py• L226-320 builder/api.py• L412-493 builder/api.py• L599-735 builder/api.py• L867-902 builder/public_fetch.py• L1-94 builder/domain.py• L7-86 builder/…/builder_component.py• L40-69 builder/…/test_api.py• L59-188

AI-assisted building

AI-assisted building is a server-managed editing service that lets a user describe a page change in a chat and receive a live, reviewable result. The server stores the chat session and messages, loads the page into an authoritative working view, applies accepted edits to the draft, and sends the accepted result to the editor through realtime events.

The service treats different kinds of work as different levels of risk:

  • Edits to the open page apply during the turn and remain revertible.
  • Edits to another page are checked but wait in a confirmation card. The server replays them against the current page after approval.
  • New pages are proposed first. After approval, the server creates them and builds them in separate off-screen turns.
  • Site-wide changes and the home page require explicit confirmation.
  • Full-page generation streams a temporary preview, then saves one authoritative block tree that the editor mirrors.

The chat is asynchronous. The request validates the user's access and selected model, stores the user turn, and queues a background job. The job uses a session lock and a page lock to prevent competing turns, checkpoints work between rounds, and persists a final timeline with the result. API keys stay outside queued job arguments and are resolved by the worker.

This diagram shows the server-owned path from a user request to a durable page change.

sequenceDiagram
    participant User as Builder user
    participant API as AI API
    participant Job as Background agent job
    participant Page as Draft page state
    participant Chat as Session and messages
    participant Canvas as Editor canvas

    User->>API: Send instruction
    API->>Chat: Store user turn
    API->>Job: Queue one agent turn
    Job->>Page: Load and lock working page
    Job->>Job: Read, plan, edit, or generate
    Job->>Page: Checkpoint accepted draft changes
    Job-->>Canvas: Stream progress and accepted operations
    Job->>Chat: Store reply, timeline, or confirmation card
    Canvas-->>User: Show the server-owned result

See Server API and events for the AI endpoints and realtime contract. See Builder content documents for the page and session records that hold this work.

References: builder/…/api.py• L52-141 builder/…/api.py• L152-245 builder/…/api.py• L280-337 builder/…/session.py• L13-18 builder/…/session.py• L49-91 builder/…/session.py• L214-272 builder/…/loop.py• L7-43 builder/…/loop.py• L1024-1046 builder/…/loop.py• L1209-1315 builder/…/loop.py• L1377-1498 builder/…/loop.py• L1526-1669 builder/…/page_changes.py• L1-9 builder/…/page_changes.py• L128-218 builder/…/page_changes.py• L241-361 builder/…/registry.py• L1-23 builder/…/generate.py• L1-25 builder/…/pages.py• L1-19 builder/…/settings.py• L1-8 builder/…/artifact.py• L231-347 builder/…/builder_ai_session.json• L20-111 builder/…/builder_ai_session_page.json• L1-29

Plugin domain

The plugin domain lets a site extend the Builder editor with trusted, installed Vue plugins. Plugins can come from the Builder Hub or from a Frappe app, a development source, or Bob. A site stores one installation record per plugin, and enabled records provide the entry URL that the editor loads for users with Builder access.

The Hub is a catalog and release source. The browser reads catalog information without sending this site's session credentials to the Hub, while the server performs installation under the requesting user's session. Installation creates an Installing record, downloads one exact release in a background job, checks its checksum and package contents, writes the site-owned files, and reports Ready or Failed through a realtime event.

Plugin code crosses a trust boundary. Only a plugin manager can change installations, and the server accepts packages that match the requested identity and version, use the supported protocol, stay within size limits, and contain safe paths and assets. Hub and package requests are restricted to public HTTPS destinations except for controlled developer-mode local use.

App-supplied plugins remain tied to the app's built assets, while site-installed releases remain site-owned. Their URLs still carry release identity so a new build or package does not leave the editor on stale code. Removing an installation also makes the next app-plugin listing refresh its source records.

The editor loads enabled ready plugins before its first render. A plugin load failure does not stop the editor, and a change to running code takes effect after the editor reloads. This keeps site-wide plugin state separate from page content while allowing plugins to add editor behavior.

References: builder/…/hub.py• L85-105 builder/…/hub.py• L203-301 builder/…/installations.py• L27-127 builder/…/package.py• L70-84 builder/…/package.py• L94-156 builder/…/safe_requests.py• L4-61 builder/…/builder_plugin.json• L35-69 builder/…/builder_plugin.json• L97-133 builder/…/builder_plugin.py• L71-105 builder/…/builder_plugin.py• L179-192 frontend/…/main.ts• L15-58 frontend/…/plugins.ts• L65-115 frontend/…/loader.ts• L25-95

Authored content pipeline

The server turns a saved page structure into website behavior by resolving the page route, choosing live or preview content, loading shared resources, and rendering block structure into HTML and styles. Page data can add request-specific values, while component data and dynamic bindings let authored blocks react to props or server data.

This flow preserves the separation between authoring and delivery: the workspace edits a draft, preview renders that draft without publication, and a public request uses the published page. Staging serves content at its route with indexing disabled. Shared component versions can be pinned so a published or saved view does not silently change when a mutable component changes.

The editor keeps its active page and route values aligned while it loads page data and scripts. It autosaves draft block changes, waits for outstanding saves before publish or restore actions, and uses page subscriptions and preview windows to keep authoring state separate from website delivery.

Dynamic bindings keep editor and rendered behavior aligned. Newer dynamic values take precedence over the legacy dataKey binding, unresolved values fall back to the legacy value, and static authored content remains the final fallback. Image URLs also keep their absolute and inline URL structure while the renderer encodes only characters that need encoding. Dual-mode images keep the dark source available without making that source add space to the page layout.

The renderer protects the page boundary when authored data is incomplete. Invalid or empty repeater keys render no repeated rows instead of producing an invalid template, and bindings for the same target are combined into one placeholder so raw template expressions do not leak into the website.

This diagram shows how a website request becomes a response that uses the correct page state and shared data.

sequenceDiagram
    participant Visitor as Website request
    participant Router as Builder route layer
    participant Page as Builder page
    participant Data as Page and component data
    participant Output as Website response

    Visitor->>Router: Request route
    Router->>Page: Resolve published or staged page
    Page->>Data: Load page context and shared resources
    Data-->>Page: Values, components, scripts, styles
    Page->>Output: Render HTML and delivery assets
    Output-->>Visitor: Website response

See Website rendering and publishing for the render path, preview behavior, scripts, themes, and public assets.

References: builder/hooks.py• L196-201 builder/…/builder_page.py• L70-109 builder/…/builder_page.py• L544-725 builder/…/builder_page.py• L817-848 builder/…/builder_page.py• L851-903 builder/…/builder_page.py• L1043-1077 builder/…/builder_page.py• L1080-1138 builder/…/test_builder_page.py• L412-581 frontend/…/PageBuilder.vue• L257-365 frontend/…/pageStore.ts• L65-153 frontend/…/pageStore.ts• L238-347

Shared resources

Shared resources let many pages use the same design or behavior while the server keeps their lifecycle separate from page records. Components provide reusable structure and data. Client scripts provide page or block behavior. Settings provide site-wide markup, scripts, styles, language, favicon, home page, and theme defaults.

When a shared component changes, the server can find pages that use it, refresh both their draft and published component structure, and clear the affected website cache after the component save commits. Component versions and snapshots provide a stable point for published content and later review. This relationship is why changes to a shared resource can affect many routes.

See Site configuration and design tokens for shared site appearance and Builder content documents for resource records.

References: builder/…/builder_component.py• L40-111 builder/…/builder_component.py• L128-196 builder/…/builder_page.py• L445-457 builder/…/builder_settings.py• L13-75 builder/…/builder_snapshot.py• L28-120

Site governance

The domain applies site-wide rules to both authoring and delivery. Frappe roles govern Builder access, page-level checks protect write and read actions, and page settings can require login for public viewing or prevent search indexing. User invitations connect the Builder role to Frappe user access.

The same layer records and serves usage measures. Published pages can send view and click signals, scheduled jobs move those records into an analytics store, and read services return page, referrer, and click-through summaries. Analytics therefore describes website behavior after publishing rather than authoring state alone.

Separate product telemetry records broad Builder lifecycle events and optional onboarding profile data. It helps measure how Builder is used without becoming part of page content, publishing state, or website analytics.

See Builder access and analytics for access checks, invitations, tracking, and reporting.

References: builder/hooks.py• L98-134 builder/api.py• L323-382 builder/api.py• L727-815 builder/…/builder_page.py• L166-224 builder/…/builder_page.py• L226-239 builder/…/test_telemetry.py• L24-113 builder/builder_analytics.py• L120-186 builder/builder_analytics.py• L258-380

Content operations

Installation and migration keep the server domain usable by provisioning upload folders and synchronizing standard pages, block templates, client scripts, fonts, and design tokens. Standard pages can move between database records and app files. The export includes the page's authored resources and copies referenced assets so an app can carry the page as source-controlled content.

Template groups provide two delivery paths for shipped content. App fixtures are synchronized during install or migration. A separate Builder Hub provides a live catalog and per-page bundles that the server turns into editable local pages with their own scripts and shared resources. Hub imports group related pages under a site-local folder and route prefix so their links remain usable after import.

In production, shipped template pages are read-only and can be published for a catalog or preview site. A successful fixture sync can remove database template pages whose fixtures were deleted, while user-created templates without a group remain outside that cleanup.

The import path also accepts older fixture names during a doctype rename. This keeps existing app files usable while the database moves from the old Builder Variable name to Builder Token. Export and cleanup use safe path segments so record names cannot escape their intended fixture folders.

These operations provide the deployment path for authored content. They make the domain suitable for app-provided pages, remote template catalogs, and shared template collections instead of limiting Builder to content created by one site user.

See Content import, export, and setup for setup hooks, standard content, template synchronization, and transfer rules.

References: builder/install.py• L1-40 builder/export_import_standard_page.py• L22-120 builder/export_import_standard_page.py• L300-390 builder/template_sync.py• L1-27 builder/template_sync.py• L60-149 builder/api.py• L496-661 builder/utils.py• L40-79 builder/utils.py• L374-425 builder/…/web_page.js• L1-16 builder/…/web_page_list.js• L1-29

Localization

Builder presents the server domain's user-facing labels and messages through locale catalogs. The current refresh updates the source message catalog and many translated catalogs. These changes affect language presentation only; they do not change content records, service behavior, publishing rules, route handling, or telemetry contracts.

The catalogs include labels and messages for Builder pages, settings, components, tokens, domains, analytics, templates, onboarding, and AI features. A missing translation can leave the source message visible in that language while the underlying domain behavior remains unchanged.

References: builder/…/main.pot• L1-17 builder/…/ar.po• L1-19 builder/…/de.po• L1-19 builder/…/tr.po• L1-19

The server domain has three main peers. The visual builder workspace provides the authoring experience that creates the structures stored here. AI-assisted building can also create or change those structures through the same page, script, snapshot, and domain-service boundaries. The plugin system adds an extension path around the workspace.

The server controls which plugin code a site installs, while the workspace loads enabled code and connects its completion events to the same realtime session used by Builder. AI sessions can move across pages, but the page being changed remains the server-owned target and the open editor remains the view that receives the matching events.

The child pages below describe the server domain by concern:

References: builder/hooks.py• L10-16 builder/hooks.py• L49-63 builder/hooks.py• L118-134 builder/hooks.py• L207-216 frontend/…/App.vue• L25-41 frontend/…/main.ts• L15-58 frontend/…/PageBuilder.vue• L257-365 builder/…/api.py• L579-643

Change checklist

When these files or sections are changed, remember to consider these:

  • Changes to page route, publication, staging, dynamic-route, or indexing fields must preserve route-cache invalidation and public route resolution.
  • Changes to the page block shape must remain compatible with preview rendering, live rendering, component expansion, and snapshot restore.
  • Changes to page save normalization or typed dynamic defaults must keep list-shaped block input and component fallback values valid for both stored pages and rendered output.
  • Changes to dynamic binding fields must preserve the precedence between current dynamic values, the legacy dataKey, and static content in both preview and published output.
  • Changes to image URL encoding must preserve absolute URLs, inline data URLs, query strings, fragments, and the expected encoding of spaces or non-ASCII characters.
  • Changes to dual-mode image markup must preserve dark-image selection without making the source element affect page layout.
  • Changes to shared component fields must account for component version pins, both draft and published page instances, and affected website cache entries.
  • Changes to component save timing or cache jobs must preserve the ability to save consecutive edits without document locks while still clearing pages after commit.
  • Changes to global or page scripts and styles must keep their public asset files and the URLs injected into rendered pages in sync.
  • Changes to page duplication or client script copy rules must create independent script resources and must not carry the source script's public asset URL into the copy.
  • Changes to tracking fields must keep the shared page path format aligned between view records, click records, scheduled ingestion, and analytics joins.
  • Changes to standard export fields or referenced assets must keep app fixtures importable and preserve the database-to-file round trip.
  • Changes to template-group fixtures or Hub bundles must keep page invariants, shared-resource references, route prefixes, committed assets, and page order aligned across import and delivery.
  • Changes to renamed fixture doctypes or fields must preserve compatibility with files created before the rename.
  • Changes to custom-domain calls must preserve the System Manager boundary and the external Frappe Cloud service contract.
  • Changes to page lifecycle telemetry or onboarding fields must preserve event names, property meaning, and the no-op behavior when optional telemetry support is unavailable.
  • Changes to AI session, message, page-change, or confirmation records must preserve ownership checks, page associations, durable status values, and the distinction between live edits and approval-gated edits.
  • Changes to AI realtime events must keep the page channel, session channel, after-commit timing, and editor mirroring contract aligned.
  • Changes to AI generation or page-edit tools must keep the server draft as the source of truth and preserve snapshots, page locks, round checkpoints, and cancellation behavior.
  • Changes to AI provider login or queued jobs must preserve server-side credential exchange and must not place API keys in queue arguments or chat metadata.
  • Changes to AI message metadata must preserve valid JSON when assistant traces contain markup.
  • Changes to locale message identifiers or catalog metadata must preserve the source-message mapping used by the affected Builder labels and messages.
  • Changes to Hub plugin release fields, protocol versions, package checks, or installation states must keep the server, background job, realtime event, and editor startup contracts aligned.
  • Changes to app-supplied plugin records or installation deletion must keep app build URLs, release identity, and the next source sync aligned.
  • Changes to Hub or remote-asset request handling must preserve credential isolation, public-address checks on redirects, download limits, and checksum or package validation before site writes.
  • Changes to editor page switching or autosave coordination must keep page subscriptions, active-page state, route variables, publish waits, and stale-save protection consistent.

Important failure modes

TriggerConsequenceGuard
A published page route or publication flag changes without route-cache clearingThe public site can keep resolving an old route or old publication statePage updates clear the dynamic-route and website route caches
A staged page shares a route with a live pageRoute lookup can serve the staged page instead of live contentRoute selection preserves the live page when both states share a route
A block tree is passed as a list during updatePage save can fail because the stored field expects serialized contentPage writes compact list-shaped blocks before persistence
A dynamic component property falls back through a text-only pathA missing number, boolean, or object value can reach the editor or website with the wrong typeDynamic property fallbacks preserve the declared property type
A referenced component is deleted or its pinned version is no longer availableThe block cannot resolve the component and may not render as authoredComponent resolution falls back to the live component when possible and restore reports missing components
A component is saved again before a prior cache job runsThe second edit can fail with a document lock or leave page cache work out of orderComponent cache clearing runs after commit without locking the component document, while version capture runs in the save path
A duplicated page carries the source client script's public URLThe copy can load the source script asset or stale content instead of its own script assetThe public URL is not copied, and duplication creates a separate client script record
A global or page script/style record changes without its public asset updateThe website loads stale or missing behavior or stylingDocument updates regenerate the public asset and store its versioned URL
A published block has both current dynamic values and a legacy dataKey binding but the server uses the wrong orderThe editor and website can show different values, or a missing value can lose its intended fallbackThe renderer gives current dynamic values priority, then uses the legacy value and static content as fallbacks
A dynamic binding is repeated for one targetRaw template text can leak into the pageRendering combines same-target bindings into one placeholder
An image URL is encoded as a complete opaque stringAbsolute or inline image sources can stop working, or their query and fragment data can changeURL handling preserves URL syntax and encodes only characters that need encoding
A dynamic binding is repeated or a repeater key is malformedRaw template text can leak into the page or the full render can failRendering deduplicates bindings and turns invalid repeater keys into empty output
A dark-mode image source participates in layout as a visible elementPages with dark-mode images can show an unexpected gap or shifted contentThe rendered source is hidden while the image wrapper remains available for theme selection
Analytics is queried without a date range for page or click-through reportsThe service returns an empty result instead of a misleading totalAnalytics requires a date range for these reports
A remote asset, font, Hub, or package URL resolves to a private or internal address, including after a redirectThe server could be used to reach an internal serviceThe request adapter checks the address at the connection and allows only public destinations, with controlled developer-mode loopback use
A remote download exceeds its declared or Builder limitThe request can consume excessive memory or store an oversized site assetStreaming reads stop at the configured limit before the file is saved
A template group sync fails part way throughA partial group could replace valid content or leave its pages inconsistentSync isolates groups and prunes deleted pages only for groups that completed successfully
A standard fixture uses an unsafe name or an old doctype without rename handlingExport can write to the wrong path or import can fail after a doctype renameShared path validation blocks empty and traversal segments, while fixture import maps the old doctype and field when needed
A page lifecycle event changes its name or property meaningProduct-use reports can misread page creation or publish behaviorKeep event names and properties stable with the page lifecycle contract
An AI turn writes directly to the editor without first accepting the server's working-tree resultThe canvas and draft can diverge, or a rejected edit can appear successfulThe server applies and persists accepted operations first, then mirrors only those operations through realtime events
A user confirms a change to another page after that page changed or its target block was removedThe edit can overwrite current work or fail without a clear page-level resultThe server replays checked operations under a page lock and isolates success or failure per page
A background AI job carries an API key or runs without a session or page lockCredentials can leak into queue data, or concurrent turns can overwrite each otherThe worker resolves the key itself and uses expiring session and page locks
A full-page AI generation is cancelled or the worker fails after partial outputThe user can lose visible work or see a stale draft after a refreshThe generator keeps the partial draft, streams a short-lived preview buffer, and clears the buffer when the database becomes authoritative
An AI confirmation or clarification event is emitted before its message commitThe client can reload and fail to find the card it just receivedEvents that cause a refetch or reload use after-commit delivery
A changed locale catalog loses a message identifier or breaks its catalog formatThe affected language can show the source text or fail to load the translation entryKeep each catalog's message identifiers and PO structure valid when updating translations
A Hub release is accepted from its listing without checking the downloaded packageSite-owned plugin files can contain the wrong release or unsafe archive entriesThe server matches the release checksum, identity, protocol, manifest, paths, file types, and asset safety before writing files
A plugin install worker fails or disappears while the row stays InstallingThe panel can show a job that will never finish, or a retry can start a duplicate jobThe server derives Failed when no matching job remains and blocks concurrent installs while one is active
A plugin is disabled or replaced while its Vue code is already runningThe current editor can keep old plugin behavior until it reloadsThe editor unloads what it can and prompts for a reload when the running app cannot replace the code safely
An app plugin row is removed without invalidating app-plugin discoveryThe next editor listing can keep missing a plugin that the installed app still providesInstallation deletion clears the app-plugin sync marker before the next listing
The browser sends site credentials while reading the Hub catalogThe external Hub can receive credentials belonging to the siteCatalog fetches omit browser credentials and the server provides the Hub URL through an access-checked method
A page changes while an autosave is in flight or while another user edit landsA stale draft can overwrite newer server content or the canvas can show the wrong pageThe editor tracks save identity and page-load identity, waits before publish or restore, and resubscribes when the route changes

Key files

FileWhy to read it
builder/hooks.pyShows how Builder enters Frappe website routing, rendering, permissions, installation, and scheduled work.
builder/…/builder_page.pyDefines the page lifecycle from persistence and draft state to publish, staging, preview, route access, rendered context, dynamic binding, and lifecycle telemetry.
builder/…/builder_page.jsonShows the page's product-facing fields, access choices, publication states, metadata, and roles.
builder/…/test_builder_page.pyShows the runtime guarantees for route selection, draft/live/staging behavior, dynamic content, component data, image URLs, and rendered output.
builder/api.pyShows the service boundary used by the workspace for preview, assets, fonts, templates, pages, components, analytics, page duplication, and Hub template use.
builder/public_fetch.pyShows how user-supplied remote assets and fonts are restricted to public network destinations across redirects.
builder/…/api.pyShows how AI requests, confirmation cards, page builds, model setup, sessions, cancellation, and revert actions enter the server.
builder/…/session.pyShows how AI sessions, messages, page associations, history, ownership, locks, and queued user notes persist.
builder/…/loop.pyShows the server-owned AI turn from page loading and tool handling to realtime events, checkpoints, cancellation, and final message persistence.
builder/…/page_changes.pyShows why edits to other pages and proposed new pages wait for confirmation and apply independently.
builder/…/registry.pyShows how page edits, server actions, confirmation actions, and streamed generation share one agent boundary.
builder/…/artifact.pyShows how full-page generation streams a preview while the saved page remains authoritative.
builder/…/query.pyShows how the agent reads the open page or other site pages as structured design references.
builder/…/settings.pyShows the difference between immediate page or theme changes and confirmation-gated site-wide changes.
builder/…/codex_login.pyShows the server-side device and browser sign-in boundary for the ChatGPT provider.
builder/…/builder_ai_session.json and builder/…/builder_ai_session_page.jsonDefine the stored AI chat ownership and multi-page association.
builder/…/builder_ai_session.pyShows session cleanup when a chat or its page is deleted.
builder/…/builder_ai_message.jsonDefines the stored conversation message shape and metadata used for AI traces and confirmation state.
builder/…/hub.pyShows the server-side Hub release flow from permission checks and pending state to background installation and realtime completion.
builder/…/package.pyShows the package contract that keeps plugin archives bounded and safe before site files are written.
builder/…/installations.py and builder/…/safe_requests.pyShow plugin access, installation state, and the network boundary for Hub metadata and package downloads.
builder/…/builder_plugin.json and builder/…/builder_plugin.pyDefine plugin sources, installation state, release URLs, validation, file ownership, and cleanup.
builder/…/builder_component.pyExplains shared component data, page usage, synchronization, version capture, bulk-import behavior, cache timing, and cache effects.
builder/…/component_versions.pyExplains why shared component state can be pinned for stable page history and publishing.
builder/…/builder_settings.pyShows how site-wide page behavior and shared resource changes affect files and cache.
builder/install.pyShows the setup and migration entry points for standard Builder content.
builder/export_import_standard_page.pyShows how pages and their referenced resources move between database records and app fixtures.
builder/template_sync.pyShows the lifecycle of grouped shipped templates from committed fixtures to installed pages and back to exported fixtures.
builder/utils.pyShows shared rules for safe fixture paths, fixture compatibility, script execution, and authored block assets.
builder/builder_analytics.pyShows how website view and click records become reports for the Builder domain.
builder/…/test_telemetry.pyShows the stable meaning of page lifecycle events and onboarding profile capture.
builder/…/test_api.py and builder/…/test_install.pyShow the service guarantees for assets, fonts, duplication, templates, editor entry, and website sidebar setup.
frontend/…/main.tsShows how translations, installed plugins, telemetry, realtime job listeners, and the editor app start together.
frontend/…/PageBuilder.vueShows how the workspace subscribes to page events, saves the authored canvas, switches pages, and starts preview-related services.
frontend/…/pageStore.tsShows how the workspace loads page documents, keeps draft state, route variables, page actions, autosave, publish waits, and detached preview together.
frontend/…/plugins.ts and frontend/…/loader.tsShow how server installation rows become runnable editor plugins and how plugin completion events affect the running editor.
builder/…/web_page.js and builder/…/web_page_list.jsShow how existing Frappe Web Page entry points guide users to Builder without removing the older Web Page flow.
builder/locale/main.pot and builder/locale/*.poShow the source messages and translated labels used by Builder across supported locales.