Docs Menu
Docs/API Reference/API Reference: toastory/core
Updated October 2026

API Reference: toastory/core

Zero-DOM, Node-safe state machines, managers, timers, clock, and accessibility decision engines.

The toastory/core subpath contains the pure Node-safe, zero-DOM state machines and store controllers that power all platform adapters.

typescript
import {
  createToastStore,
  createToastManager,
  createConfigStore,
  createDialogManager,
  DEFAULT_CONFIG,
  createTimer,

// Create an isolated headless notification store: const config = createConfigStore(DEFAULT_CONFIG); const store = createToastStore(config);

store.subscribe(() => { console.log('Active toasts:', store.getToasts()); });

store.add({ type: 'success', title: 'Headless event dispatched', duration: 3000, }); `

Want to test these options live?

Launch the interactive playground to experiment with themes, positions, and live generators.

Open in Playground →