Skip to content

Reference

Glossary

Every term the ogygia docs use, defined in a sentence or two and linked to the page that covers it.

On this page

The words the docs use, grouped by topic. Each one links to the page that explains it in full. Names you write in code (wake, region()) are in code type; ideas are in plain text.

Pages and regions

  • csr = false page: a route that sets export const csr = false, so Kit’s client never starts and the page ships as server HTML. Only its islands load JavaScript. See Introduction.
  • Kit page (csr = true page): a page Kit hydrates whole, as it would without ogygia. Islands there are ordinary components, and lakes still keep their HTML static. See Keep app-like routes on Kit.
  • Region: a part of the page with its own rule for where its HTML comes from and when its JavaScript runs. Client islands, server islands, lakes and held regions are the four kinds. In the HTML each one is an <ogygia-region> element. See Regions.
  • Mark (marked import): an import of a component with region attributes in its with { … } clause. The build turns the binding into a region. See Regions.
  • Client island (island): a component that renders on the server and loads its JavaScript on the schedule its wake names. See Client islands.
  • Server island: a component marked render: 'deferred'. The page ships a fallback in its place, and the browser fetches its HTML from your server after the page loads. It ships no JavaScript. See Server islands.
  • Hole: the spot a server island leaves in the page, filled when its HTML arrives. “Server island” names the component; “hole” names the gap it fills.
  • Fallback (ogygiaFallback): the snippet a server island shows until its HTML arrives. The component declares it in its props. See Show a fallback.
  • On-demand hole: a server island marked fetch: 'interaction'. Nothing is fetched until the visitor hovers, focuses, touches or presses a key inside it. See Load on demand.
  • Lake: static server HTML inside an island, marked wake: 'none'. It ships no JavaScript though the island around it does. See Lakes.
  • Live lake: a lake marked render: 'live', which fetches fresh HTML when the island around it mounts again. Not the same as a live region. See Keep a lake fresh.
  • Held region: a region as a value. The server picks a component and its props with region(), and the page renders it with <Region of={…} />. See Held regions.
  • Placeholder: the snippet <Region> shows while the promise it was given resolves. See Let the region own the wait.
  • Live region: a held region sent again when its data changes, by query.live or by a command’s own response. It morphs in place, or updates a live island’s props. See Live regions.
  • Boot island: an island with no markup, whose only job is its $effect. It’s how a csr = false page runs browser code with no UI. See Boot islands.
  • Region snippet: a child or snippet passed into an island. Plain children freeze to server HTML, and a named snippet hydrates inside the island. See Children and snippets.
  • Portable binding: a marked import is a normal component value, so you can pass it as a prop, keep it in a list or render it dynamically. See Use the island like any component.

Marks and schedules

  • Schedule: when a region acts. 'load', 'idle', 'visible', 'interaction' or a media query. On an island it’s when the JavaScript runs; on a hole, when the HTML arrives. See Pick a schedule.
  • wake: the attribute that schedules an island’s JavaScript. 'none' makes a lake; on a live lake it’s when it revalidates.
  • render: where the HTML comes from: 'static' (the default, in the page’s own render), 'deferred' (a server island) or 'live' (a live lake).
  • fetch: the schedule of a server island’s HTML. A server island never takes wake.
  • prefetch: warms a server island’s HTML ahead of its fetch, so the swap needs no request. See Warm it before it swaps.
  • keep: keeps a live island’s DOM and state across SPA navigations instead of mounting it again. See Keep an island alive.
  • stitch: fills a server island into a stored page as it’s served, at your server ('serve') or at an ESI-capable CDN ('edge'). See Personalization.
  • preset: a named bundle of attributes and tuning options from ogygia({ presets }). See presets.
  • region: 'raw': marks a component for held regions where the build can’t see the region() call. It bakes no schedule. See Choose how the component is imported.
  • Nesting rule: the closest marked parent decides. An island inside an island hydrates with it; a lake between them gives the inner one its own schedule. See Nest regions.
  • Hydration: Svelte attaching an island’s JavaScript to its server HTML in place, with no re-render. If a script edited the HTML first, ogygia puts the server HTML back before it hydrates. See When another script edits a sleeping island.

