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

smonthl-liquid-glass-react

v1.0.0

Published

SmonthlAPI - Beautiful frosted glass UI with jelly physics, magnetic following, and cursor lights (React/TypeScript version)

Readme

SmonthlAPI - React TypeScript Version

React and TypeScript implementation of SmonthlAPI with liquid glass effects.

📦 Installation

Via npm

npm install @smonthl/liquid-glass-react

Via GitHub

git clone https://github.com/Moude-AI/smonthl_api.git
cd smonthl_api/tsx-react-ver
npm install

🚀 Usage in Your Project

import { SmonthlAPI } from '@smonthl/liquid-glass-react';
import { LiquidGlassDemo } from '@smonthl/liquid-glass-react';
import '@smonthl/liquid-glass-react/dist/style.css';

// Initialize API
const api = new SmonthlAPI();
await api.loadConfig();

// Use component
function App() {
  return <LiquidGlassDemo />;
}

Features

  • Full TypeScript type safety
  • React hooks for state management
  • Liquid glass effects with magnifying lens
  • Jelly physics animations
  • Magnetic cursor following
  • Dynamic cursor lights
  • Real-time configuration controls
  • Import/Export JSON configuration

Installation

npm install

Running

Development Mode (Browser)

npm run dev

This will start Vite dev server at http://localhost:5173

Development Mode (Electron)

npm run dev:electron

This will start Electron app (make sure Vite dev server is running first)

Development Mode (Both)

npm run dev:all

This will start both Vite dev server and Electron app concurrently

Build for Production

npm run build

Build Electron App

npm run build:electron

This will create distributable Electron apps in dist-electron/

Project Structure

tsx-react-ver/
├── src/
│   ├── components/
│   │   ├── LiquidGlassDemo.tsx    # Main component
│   │   └── LiquidGlassDemo.css    # Styles
│   ├── types/
│   │   └── SmonthlAPI.ts          # TypeScript types & API
│   ├── App-React.tsx              # App component
│   └── index-react.tsx            # Entry point
├── index.html                      # HTML template
├── vite.config.ts                  # Vite configuration
├── tsconfig.json                   # TypeScript configuration
├── glass-config.json               # SmonthlAPI configuration
└── package.json                    # Dependencies

Components

LiquidGlassDemo

Main component that renders the liquid glass effect with all controls.

Features:

  • Draggable glass container
  • Jelly physics with spring animations
  • Magnetic cursor attraction
  • Dynamic cursor lighting
  • Real-time configuration updates
  • Background image rotation

SmonthlAPI

TypeScript class for configuration management.

Methods:

  • loadConfig(url) - Load configuration from JSON
  • updateConfig(path, value) - Update configuration value
  • getConfig(path) - Get configuration value
  • exportConfig() - Export as JSON string
  • importConfig(json) - Import from JSON string
  • createFromTemplate(name) - Create from template
  • saveToLocalStorage() - Save to localStorage
  • loadFromLocalStorage() - Load from localStorage

Configuration

Edit glass-config.json to customize all aspects:

{
  "glass": {
    "transparency": 6,
    "blur": 60,
    "magnifyingBlur": 30,
    "magnifyingBrightness": 115,
    "lensSize": 40,
    "borderRadius": 32
  },
  "jelly": {
    "elasticity": 0.6,
    "friction": 0.85,
    "magneticRange": 150,
    "magneticStrength": 0.3
  },
  "lighting": {
    "cursorFollowEnabled": true,
    "lightIntensity": 0.8,
    "lightSize": 120
  }
}

TypeScript Types

All types are defined in src/types/SmonthlAPI.ts:

  • GlassConfig - Glass visual properties
  • JellyConfig - Physics parameters
  • LightingConfig - Cursor light settings
  • SmonthlConfig - Complete configuration
  • SmonthlAPI - API class

Development

Hot Module Replacement

Vite provides instant HMR for fast development.

Type Checking

npx tsc --noEmit

Linting

npm run lint

Building

npm run build

Output will be in dist/ directory.

Browser Support

  • Chrome/Edge 76+
  • Safari 9+ (with -webkit- prefix)
  • Firefox 103+
  • Opera 63+

Requires backdrop-filter CSS support for glass effects.