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

@harbzz/atmospherejs

v1.0.0

Published

Cinematic texture web components — film grain, vignette, light leaks, scanlines, and paper textures. Zero dependencies.

Downloads

106

Readme

Atmosphère

Cinematic texture web components. Zero dependencies. Drop-in ready.

Atmosphère Size License

Add film grain, vignette, light leaks, scanlines, and paper textures to any HTML element with simple web components. No frameworks. No build tools. One script tag.


Install

npm install atmospherejs

Or via CDN:

<!-- All components -->
<script src="https://unpkg.com/atmospherejs/src/atmospherejs.js"></script>

<!-- Individual components -->
<script src="https://unpkg.com/atmospherejs/src/atm-grain.js"></script>

Components

<atm-grain> — Animated Film Grain

<atm-grain intensity="0.4" speed="medium" color="warm" animated="true">
  <img src="photo.jpg" />
</atm-grain>

| Prop | Type | Default | Options | |------|------|---------|---------| | intensity | number | 0.3 | 0 to 1 | | speed | string | "medium" | "slow" / "medium" / "fast" | | color | string | "neutral" | "warm" / "cool" / "neutral" | | animated | boolean | true | true / false | | blend | string | "overlay" | Any CSS blend mode |

<atm-vignette> — Edge Vignette

<atm-vignette strength="0.6" color="#000000" shape="oval">
  <img src="photo.jpg" />
</atm-vignette>

| Prop | Type | Default | Options | |------|------|---------|---------| | strength | number | 0.5 | 0 to 1 | | color | string | "#000000" | Any hex color | | shape | string | "oval" | "oval" / "square" |

<atm-light-leak> — Film Light Leaks

<atm-light-leak position="top-right" color="warm" opacity="0.4" animated="true">
  <img src="photo.jpg" />
</atm-light-leak>

| Prop | Type | Default | Options | |------|------|---------|---------| | position | string | "top-right" | "top-left" / "top-right" / "bottom-left" / "bottom-right" | | color | string | "warm" | "warm" / "cool" / "golden" / "pink" | | opacity | number | 0.4 | 0 to 1 | | animated | boolean | false | true / false |

<atm-scanlines> — CRT Scanlines

<atm-scanlines opacity="0.12" spacing="3" color="#000000">
  <div>Any content</div>
</atm-scanlines>

| Prop | Type | Default | Options | |------|------|---------|---------| | opacity | number | 0.1 | 0 to 1 | | spacing | number | 3 | 2 to 8 (px) | | color | string | "#000000" | Any hex color |

<atm-paper> — Paper Texture

<atm-paper texture="rough" opacity="0.08" tint="#f5f0e8">
  <div>Content here</div>
</atm-paper>

| Prop | Type | Default | Options | |------|------|---------|---------| | texture | string | "fine" | "fine" / "medium" / "rough" | | opacity | number | 0.08 | 0 to 0.3 | | tint | string | "none" | Any hex color |


Quick Start

<!DOCTYPE html>
<html>
<head>
  <script src="https://unpkg.com/atmospherejs/src/atmospherejs.js"></script>
</head>
<body>
  <atm-grain intensity="0.3" color="warm" animated="true">
    <atm-vignette strength="0.5">
      <img src="your-photo.jpg" width="600" />
    </atm-vignette>
  </atm-grain>
</body>
</html>

Effects can be nested to combine them on a single element.


How It Works

Each component uses the Web Components API with Shadow DOM encapsulation:

  • Grain: Canvas API with Perlin noise generation
  • Vignette: CSS radial gradient overlay
  • Light Leak: Multi-layer radial gradients with screen blend mode
  • Scanlines: CSS repeating-linear-gradient
  • Paper: SVG feTurbulence filter

All overlays use pointer-events: none and aria-hidden="true" — they never block interaction or confuse screen readers.


Browser Support

Works in all modern browsers (Chrome, Firefox, Safari, Edge). Requires Web Components / Custom Elements v1 support.


License

MIT © Yomi