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

techz-render

v1.0.6

Published

Modern, theme-aware, animation-powered JavaScript utility that injects UI components directly into the DOM. No need for pre-existing HTML — everything is created dynamically.

Readme

🧩 techz-render - Dynamic UI Components

techz-render is a modern, theme-aware, animation-powered JavaScript utility that injects UI components directly into the DOM. No need for pre-existing HTML — everything is created dynamically.

Built for sleek user experiences with built-in support for:

  • Alerts
  • Message Boxes
  • Spinners
  • Full-screen UI blockers

🚀 Features

  • 🔥 Dynamic DOM insertion
  • 🎨 Light/Dark theme support
  • 💫 Smooth animations
  • 🧱 Modular components
  • 🧩 Fully customizable
  • 📦 No external dependencies

📦 Installation

import Render from "https://cdn.skypack.dev/techz-render"

🧪 Quick Example

const ui = new Render();

ui.alert({
  theme: 'dark',
  variant: 'success',
  msg: 'Everything went well!',
  timeout: 4000
});

🧰 API Reference

🛎️ alert(options)

Shows a dismissible alert message with optional auto-dismiss.

ui.alert({
  theme: 'light', // or 'dark'
  variant: 'info', // 'success' | 'warning' | 'error'
  msg: 'This is an alert!',
  timeout: 3000 // milliseconds
});

💬 msg_box(options)

Creates a confirmation-style message box with title, message and actions.

ui.msg_box({
  theme: 'dark',
  title: 'Are you sure?',
  msg: 'This action cannot be undone.',
  action: {
    cancel: {
      text: 'Cancel',
      callback: () => console.log('Cancelled')
    },
    confirm: {
      text: 'Confirm',
      callback: () => console.log('Confirmed')
    }
  }
});

🔄 spinner(options)

Displays a loading spinner, optionally animated and themed.

ui.spinner({
  variant: 'dual', // 'simple' | 'dual' | 'triple' | 'custom'
  theme: 'dark',
  backdrop: true,
  events: {
    screen_click: {
      hide: true,
      destroy: false
    },
    auto__: {
      timer: 5000,
      hide: false,
      destroy: true
    }
  },
  text: {
    content: 'Loading...',
    animated: true,
    color: 'white'
  },
  custom: {
    url: 'https://yourdomain.com/spinner.svg',
    animation: 'pulse',
    color: '#00bfff'
  }
});

🚫 block_ui(options)

Displays a full-screen blocking overlay with animated backgrounds.

ui.block_ui({
  theme: 'dark', // or 'light'
  animation: 'particles', // 'particles' | 'lines' | 'shapes' | 'orbs'
  message: 'Please wait...',
  count: 80,
  events: {
    screen_click: {
      destroy: true
    },
    auto__: {
      timer: 5000,
      destroy: true
    }
  },
  custom: {
    __size: {
      min: 10,
      max: 60
    }
  }
});

🌍 Load Page (Optional Utility)

Loads HTML content into a container and optionally runs a callback.

ui.page('/my/page.html', document.getElementById('app'), () => {
  console.log('Page loaded!');
});

📌 Notes

  • All components are dynamically styled using embedded CSS via JS.
  • Themes:
    • light: Uses dark-colored elements over light backgrounds.
    • dark: Uses light-colored elements over dark backgrounds.

🧹 Cleanup

Every component returns an id, or a control object (destroy(), toggle()) for manual handling.

const { destroy } = ui.spinner(/*...*/);
destroy();

🧑‍💻 Author

Made by Mike DP
Feel free to customize and integrate into your modern JavaScript applications.