npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@arikajs/sweet

v0.10.7

Published

Premium, advanced alerts and notifications for ArikaJS — with Glassmorphism and fluent API.

Readme

@arikajs/sweet 🍭

Premium, Advanced Alerts & Notifications for ArikaJS.

@arikajs/sweet is a high-performance, zero-dependency UI notification package designed for the ArikaJS ecosystem. It provides the fluid experience of SweetAlert combined with advanced, modern features like Glassmorphism, Chained Promises, and Stacked Toasts.


✨ Features

  • 💎 Glassmorphism Design: Modern, translucent UI components that feel premium out of the box.
  • 🔄 Smart Promises: Built-in support for sweet.promise() which handles loading, success, and error states in one go.
  • 🥞 Stackable Toasts: Support for multiple notifications that stack beautifully in corners.
  • 🔗 Chained Alerts: Easily sequence multiple alerts with an elegant fluent API.
  • ⚡ Zero Dependencies: Pure Vanilla JS/TS and CSS. Tiny footprint.
  • 📱 Fully Responsive: Works perfectly on mobile and desktop.
  • 🎮 Fully Accessible: Aria-compliant and keyboard-friendly.

🚀 Getting Started

Installation

pnpm add @arikajs/sweet

Basic Usage

import { sweet } from '@arikajs/sweet';

// Simple Alert
sweet.fire('Hello Arika!', 'This is a premium alert.', 'success');

// Success Shortcut
sweet.success('Board created!');

🧙‍♂️ Advanced Features

1. The Promise Handler (Arika Exclusive)

Handle your async tasks with zero extra logic.

sweet.promise(createBoard(data), {
    loading: 'Creating your board...',
    success: 'Board created successfully!',
    error: (err) => `Failed: ${err.message}`
});

2. Stacked Toasts

Fire multiple notifications without them overlapping.

sweet.toast('You have a new message!', 'info');
sweet.toast('Project updated.', 'success');

3. Confirmation Dialogs

Using async/await for logical flow.

if (await sweet.confirm('Are you sure?', 'This cannot be undone.')) {
    // perform action...
}

🛠️ Configuration

Customize every aspect of your alerts:

sweet.fire({
    title: 'Custom Layout',
    text: 'ArikaJS gives you full control.',
    icon: 'question',
    showCancelButton: true,
    confirmButtonColor: '#4f46e5',
    backdrop: 'blur(10px)',
    timer: 3000
});

📄 License

MIT © ArikaJs