SDK & UI reference

Public surface of the shared frontend libs. @kubuno/sdk provides registries, stores, hooks and i18n; @kubuno/ui provides the visual primitives.

@kubuno/sdk — registries #

RegistryUsage
RouteRegistryDeclare the module's routes (lazy components).
SlotRegistryInject a component into a named slot (e.g. app-dialogs).
ExtensionRegistryExtend an extension point exposed by another module.
WidgetRegistryAdd a widget to the dashboard.
ModuleServiceRegistryPublish / consume a cross-module contract.
FileTypeRegistryMap a file type to an icon and a handler.
WaffleAppRegistry · FaviconRegistryApp launcher · per-module favicon.

@kubuno/sdk — stores & hooks #

Zustand stores: useAuthStore, useModulesStore, useSidebarStore, useToolbarStore, useSearchStore, useNotificationStore, useThemeStore, useUiStore, useRightPanelStore, useWsStore

Hooks & utils: useConfirm, useContextMenu, prompt(), applyDir(), LANGUAGES, and the SDK_VERSION compatibility constant.

@kubuno/ui — components #

Controls: Button, Input, Textarea, NumberInput, Checkbox, Radio, Toggle, Dropdown, DatePicker, Tabs, FontPicker.

Content & color: RichText, ColorPicker, ColorField, GradientPicker.

Surfaces & display: MenuDropdown, AnchoredPopover, FloatingWindow, Badge, Spinner, Separator, KubunoLogo, ConfirmDialog, ConflictDialog.

Tip

This showcase site faithfully reproduces two of these primitives (Button and MenuDropdown) to stay consistent with the application.