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

fancy-acrylic

v1.0.0

Published

Native addon for applying acrylic effects to Windows windows

Readme

fancy-acrylic

A Node.js native addon for applying acrylic and blur effects to Windows windows using window handles.

Features

  • Apply acrylic or blur effects to any window using its handle (HWND)
  • Customize corner styles (none, round, roundsmall)
  • Set opacity and tint colors
  • Set border colors on Windows 11+
  • Cross-platform compatibility (Windows only for effects)

Installation

npm install
npm run build

Requirements

  • Windows 10 or later
  • Node.js with native module support
  • Visual Studio Build Tools (for compilation)

Usage

const { applyEffect, isSupported, getWindowsBuildNumber } = require('./index.js');

// Check if acrylic effects are supported
console.log('Supported:', isSupported());

// Get Windows build number
console.log('Build:', getWindowsBuildNumber());

// Apply acrylic effect
const result = applyEffect({
    hwnd: 0x12345678, // Window handle as number
    type: 'acrylic',  // 'blur' or 'acrylic'
    corner: 'round',  // 'none', 'round', or 'roundsmall'
    opacity: 200,     // 0-255
    tintColor: 'FF0000',    // Optional: hex color (RRGGBB)
    borderColor: '00FF00'   // Optional: hex color (RRGGBB)
});

API

applyEffect(options)

Applies acrylic or blur effect to a window.

Parameters:

  • options (Object): Configuration options
    • hwnd (number): Window handle (HWND as number) - required
    • type (string): Effect type - 'blur' or 'acrylic' (default: 'acrylic')
    • corner (string): Corner style - 'none', 'round', or 'roundsmall' (default: 'none')
    • opacity (number): Opacity value 0-255 (default: 204)
    • tintColor (string): Tint color in hex format (RRGGBB) - optional
    • borderColor (string): Border color in hex format (RRGGBB) - optional

Returns: boolean - true if successful

Example:

applyEffect({
    hwnd: windowHandle,
    type: 'acrylic',
    corner: 'round',
    opacity: 180,
    tintColor: '0078D4',
    borderColor: 'FF6B6B'
});

isSupported()

Checks if acrylic effects are supported on the current system.

Returns: boolean - true if supported

getWindowsBuildNumber()

Gets the current Windows build number.

Returns: number - Windows build number, or 0 if not Windows

Getting Window Handles

To use this addon, you need to obtain window handles (HWND). You can:

  1. Use other native modules that provide window enumeration
  2. Use the Windows API from other languages
  3. Use tools like FindWindow or EnumWindows from the Windows API

Notes

  • tintColor and borderColor are optional: If not provided, no color will be applied
  • Border is always visible: The addon doesn't provide functionality to hide borders
  • Windows 11+ for border colors: Border color setting only works on Windows 11 and later
  • Windows 10+ required: Acrylic effects require Windows 10 or later

Error Handling

The addon throws JavaScript errors for:

  • Invalid parameters
  • Invalid window handles
  • Unsupported operations
  • System API failures

Building

# Install dependencies
npm install

# Build the native addon
npm run build

# Or use node-gyp directly
npx node-gyp configure
npx node-gyp build

License

MIT License