Updated October 2026
API Reference: toastory/core
Zero-DOM, Node-safe state machines, managers, timers, clock, and accessibility decision engines.
On this page:
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.