Skip to content

@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.

Terminal window
npm install @presencelearning/frontend-core

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';
SubpathPlanned scope
@presencelearning/frontend-core/authAuth synchronization across tabs/windows · Token management and refresh · Session handling
@presencelearning/frontend-core/feature-flagsConfigCat integration · Feature toggle utilities · Environment-based feature management
@presencelearning/frontend-core/observabilityLogging helpers · Analytics integration · Monitoring and error tracking utilities

Source: packages/core