Skip to content

Website Customization Overview

The Fullfinity islands framework (window.fullfinity) adds interactivity to server-rendered pages — the customer portal, the public website, the ecommerce storefront, and themes. Built on Preact, it hydrates components into Jinja-rendered HTML and gives every module the same registry, patch system, toasts and event bus, so add-ons can extend each other’s UI — all with no build step.

This is the surface you use for any customer-facing or public page. (The authenticated back-office admin application is a separate, self-contained app that is not customized through this framework.)

  • Component Registry - Modules register components that can be discovered and used by templates
  • Patch System - Extend or modify components with priority ordering, conditions, and dependencies
  • Extension Slots - Define extension points in components for addons to inject UI
  • Method Patching - Patch specific methods with _super support for class-based components
  • Event Bus - Cross-module communication through events
  • Stores - Shared state management across components
  • Auto-Mounting - Components automatically mount from HTML data attributes
  • No Build Step - Uses ES modules directly, no webpack/vite required
┌─────────────────────────────────────────────────────────────────┐
│ Jinja2 Template │
│ <div data-component="ProductCard" data-props='{"id": 123}'> │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Fullfinity Framework │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Registry │ │ Patch │ │ Event Bus │ │
│ │ .component │ │ .patch() │ │ .on/.emit │ │
│ │ .store │ │ .unpatch() │ │ │ │
│ │ .slot │ │ .patchMeth │ │ │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Preact │
│ Components, Hooks, Virtual DOM, Signals │
└─────────────────────────────────────────────────────────────────┘
  1. Framework loads - framework.js is included in the base template
  2. Module scripts load - Each module’s components.js loads in dependency order
  3. Components register - Modules call fullfinity.registry.component() to register
  4. Auto-mount - Framework scans for data-component attributes and mounts components
  5. Reactivity - Preact handles updates, hooks provide state management

Scripts load in this order to ensure dependencies are available:

  1. framework.js (core) - Preact + framework utilities
  2. Module components.js - In module dependency order (e.g., website before ecommerce)
  3. Theme JS - Theme-specific scripts
  4. Page JS - Page-specific scripts

A module’s components.js and a theme’s CSS are versioned for you. When a template links any other file from your module’s static/ folder, pass the url through the |asset filter:

<link rel="stylesheet" href="{{ '/my_module/static/src/css/my_module.css'|asset }}">
<script src="{{ '/my_module/static/src/js/widget.js'|asset }}"></script>

The filter appends a version (?v=…) that changes whenever the file does. Without it, a browser or a CDN in front of the site keeps serving the old file for its whole cache lifetime, so a fix you deploy doesn’t show up for hours. fullfinity-server test fails on a bare /…/static/ url in a <link> or a plain <script>.

Leave <script type="module"> tags that other code imports by path (such as framework.js) unversioned. A JavaScript module is identified by its exact url, so a versioned tag next to unversioned imports would load the file twice.

FeatureFullfinityReactVue
Bundle size (gzipped)~24kb, including Preact~40kb~33kb
Build requiredNoYesYes
Component syntaxFunctions + htmJSXSFC
StateHooks + SignalsHooksComposition API
Module extensionBuilt-in patch systemNoneNone
Learning curveLow (React-like)MediumMedium

Use Preact components for:

  • Interactive widgets - Forms, carts, configurators
  • Real-time updates - Live data, notifications
  • Complex state - Multi-step flows, dependent fields
  • Cross-module features - Cart that updates from product pages

Use server-side Jinja2 for:

  • Static content - Text, images, layouts
  • SEO-critical content - Blog posts, product descriptions
  • Simple interactions - Links, basic forms