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

glass-skin

v0.1.0

Published

Skinnable background surface components for React — glass, frosted glass, reflective sheen, aurora, brushed metal, carbon fiber, paper and holographic textures.

Readme

glass-skin

React 用の「スキン付き背景サーフェス」コンポーネント集。 ガラス・すりガラス・反射・オーロラ・金属・カーボン・紙・ホログラムの 8 種類のスキンを、依存ゼロ(React のみ)で提供します。

特徴

  • 8 種類のスキン — glassmorphism 系 3 種 + テクスチャ系 5 種
  • 依存ゼロ — CSS-in-JS ライブラリ不要。スタイルは初回マウント時に <style> タグを 1 度だけ注入
  • SSR セーフuseInsertionEffect ベースで Next.js 等でも安全
  • ESM / CJS / TypeScript 型定義 同梱
  • prefers-reduced-motion に対応(アニメーションを自動停止)

インストール

npm install glass-skin

使い方

import { GlassSkin, FrostSkin, ReflectSkin, AuroraSkin } from "glass-skin";

function Example() {
  return (
    <AuroraSkin style={{ padding: 32 }}>
      <GlassSkin style={{ padding: 24 }} blur={12} radius={20}>
        <h2>ガラスカード</h2>
        <p>背景が透けて見えます</p>
      </GlassSkin>
    </AuroraSkin>
  );
}

variant を切り替えられる汎用コンポーネントもあります。

import { Skin } from "glass-skin";

<Skin variant="holo" style={{ padding: 24 }}>ホログラム</Skin>

コンポーネント一覧

| コンポーネント | 見た目 | 主な props | | --- | --- | --- | | GlassSkin | 透明なガラス板 | tint blur saturation | | FrostSkin | 半透明のすりガラス | tint blur grain | | ReflectSkin | 光の帯が走る反射ガラス | sheenColor speed trigger("loop"/"hover") | | AuroraSkin | ゆらめくオーロラ | colors(最大3色) background speed | | MetalSkin | ブラシメタル | angle(ヘアライン方向) | | CarbonSkin | カーボンファイバー | scale(織り目サイズ) | | PaperSkin | 紙・和紙の質感 | tint grain | | HoloSkin | 虹色ホログラム | speed |

全コンポーネント共通の props:

| prop | 説明 | | --- | --- | | as | レンダリングする要素(既定: div) | | radius | 角丸。数値は px(既定: 16px) | | その他 | className / style / イベントハンドラ等の HTML 属性をそのまま透過 |

メモ: ガラス系スキン(Glass / Frost / Reflect)は backdrop-filter を使うため、 背後にカラフルなコンテンツがあるほど効果が分かりやすくなります。

カタログ(Storybook)

各スキンを controls で調整しながら確認でき、「CSSをコピー」ボタンで そのスキンを React なしでも使える素の CSS をクリップボードにコピーできます。

npm install
npm run storybook   # http://localhost:6006

シンプルな Vite デモも残しています。

npm run dev   # http://localhost:5199

CSS だけ使いたい場合(getSkinCSS)

コンポーネントを使わず、生成済みの CSS 文字列だけ取り出せます。

import { getSkinCSS, SKIN_CLASS_NAMES } from "glass-skin";

getSkinCSS("frost");        // frost スキンの自己完結 CSS(コメント付き)
SKIN_CLASS_NAMES["frost"];  // "gsk gsk-frost" — 要素に付ける class 名

ビルドと npm への公開

npm run build       # dist/ に ESM + CJS + 型定義を出力
npm login
npm publish --access public

公開前のチェックリスト:

  1. package.jsonname が npm 上で空いているか確認(npm view <name>)。取られていた場合はスコープ付き(例: @yourname/glass-skin)に変更
  2. version を更新(semver に従う)
  3. npm pack --dry-run で同梱ファイル(dist のみ)を確認

ライセンス

MIT