Overview
alert-notify is a multi-framework toast library. Call toast.success() from anywhere. The portal auto-mounts. Optional helpers sync config for React, Vue, and Svelte. Measured JS gzip: Vanilla ~5.9KB · React ~6.7KB · Angular ~5.9KB · Vue ~6.5KB · Svelte ~6.8KB, plus shared ~2.7KB CSS.
Bundle size by path
Each number is core plus that path's adapter (minified + gzip). CSS is separate. Angular is a recipe on the vanilla core, so it matches Vanilla.
| Path | What you import | JS gzip |
|---|---|---|
| Vanilla | Core only (alert-notify) | ~5.9KB |
| React | Core + alert-notify/react | ~6.7KB |
| Angular | Core only (recipe, same as vanilla) | ~5.9KB |
| Vue | Core + alert-notify/vue | ~6.5KB |
| Svelte | Core + alert-notify/svelte | ~6.8KB |
style.css | Shared styles (all paths) | ~2.7KB |
Support tiers
| Tier | What it means | Stacks |
|---|---|---|
| Native | Core package or CDN IIFE. Full API. | Vanilla JS, CDN |
| Helper | First-class export that syncs config and may add framework custom helpers. | React, Vue, Svelte |
| Recipe | Documented use of the core API. No dedicated package export. | Angular, Astro |
Start here
Pick a stack
- React Helper · Optional Toaster, React-aware toast with JSX icons, and custom().
- Vue Helper · Optional Toaster, Vue-aware toast with VNode icons, and custom().
- Svelte Helper · Optional Toaster plus svelte/toast for component icons and custom().
- Angular Recipe · Use the core API. No Angular module ships.
- CDN Native · IIFE build with AlertNotify.toast and injected CSS.
- Astro Recipe · Client script or island using the core API.