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

tebric

v1.0.3

Published

Tebric — gentle messages that arrive like whispers and fade like a breeze.

Readme

Tebric

Tebric — gentle messages that arrive like whispers and fade like a breeze.

A beautifully crafted, lightweight, and customizable toast notification library for React.
Built with Tailwind CSS, motion/react animations, and lucide-react icons —
designed to deliver subtle, elegant, and accessible feedback for your users.


🚀 Features

  • ✅ Toast types: success, error, info, warning, default
  • ✅ Custom JSX content support for fully flexible messages
  • ✅ Auto-dismiss with configurable duration
  • ✅ Manual dismiss with accessible close button
  • ✅ Smooth, performant animations powered by motion/react
  • ✅ Crisp SVG icons from lucide-react
  • ✅ ARIA roles & polite announcements for accessibility
  • ✅ Positioning support (top-right by default; easily extendable)
  • ✅ Promise-based toast for async workflows (toast.promise())
  • ✅ TypeScript support included
  • ✅ Tailwind CSS for easy styling and customization
  • ✅ Minimal dependencies — no Framer Motion required

📦 Installation

Install Tebric and its peer dependencies:

npm install tebric motion lucide-react tailwindcss
# or
yarn add tebric motion lucide-react tailwindcss

🧑‍💻 Usage

1. Wrap your app in the ToastProvider

import { ToastProvider } from "tebric";

function App() {
  return (
    <ToastProvider>
      <YourApp />
    </ToastProvider>
  );
}

2. Trigger toasts anywhere with the toast API

import { toast } from "tebric";

// Simple toasts
toast.success("Operation successful!");
toast.error("Oops! Something went wrong.");
toast.info("Here’s some info.");
toast.warning("Heads up!");
toast.custom(
  <div>
    <strong>Custom JSX 🎉</strong>
  </div>
);

// Promise toast for async calls
toast.promise(fetchData(), {
  loading: "Loading data...",
  success: "Data loaded successfully!",
  error: "Failed to load data.",
});

🧩 Toast API

| Method | Description | Params | | --------------- | ------------------------------------ | ------------------------------------------------------------ | | toast.success | Show a success toast | (content: ReactNode, options?: Partial<Toast>) | | toast.error | Show an error toast | (content: ReactNode, options?: Partial<Toast>) | | toast.info | Show an info toast | (content: ReactNode, options?: Partial<Toast>) | | toast.warning | Show a warning toast | (content: ReactNode, options?: Partial<Toast>) | | toast.custom | Show custom JSX toast | (content: ReactNode, options?: Partial<Toast>) | | toast.update | Update existing toast by ID | (id: string, updates: Partial<Toast>) | | toast.dismiss | Dismiss toast by ID, or all if no ID | (id?: string) | | toast.promise | Show toast based on Promise state | (promise: Promise<T>, messages: {loading, success, error}) |


🎨 Customization

  • Uses Tailwind CSS for styling — override styles easily via utility classes.
  • Icons from lucide-react — replace or customize icons if needed.
  • Animation controlled via motion/react with smooth fade and scale effects.
  • Accessible ARIA roles and live regions for screen readers.

⚙️ Development

  • Written in TypeScript with React 18.
  • Build with Vite using ESM and CJS outputs.
  • Peer dependencies: react, react-dom, motion, lucide-react.
  • Supports modern browsers with ES modules.

🧾 License

MIT © Ebn Sina


📜 About

Tebric — gentle messages that arrive like whispers and fade like a breeze.
Notifications crafted to be soft, swift, and beautifully fleeting.
Where every toast is a quiet celebration, graceful and brief.


Feel free to open issues or contribute!


Happy coding with Tebric! 🌿