@presencelearning/frontend-core
Core utilities for Presence Learning frontends. The package is structured around three planned domains:
- Authentication — Cross-tab auth sync, token management, session handling
- Feature flags — ConfigCat integration and environment-based feature management
- Observability — Logging, analytics, error tracking helpers
Status: scaffolded. The package is published with subpath exports (
/auth,/feature-flags,/observability) but utilities are not yet implemented. This page tracks the intended scope; submodule pages will fill in as implementations land.
Install
Section titled “Install”npm install @presencelearning/frontend-coreImports
Section titled “Imports”Each domain is exposed as its own subpath import:
// import { ... } from '@presencelearning/frontend-core/auth';// import { ... } from '@presencelearning/frontend-core/feature-flags';// import { ... } from '@presencelearning/frontend-core/observability';The package root re-exports everything for convenience:
// import { ... } from '@presencelearning/frontend-core';Subpath exports
Section titled “Subpath exports”| Subpath | Planned scope |
|---|---|
@presencelearning/frontend-core/auth | Auth synchronization across tabs/windows · Token management and refresh · Session handling |
@presencelearning/frontend-core/feature-flags | ConfigCat integration · Feature toggle utilities · Environment-based feature management |
@presencelearning/frontend-core/observability | Logging helpers · Analytics integration · Monitoring and error tracking utilities |
Source: packages/core