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

vue-godrays

v1.0.1

Published

A stunning God Rays effect component for Vue applications

Readme

Vue GodRays Component 🌟

GodRays Effect Demo

A stunning and customizable God Rays (Light Rays) effect component for Vue applications. Create atmospheric lighting effects with ease, perfect for adding dramatic flair to your web projects.

This component is a Vue implementation inspired by and based on the original Framer University Light Rays component. Special thanks to Framer University for their excellent original work.

✨ Features

  • 🎨 Multiple color modes (single, multi, random)
  • ⚡ Smooth animation controls
  • 🎛️ Fully customizable rays (count, reach, intensity)
  • 📱 Responsive design
  • 🎯 Precise positioning control
  • 🎨 Custom background color support

📦 Installation

npm install vue-godrays
# or
yarn add vue-godrays

🚀 Quick Start

<template>
  <GodRays
    :animation="{ animate: true, speed: 1 }"
    :raysColor="{ mode: 'single', color: '#ffffff' }"
    :intensity="0.8"
    :rays="20"
  />
</template>

<script>
import { GodRays } from "vue-godrays";

export default {
  components: {
    GodRays,
  },
};
</script>

🎮 Props

| Prop | Type | Default | Description | | ----------------- | -------- | -------------------------------------- | ------------------------------------ | | animation | Object | { animate: true, speed: 1 } | Controls animation state and speed | | raysColor | Object | { mode: 'single', color: '#ffffff' } | Defines ray coloring mode and colors | | backgroundColor | string | '#000000' | Background color of the component | | intensity | number | 0.7 | Intensity of the rays (0.0 - 1.0) | | rays | number | 15 | Number of light rays | | reach | number | 1 | How far the rays extend | | position | number | 50 | Center position of rays (0 - 100) | | radius | string | '50%' | Radius of the light source | | style | Object | {} | Additional CSS styles |

🎨 Color Modes

The component supports three color modes through the raysColor prop:

  1. Single Color Mode
:raysColor="{ mode: 'single', color: '#ffffff' }"
  1. Multi Color Mode
:raysColor="{
  mode: 'multi',
  color1: '#ff0000',
  color2: '#00ff00'
}"
  1. Random Color Mode
:raysColor="{ mode: 'random' }"

🎯 Examples

Basic Usage

<GodRays
  :animation="{ animate: true, speed: 1 }"
  :raysColor="{ mode: 'single', color: '#ffffff' }"
  :intensity="0.8"
  :rays="20"
/>

Dramatic Effect

<GodRays
  :animation="{ animate: true, speed: 0.5 }"
  :raysColor="{ mode: 'multi', color1: '#ff0000', color2: '#ffd700' }"
  :intensity="1"
  :rays="30"
  :reach="1.5"
  backgroundColor="#000000"
/>

Subtle Background Effect

<GodRays
  :animation="{ animate: true, speed: 0.3 }"
  :raysColor="{ mode: 'single', color: '#4a90e2' }"
  :intensity="0.4"
  :rays="15"
  :reach="0.8"
  backgroundColor="rgba(0,0,0,0.8)"
/>

🛠️ TypeScript Support

The component includes full TypeScript support with the following interface:

export interface GodRaysProps {
  animation?: {
    animate: boolean;
    speed: number;
  };
  raysColor?: {
    mode: "single" | "multi" | "random";
    color?: string;
    color1?: string;
    color2?: string;
  };
  backgroundColor?: string;
  intensity?: number;
  rays?: number;
  reach?: number;
  position?: number;
  radius?: string;
  style?: Record<string, string | number>;
}

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

📝 License

MIT License - feel free to use this component in your projects!

🙏 Credits

  • Original concept and design by Framer University
  • Vue implementation developed with ❤️ by Liam Robinson

If you find this component useful, please consider giving it a ⭐️ on GitHub!