[data-reveal]{opacity:1!important;transform:none!important}
Overview
Frontend composables

Overview

The composables a custom frontend module's Vue calls to integrate with the DMS.

When your frontend layer ships its own Vue (Frontend layer), these are the composables it calls to talk to the DMS — the table below maps them to their chapters. Where the previous section, Extending the dashboard, is about registering capabilities, this one is the toolkit your components consume.

All are auto-imported by the base layers — call them from <script setup> or a composable; no import needed.

The toolkit

ChapterComposables
Auth requests & permissionsuseApiData, useAuthFetch ($authFetch), usePermissions, useMultiAccount, useCurrentUser, useLogout, useSessionRecovery
Realtime & notificationsuseRealtimeTopic, usePageRealtime, usePageLive, usePageLiveRefresh, useUserRealtime, useNotifications
Page contextuseSiteLayout, useCurrentModule, useIsOwner, usePageRecordLabel, usePageToolbarSize, useDevReload, usePreferences, useFavoritePages, page setup, …
UI toolkituseModal, useDrawer, useConfirm, useConfirmFrom, useApiError, useExportJob
Utilitiesi18n (useTranslation), leave guard (usePageLeaveGuard), onboarding
To read backend data a component renders, use useApiData; for any other backend call (a write, a read on a click), $authFetch from useAuthFetch — never a bare $fetch. Only these attach the session and recover from an expired one, and only useApiData renders the data on the server and hands it to the browser. See Auth requests & permissions.

Next steps

Auth requests & permissions

Call the backend with the user's session.

Realtime & notifications

Follow topics and the page's live state.

Custom component

Where your Vue meets the page.