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

@bg-effects/star-trails-gl

v1.0.5

Published

Star Trails GL Effect - A high-performance star trails background effect built with OGL and Vue.

Readme

@bg-effects/star-trails-gl

基于 OGL 和 Vue 3 开发的高性能星轨背景特效。

在线演示

English | 简体中文

特性

  • 🚀 高性能: 使用 WebGL (OGL) 渲染成千上万颗星星,性能卓越。
  • 🎨 高度可定制: 可调节速度、数量、颜色、长度等多种参数。
  • 📐 多模式支持: 支持同心圆(Concentric)和径向(Radial)渲染模式。
  • 🛠 调试模式: 内置调试面板,支持实时配置预览。
  • 🌍 多语言支持: 支持英文和中文。

安装

pnpm add @bg-effects/star-trails-gl ogl vue

使用方法

基础用法

<script setup>
import { StarTrailsGL } from '@bg-effects/star-trails-gl'
</script>

<template>
  <StarTrailsGL />
</template>

自定义配置

<template>
  <StarTrailsGL 
    :speed="1.5"
    :star-count="300"
    star-color="#ffffff"
    render-mode="concentric"
  />
</template>

调试模式

<template>
  <StarTrailsGL debug />
</template>

配置参数 (Props)

| 参数 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | speed | number | 1.0 | 动画速度倍数 | | starCount | number | 200 | 星星/星轨的数量 | | starColor | string | #ffffff | 单色模式下的颜色 | | length | number | 100 | 星轨长度 | | renderMode | 'concentric' \| 'radial' | 'concentric' | 渲染模式 | | centerX | number | 0.5 | 中心点 X (0.0 - 1.0) | | centerY | number | 0.5 | 中心点 Y (0.0 - 1.0) | | colorMode | 'single' \| 'multi' | 'multi' | 颜色模式 | | starBrightness | number | 1.0 | 星星亮度倍数 | | thickness | number | 2.0 | 星轨粗细 | | scale | number | 1.0 | 整体缩放比例 | | taper | number | 0.5 | 尾部收缩因子 (0.0 - 1.0) | | twinkle | number | 0.5 | 闪烁强度 | | tilt | number | 0.0 | 倾斜角度 (弧度) | | drawMode | 'ribbon' \| 'lines' | 'ribbon' | 几何体绘制模式 | | debug | boolean | false | 是否开启调试面板 | | lang | 'zh-CN' \| 'en' | 'zh-CN' | 调试面板语言 |

开源协议

MIT