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

@zamanapp/samt

v1.1.0

Published

An opinionated toast notification library for Vue 3 — SVG morphing, spring physics, minimal API. Ported from sileo.

Readme

سَمْتcomposure, demeanor. صَمْتsilence.

One word in Latin letters; two in Arabic. The difference is whether you read it with a sīn (س) or a ṣād (ص). A good toast is both at once: it arrives with composure and leaves in silence.

Credit

samt is a Vue port inspired by sileo by hiaaryan. Its interaction design, animation feel, and API shape come from there — this package is an independent Vue 3 implementation of those ideas. If samt is useful to you, go star the original too.

Install

pnpm add @zamanapp/samt

Vue 3.5+ is a peer dependency.

Quick setup

Add <Samt> once at your app root and import the CSS:

<!-- App.vue -->
<script setup>
import { Samt } from "@zamanapp/samt";
import "@zamanapp/samt/styles.css";
</script>

<template>
  <Samt />
  <RouterView />
</template>

Then fire a toast from anywhere:

import { samt } from "@zamanapp/samt";

samt.success({ title: "Saved!" });

Toast types

import { samt } from "@zamanapp/samt";

samt.success({ title: "Saved!" });
samt.error({ title: "Something went wrong", description: "Please try again." });
samt.warning({ title: "Low disk space" });
samt.info({ title: "New version available" });
samt.action({
  title: "Undo?",
  button: { title: "Undo", onClick: () => restore() },
});

Every method returns the toast's id, which you can use to dismiss or update it.

Stacking

Fire as many as you like — toasts stack per position, fan out on hover, and cap out with the oldest dismissed first. Tune the cap, fan-out, and alignment with the <Samt> props below.

Positions

samt.success({ title: "Top center", position: "top-center" });
samt.info({ title: "Bottom left", position: "bottom-left" });

Positions: top-left, top-center, top-right, bottom-left, bottom-center, bottom-right. Set a default for every toast on <Samt>.

Promise

samt.promise transitions a single toast through loading → success/error:

samt.promise(saveUser(), {
  loading: { title: "Saving…" },
  success: (user) => ({ title: `Saved ${user.name}` }),
  error: (err) => ({ title: "Save failed", description: err.message }),
});

Updating & dismissing

Reuse an explicit id to morph a toast in place instead of stacking a new one:

samt.info({ id: "sync", title: "Syncing…" });
// later
samt.success({ id: "sync", title: "Synced" }); // morphs the same toast

samt.dismiss(id); // dismiss one
samt.clear(); // clear all
samt.clear("top-right"); // clear one position

Composable

useToast is a thin wrapper for use inside components:

<script setup>
import { useToast } from "@zamanapp/samt";

const toast = useToast();
toast.success({ title: "Done!" });
</script>

<Samt> props

| Prop | Type | Default | Description | | ------------ | -------------------------------------------- | --------------- | ---------------------------------------------------------- | | position | SamtPosition | "top-right" | Default position for toasts. | | theme | "light" \| "dark" \| "system" | — | Colour theme. | | offset | number \| { top?, right?, bottom?, left? } | — | Distance from the viewport edges. | | maxToasts | number | width-derived | Max toasts per position before the oldest is evicted. | | expand | boolean | true | Whether hovering fans the stack into a list. | | stackAlign | "start" \| "end" | "end" | Nudge direction for centered stacks (corners auto-derive). |

Options

SamtOptions (accepted by every samt.* method):

| Option | Type | Description | | ------------- | ------------------------------------------- | ------------------------------------------------- | | title | string | Heading text. | | description | string \| VNode \| Component | Body content. | | duration | number \| null | Auto-dismiss ms; null keeps it until dismissed. | | position | SamtPosition | Override the default position. | | icon | VNode \| null | Custom icon (null hides it). | | button | { title, onClick } | Action button. | | id | string | Reuse to update a toast in place. | | roundness | number | Corner radius. | | styles | { title?, description?, badge?, button? } | Per-part class overrides. | | autopilot | boolean \| { expand?, collapse? } | Auto expand/collapse timing. |

License

MIT — see LICENSE.