Primitives / foldkit-primitives

The map

Each subpath is one concern and one import. Its README has the full reference: every Model shape, Message, argument, and failure rule.

SubpathWhat it coversPrimitives
mediathe environmentMediaQuery (+ PrefersDark, PrefersReducedMotion), Breakpoints, platformFromUA, isBrowser
netthe networkOnline, websocket, sse, broadcastMessages, postBroadcast, SharedHost
timethe clockTimer, Interval, ticks, debounce, Throttle, formatRelativeTime
stateUI state with nowhere else to livePagination, history, Locale, SelectionSet, Virtual, range, layout math
motionanimationTween, Spring, Presence, the Motion service
interactionkeyboard, pointer, and focus patterns, with their BehaviorsRovingTabindex, Typeahead, ListNavigation, GridNavigation, TreeNavigation, FocusScope, Press, LongPress, Move, Targets, PointerDrag, EditableText, FocusVisible, DismissLayer, Layers, Selection, LiveAnnounce
devicehardwareGeolocation, mediaDevices, mediaStream, permissions, fullscreen
eventsraw window eventsVisibility, WindowSize, Idle, InputModality, keyboardEvents, pointerEvents, scrollEvents, activeElementEvents, matchHotkey
observerselement observersResize, Intersection, Mutation, Bounds
domelement Mounts and one-shot CommandsAutofocus, InputMask, KeepInView, Measure, FluidHover, FocusScope, FollowTabStop, ScrollLock, HideOutside, copyText, readText, share, loadScript, keepScroll, pointedLinks