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

oura-ui

v1.0.0

Published

A modern, glassmorphic notification library powered by ES6+ and TypeScript

Downloads

10

Readme

Oura.js

npm version Bundle Size License: MIT TypeScript

🪟 The industry's most versatile glassmorphism notification & component library.

Zero dependencies. 10 kB gzipped. Dark mode. i18n. Fully typed.


✨ Features

| Component | Description | | ----------------- | -------------------------------------------------- | | Modals | Glassmorphic dialog boxes with confirm/cancel/deny | | Toasts | Stackable notifications with 3D depth effect | | Drawers | Side panels (Sheet) from any edge | | Tooltips | Contextual hints on hover/focus | | Popovers | Floating panels anchored to elements | | Dropdowns | Menus with icons, shortcuts & keyboard nav | | Context Menus | Custom right-click menus | | Inline Alerts | Static banners (success/warning/error/info) | | Skeletons | Animated loading placeholders | | Hover Cards | Preview cards on hover |

Plus: Toast actions, custom SVG icons, exit animations, 6-way positioning, system theme sync, and i18n (10 languages).


📦 Install

npm install oura-ui

CDN

<script src="https://unpkg.com/oura-ui/dist/oura.umd.cjs"></script>

🚀 Quick Start

import Oura from 'oura-ui';

// Configure
Oura.configure({
  theme: 'system', // light-glass | dark-glass | system
  position: 'top-right', // 6 positions
  locale: 'en',
});

// Toast
Oura.success('Saved!', 'Your changes are live.');

// Toast with actions
Oura.toast({
  title: 'File deleted',
  icon: 'warning',
  actions: [{ label: 'Undo', onClick: () => console.log('Undo!') }],
});

// Confirm dialog
const result = await Oura.confirm('Delete?', 'This is permanent.');
if (result.isConfirmed) {
  /* ... */
}

// Drawer
Oura.drawer({
  title: 'Settings',
  side: 'right',
  html: '<p>Your content here</p>',
});

// Tooltip
Oura.tooltip('#my-btn', {
  content: 'Save your work',
  placement: 'top',
});

// Dropdown Menu
Oura.dropdown('#menu-btn', {
  items: [
    { label: 'Edit', icon: '✏️', shortcut: '⌘E', onClick: () => {} },
    { separator: true },
    { label: 'Delete', danger: true, onClick: () => {} },
  ],
});

// Inline Alert
Oura.alert({
  title: 'Heads up',
  description: 'New version available.',
  variant: 'info',
});

🎨 Theming

// Light / Dark
Oura.configure({ theme: 'light-glass' });
Oura.configure({ theme: 'dark-glass' });

// Auto-detect OS preference
Oura.configure({ theme: 'system' });

// Custom accent color
Oura.configure({ accent: '#8b5cf6' });

CSS Custom Properties

| Variable | Default | Description | | --------------- | ------------------------ | ------------- | | --oura-bg | rgba(255,255,255,0.45) | Background | | --oura-text | #1a1a1a | Text color | | --oura-border | rgba(255,255,255,0.6) | Border | | --oura-accent | #007bff | Accent color | | --oura-radius | 16px | Border radius | | --oura-font | system-ui | Font family |


🌐 i18n

Built-in support for 10 languages: en, es, fr, de, it, pt, zh, ja, ru, ar.

Oura.configure({ locale: 'es' });
// Buttons will show "Confirmar", "Cancelar", etc.

TypeScript

Tipos públicos se reexportan junto al default:

import Oura from 'oura-js';
import type { OuraOptions, OuraConfig, OuraResult, OuraPromiseMessages } from 'oura-js';

package.json declara exports.types primero para que el IDE resuelva bien los .d.ts.


Development

npm run lint              # ESLint (TypeScript)
npm run format:check      # Prettier (CI también lo exige)
npm test                  # Vitest
npm run test:coverage     # Vitest + V8 coverage (same as CI)
npm run build

Guidance on HTML, XSS, and SSR: see Security & HTML in the documentation site. For contributing, see CONTRIBUTING.md. Product execution plan: BACKLOG.md.


📖 API Reference

Notifications

| Method | Description | | ----------------------------- | ----------------------- | | Oura.toast(options) | Toast notification | | Oura.success(title, text?) | Success toast shorthand | | Oura.error(title, text?) | Error toast shorthand | | Oura.warning(title, text?) | Warning toast shorthand | | Oura.info(title, text?) | Info toast shorthand | | Oura.promise(promise, msgs) | Promise-tracking toast |

Dialogs

| Method | Description | | ---------------------------- | -------------- | | Oura.fire(options) | Modal dialog | | Oura.confirm(title, text?) | Confirm dialog | | Oura.prompt(options) | Input prompt | | Oura.drawer(options) | Side panel |

Components

| Method | Returns | Description | | --------------------------------- | ------------- | ------------------- | | Oura.tooltip(target, opts) | cleanup() | Tooltip | | Oura.popover(target, opts) | cleanup() | Popover | | Oura.dropdown(target, opts) | cleanup() | Dropdown menu | | Oura.contextMenu(target, items) | cleanup() | Right-click menu | | Oura.hoverCard(target, opts) | cleanup() | Hover preview card | | Oura.alert(opts) | HTMLElement | Inline banner | | Oura.skeleton(opts) | HTMLElement | Loading placeholder |


📄 License

MIT © Oura Open Source