@aerofortress/react
v0.6.0
Published
AeroFortress Framework frontend spine — platform/design-system-agnostic React primitives (AsyncState, Resource, session, paging, …) the app composes.
Maintainers
Readme
@aerofortress/react
The frontend spine of the AeroFortress Framework —
platform- and design-system-agnostic React primitives the app composes into MVVM screens. It ships the shapes
the framework's frontend conventions (AFFE*) steer toward, so the rules have something to steer to:
AsyncState/<Resource>— the one async-state shape (loading / error / data), never rawisPending/isError.- Session —
SessionState/toSessionState(the tri-stateloading | authenticated | anonymous) + thelib/sessionseam that pairs the bearer write with a cache reset. - Navigation —
safeBackand guarded redirect helpers (router-agnostic: expo-router ↔ TanStack). - Paging —
usePager/useAccumulatedPagesover a stable, tiebroken order. - Submit — a typed submit helper for form → command flows.
Stranger-maintainable, doctor-removable: plain React you can read, with no runtime you inherit from. The only
peer dependency is react (>=18).
npm install @aerofortress/reactimport { Resource, toSessionState, safeBack } from "@aerofortress/react";MIT © Lucas Tinoco
