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

@ngx-3d/effects

v0.1.34

Published

Particle effects library for @ngx-3d/viewport

Downloads

17

Readme

@ngx-3d/effects

Particle effects library for @ngx-3d/viewport. Add stunning visual effects to your 3D objects with a simple declarative API.

Features

  • 🎨 Declarative API - Add effects through simple Angular components
  • 🎯 Smart Positioning - Automatic anchor points with custom position support
  • 🎭 Layer Control - Render effects in front, behind, or merged with objects
  • 🔥 Rich Presets - Pre-configured effects ready to use (fire, smoke, water, etc.)
  • Performance - Optimized particle systems with pooling and batching
  • 📐 Camera-Aware - Works with both orthographic and perspective cameras
  • 🎛️ Highly Customizable - Fine-tune every aspect of your effects

Installation

npm install @ngx-3d/effects

Quick Start

import { N3DEffect } from '@ngx-3d/effects';

@Component({
  standalone: true,
  imports: [N3DEffect],
  // ...
})
<n3d-element id="rocket" modelPath="assets/rocket.glb">
  <n3d-effect 
    type="fire"
    anchor="bottom"
    [density]="200"
    [active]="true"
  />
</n3d-element>

Available Effects

  • fire - Animated fire with glow
  • smoke - Soft rising smoke
  • water - Fountain with physics
  • sparks - Electric sparks
  • fireflies - Glowing particles
  • More coming soon!

API

Inputs

| Input | Type | Default | Description | |-------|------|---------|-------------| | type | EffectType | required | Effect preset type | | anchor | AnchorPosition | 'center' | Predefined anchor position | | customAnchor | {x,y,z} | - | Custom 3D position (overrides anchor) | | renderLayer | RenderLayer | 'merged' | Render ordering: front, behind, or merged | | active | boolean | true | Enable/disable effect | | density | number | 100 | Number of particles | | spread | number | 5 | Spatial distribution | | velocity | number | 3 | Movement speed | | colors | string[] | - | Custom color palette | | particleSize | {min,max} | - | Particle size range | | lifetime | {min,max} | - | Particle lifetime (seconds) | | opacity | number | 1.0 | Overall opacity | | gravity | number | 0 | Gravity force | | blendMode | BlendMode | 'additive' | Blending mode | | behavior | BehaviorType | 'fountain' | Movement behavior |

Outputs

| Output | Type | Description | |--------|------|-------------| | effectReady | {effectId: string} | Emitted when effect is initialized | | particleSpawned | {particleIndex: number} | Emitted when particles spawn |

Examples

Campfire

<n3d-element id="campfire" modelPath="assets/logs.glb">
  <n3d-effect 
    type="fire"
    anchor="center"
    [density]="250"
    [spread]="4"
  />
  <n3d-effect 
    type="smoke"
    anchor="top"
    [density]="150"
    renderLayer="behind"
  />
</n3d-element>

Custom Effect

<n3d-effect 
  type="fire"
  [customAnchor]="{x: 0, y: 5, z: 0}"
  [colors]="['#00ff00', '#00aa00']"
  [particleSize]="{min: 10, max: 30}"
  [lifetime]="{min: 0.5, max: 1.5}"
  behavior="swarm"
/>

License

MIT © elkestudio

Links