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

apple-intelligence-glow-react

v1.0.4

Published

Apple Intelligence style animated glow border as a reusable React component.

Readme

apple-intelligence-glow-react

Apple Intelligence–inspired animated glow border as a reusable React component.

Glow Demo

This package exposes:

  • AppleIntelligenceGlow – the core, reusable glow container. It only renders the animated border and lets you provide any content inside.
  • AppleIntelligenceLockScreen – example lock screen UI built on top of the same glow logic, intended as a demo/showcase.

Installation

npm install apple-intelligence-glow-react

or with yarn / pnpm:

yarn add apple-intelligence-glow-react
# or
pnpm add apple-intelligence-glow-react

Quick Start (Glow Only)

The core idea is: wrap your own UI with AppleIntelligenceGlow and let the component handle the animated border.

import React from "react";
import { AppleIntelligenceGlow } from "apple-intelligence-glow-react";

export default function Demo() {
  return (
    <div
      style={{
        minHeight: "100vh",
        background: "#fff",
        display: "flex",
        justifyContent: "center",
        alignItems: "center",
      }}
    >
      <AppleIntelligenceGlow
        radius={50}
        style={{
          width: 360,
          height: 720,
          background: "#000",
          display: "flex",
          alignItems: "center",
          justifyContent: "center",
          color: "#fff",
          padding: 40,
        }}
      >
        {/* Your own UI goes here: lock screen, card, panel, etc. */}
        <div style={{ textAlign: "center" }}>
          <div style={{ fontSize: "3rem", fontWeight: 600, marginBottom: 8 }}>
            My Custom
          </div>
          <div style={{ fontSize: "1.2rem", opacity: 0.8 }}>
            Lock Screen or Card
          </div>
        </div>
      </AppleIntelligenceGlow>
    </div>
  );
}

The component:

  • Injects the required CSS once at runtime.
  • Uses multiple blurred conic gradients to create the Apple Intelligence–style animated border.
  • Keeps your content fully under your control.

Example Lock Screen Component

If you want a ready‑made demo that looks like an Apple‑style lock screen, you can also import AppleIntelligenceLockScreen:

import React from "react";
import {
  AppleIntelligenceGlow,
  AppleIntelligenceLockScreen,
} from "apple-intelligence-glow-react";

export default function Demo() {
  return (
    <div
      style={{
        minHeight: "100vh",
        background: "#fff",
        display: "flex",
        flexDirection: "column",
        justifyContent: "center",
        alignItems: "center",
        gap: 48,
        padding: 40,
      }}
    >
      {/* 1. Glow + custom content */}
      <AppleIntelligenceGlow
        radius={50}
        style={{
          width: 360,
          height: 720,
          background: "#000",
          display: "flex",
          alignItems: "center",
          justifyContent: "center",
          color: "#fff",
        }}
      >
        <div>My custom lock screen or card</div>
      </AppleIntelligenceGlow>

      {/* 2. Full lock screen demo */}
      <AppleIntelligenceLockScreen width={360} height={720} showHelperText />
    </div>
  );
}

AppleIntelligenceLockScreen is built using the same glow logic and is mainly intended for demos, docs, and inspiration.


API Reference

AppleIntelligenceGlow

Core container that renders the animated glow border around its children.

Props

  • radius?: number | string
    Corner radius of the glow and clipping mask.

    • Default: 50 (pixels)
    • You can also pass CSS values like "3rem" or "32px".
  • className?: string
    Custom class name applied to the outer glow container.

  • style?: React.CSSProperties
    Inline style applied to the outer glow container.
    Commonly used to define:

    • Width / height
    • Background color
    • Layout (flexbox, padding, etc.)
  • children: React.ReactNode
    Any React content you want to render inside the glow.


AppleIntelligenceLockScreen

Example lock screen UI that uses the same glow effect, with:

  • Dynamic Island‑style notch
  • Live digital clock
  • Date label
  • Bottom home indicator bar

Props

  • width?: number | string
    Width of the phone frame. Default: 360 (pixels).

  • height?: number | string
    Height of the phone frame. Default: 720 (pixels).

  • showHelperText?: boolean
    Whether to show the helper caption under the phone. Default: true.

  • className?: string
    Custom class name applied to the outermost container.

  • style?: React.CSSProperties
    Inline style merged onto the outermost container (in addition to internal CSS variables for width/height).


Publishing / Local Development

This repository is already configured to be published as an npm package:

  • main and module both point to src/index.js.
  • Only src and README.md are included in the published tarball via the "files" field.

If you want to publish under your own npm account:

  1. Login to npm

    npm login
  2. Adjust the package name (optional)

    Update the "name" field in package.json if you want a different public name.

  3. Bump the version

    npm version patch   # or minor / major
  4. Publish

    npm publish --access public

Once published, consumers can install it with:

npm install apple-intelligence-glow-react

and use it as shown in the examples above.


License

MIT