Data and state

  • Boundary (serialization boundary): the line every value crosses into an island. It’s written into the HTML and rebuilt in the browser, so data crosses as a copy. See Serialization.
  • Snapshot: what a crossed value is. Changing the host’s variable later, or an island’s prop, changes nothing on the other side. See What a snippet captures.
  • Wired class: a class with static wire = import.meta.og.wire({ encode, decode }). Every island that gets an instance gets the same live object. See Wired classes.
  • Wire codec: the { encode, decode } pair, with an optional id and merge, that tells a wired class how to cross. An id keeps the instance across navigations. See Write the codec.
  • Factory store: a store with its own methods, rebuilt in the island from its factory. og_derived is the derived store that stays live across islands. See Stores.
  • Module state: $state in a .svelte.ts module, shared by every island that imports it. See Share module state.
  • Context bridge: ogygia’s createContext, setContext and <Provide>, which carry context values to islands through the page. See Reach a subtree with context.
  • Page seed: a small script that carries page to the browser for islands that read $app/state or $app/stores. It ships only when an island reads it. See What the page ships.
  • Data shaking (dataShake()): a build helper that ships only the page.data keys your islands read. See Datashake.
  • Query seeding: in a production build, query results the server render awaited are written into the page, so an island reads them instead of fetching again. See Why the island doesn’t fetch twice.
  • Remote function: Kit’s query, command, form and prerender, which work inside islands unchanged. See Remote functions.
  • Form continuity: half-filled form fields in islands survive leaving a page and coming back. See Half-filled forms.

The server side

  • Region endpoint: the path ogygia.handle() serves (/__ogygia__ by default), where holes, live lakes and held regions fetch their HTML. See Server islands.
  • Signed URL: the address a hole fetches, signed with OGYGIA_SECRET when the page rendered, so the browser can ask only for that component with those props. It expires after ttl seconds. See Limits and failures.
  • OGYGIA_SECRET: the key that signs those URLs. Every deployment needs the same one. See OGYGIA_SECRET.
  • Renewal: a hole on a cached page whose URL expired signs itself again when it wakes, for up to maxPageAge. See maxPageAge.
  • requestEvent(): Kit’s RequestEvent inside any component during the server render. See Read the visitor’s request.
  • keepFallback(): a server island saying the fallback is already right, so it sends nothing. See Keep the fallback.
  • PPR (partial prerendering): a prerendered page whose server islands fill per visitor. See Partial prerendering.
  • Postrender (stored page): a page rendered once on its first request, stored whole, and served as bytes until something clears it. See Postrender.
  • Rewrite: your own pass over the HTML ogygia sends, such as a server render of web components. ogygia puts back whatever it moved before anything hydrates. See Rewrite.
  • Streamed page: a server-router page that yields its parts as they’re ready, on one response. See Streaming.
  • SPA router: ogygia’s client-side navigation for csr = false pages, on by default. It swaps the page in place and keeps chrome alive. See SPA router.
  • Soft refresh: what invalidateAll() does. It fetches the page again and updates page.data with no body swap and no island remount. See Refresh the page’s data.
  • Single-flight navigation: on a navigation, the next page’s holes come back in one batch request, streamed out of order as each one is ready. See Fetch every hole in one request.
  • Single-flight mutation: a command that returns a region carries its new HTML in its own response, so the region repaints with no second request. See Repaint after a command.
  • Server delta: an opt-in mode where the server skips re-rendering islands the browser already holds. See Skip re-rendering what didn’t change.
  • data-ogygia-keep: an attribute that keeps a piece of DOM, with its state, across navigations. See What data-ogygia-keep means.

Build and runtime

  • Runtime: the script that boots on a csr = false page and wakes its regions. It doesn’t load Svelte. Its boot chunk is about 20 KB brotli for a page of load islands, 25 KB with the SPA router. See Performance.
  • Feature-selected runtime: the build ships only the runtime code your marks use, so a page with no lakes carries no lake code. See What the runtime costs.
  • Macro: an import.meta.og.* call the build rewrites before your app runs, such as wire, $, bake or image. See Macros.
  • Barrel: a module that only re-exports others. barrels() rewrites imports from one to the files they name. See Barrels.
  • Plugin (feature package): a package such as @ogygia/flags whose Vite plugin you list beside ogygia(). See Packages.
  • ogygia.files: the package.json field a package uses to have its files compiled like your own source. See Packaging.
  • Message code: the name every ogygia error and warning carries, with a page at /e/<code>. See Constraints.

Other packages

  • Collection: a typed set of content entries from markdown, JSON or a CMS, defined with content(). See Collections.
  • Entry: one item of a collection, { id, data, meta, body }, where body is a held region. See Collections.
  • Blocks: a CMS page tree rendered through a registry of components. See Blocks.
  • Site: collections arranged into navigation, search and pages with site(). See Site.
  • Server router: @ogygia/router, pages and endpoints written as one typed table. See Server router.
  • Flag: a kill switch, rollout or A/B test, declared with flag() and decided on the server. See Feature flags.
  • Federation: another team’s app rendered into your pages as signed regions. A peer is one of those apps; a fragment is a page or widget it serves. See Federation.
  • Dock: the in-page devtools panel that shows each region, its cost and when it woke. See Dock.
  • Profiler: the server-render profiler at /__profiler. See SSR profiler.
  • Insights: the analysis behind the dock, the profiler’s report and @ogygia/testing. See @ogygia/insights.