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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-devil-trigger

v0.5.1

Published

A stylish collection of React components with dynamic features and special effects, inspired by the fast-paced action of Devil May Cry.

Readme

React Devil Trigger

A stylish collection of React components with dynamic features and special effects, inspired by the fast-paced action of Devil May Cry.

🆕 What's New in v0.5.0

  • Enhanced Progress Bars: Fluid animations and energy effects for all progress bar variants
  • Improved Visual Effects: Dynamic glow effects, particle animations, and depth layers
  • Technical Improvements: Better performance and smoother animations

Installation

npm install react-devil-trigger

[!IMPORTANT] You need to import the CSS styles in your main file (e.g., main.tsx or App.jsx) to apply the default styles and animations.

import 'react-devil-trigger/dist/devil-trigger.css'; // Import CSS styles in your main file

Components

AudioDevilTrigger

Stylish audio player with Devil May Cry themes and effects.

import { AudioDevilTrigger } from 'react-devil-trigger';

function App() {
  return (
    <div>
      <AudioDevilTrigger
        audioSrc='path-to-audio.mp3'
        triggerKey='jackpot' // Optional trigger word
        characterTheme='dante'
      />
    </div>
  );
}

DevilProgressBar

Dynamic progress bars with Devil May Cry inspired effects and animations.

import { DevilProgressBar } from 'react-devil-trigger';

function App() {
  const [progress, setProgress] = useState(50);
  
  return (
    <div>
      <DevilProgressBar 
        progress={progress}
        variant="stylized"
        characterTheme="dante"
        label="Devil Trigger"
        showPercentage={true}
      />
    </div>
  );
}

Progress Bar Variants

Choose from various stylistic variants:

// Default style
<DevilProgressBar progress={75} />

// Stylized with energy effects
<DevilProgressBar progress={75} variant="stylized" />

// Devil Trigger gauge
<DevilProgressBar progress={75} variant="dt" />

// Sin Devil Trigger gauge (more intense effects)
<DevilProgressBar progress={75} variant="sdt" />

// Royal Guard style
<DevilProgressBar progress={75} variant="royal" />

Progress Bar Sizes

Choose from different size options:

<DevilProgressBar progress={75} height="xs" />
<DevilProgressBar progress={75} height="sm" />
<DevilProgressBar progress={75} height="md" /> // Default
<DevilProgressBar progress={75} height="lg" />
<DevilProgressBar progress={75} height="xl" />

Character Themes

Choose from various Devil May Cry character themes:

<AudioDevilTrigger
  audioSrc="devils-never-cry.mp3"
  characterTheme="dante"
/>

<DevilProgressBar
  progress={75}
  characterTheme="vergil"
  variant="sdt"
/>

Available themes: dante, vergil, nero, v, trish, lady, nico, sparda, default

Positioning Options

Choose where the player appears on the screen:

<AudioDevilTrigger
  position="bottom-right" // Default position
/>

<AudioDevilTrigger
  position="top-center" // Centered at the top
/>

<AudioDevilTrigger
  position="bottom-center" // Centered at the bottom
/>

Available positions: bottom-right, bottom-left, top-right, top-left, bottom-center, top-center

Size Variants

Choose the size that fits your design:

<AudioDevilTrigger
  size="sm" // Small size
/>

<AudioDevilTrigger
  size="lg" // Large size
/>

Available sizes: sm, md (default), lg, xl

Customizing Background

When customizing the background, there are two ways to set opacity:

  1. Using backgroundColor with opacity included:

    <AudioDevilTrigger
      backgroundColor='rgba(0, 0, 0, 0.7)'
      // backgroundOpacity is ignored when using rgba/hsla format
    />
  2. Using backgroundColor with backgroundOpacity:

<AudioDevilTrigger
     backgroundColor='#000000' // or any color name or hex code
     backgroundOpacity={0.7} // This will be applied to the color
/>

You can also adjust the backdrop blur effect:

<AudioDevilTrigger
  backdropBlur={5} // Custom blur value in pixels
  // or
  backdropBlur={false} // Disable blur
/>

Color Customization

Each theme comes with predefined colors, but you can override them:

<AudioDevilTrigger
  characterTheme='vergil'
  primaryColor='#0055aa' // Override primary color
  secondaryColor='#ffffff' // Override secondary color
  accentColor='#00ffee' // Override accent color
/>

Documentation

License

ISC License - see LICENSE for details