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

wavy-bavy

v0.1.3

Published

Seamless, automatic wave transitions between page sections. Context-aware, responsive, and customizable.

Readme

🌊 wavy-bavy

Seamless, automatic wave transitions between page sections. Context-aware, responsive, and customizable.

CI npm version License: MIT

Features

  • 🎯 Automatic — Context detects adjacent sections, auto-generates waves
  • 🎨 Color Matching — Waves auto-match section background colors
  • 📐 6+ Patterns — Smooth, organic, sharp, layered, mountain, custom
  • 🖼️ Image Clipping — Background images follow the wave contour
  • Effects — Shadows, glow, stroke, blur, texture, inner shadows
  • 🎬 Animations — Flow, pulse, morph, ripple, bounce, drift, breathe + custom
  • 📱 Responsive — Different heights per breakpoint
  • Accessible — Respects prefers-reduced-motion
  • 🪶 Lightweight — Zero runtime dependencies, tree-shakable

Installation

npm install wavy-bavy

Quick Start

import { WaveProvider, WaveSection } from 'wavy-bavy'

export default function Page() {
  return (
    <WaveProvider>
      <WaveSection background="#ffffff">
        <h1>Hero Section</h1>
      </WaveSection>

      <WaveSection background="#F7F7F5">
        <h2>Features</h2>
        {/* Wave auto-created: white → light gray */}
      </WaveSection>

      <WaveSection background="#191919">
        <h2 style={{ color: '#fff' }}>Dark Section</h2>
        {/* Wave auto-created: light gray → dark */}
      </WaveSection>
    </WaveProvider>
  )
}

That's it! Waves are automatically generated between sections.

Patterns

<WaveSection pattern="smooth" />    {/* Classic sine curve */}
<WaveSection pattern="organic" />   {/* Irregular, natural shape */}
<WaveSection pattern="sharp" />     {/* Geometric angles */}
<WaveSection pattern="mountain" />  {/* Triangle peaks */}
<WaveSection pattern="layered" />   {/* Multiple overlapping waves */}

Presets

<WaveSection preset="hero" />       {/* Tall, dramatic wave */}
<WaveSection preset="footer" />     {/* Subtle footer transition */}
<WaveSection preset="dramatic" />   {/* Large organic shape */}
<WaveSection preset="subtle" />     {/* Minimal wave */}
<WaveSection preset="angular" />    {/* Sharp geometric */}
<WaveSection preset="peaks" />      {/* Mountain range */}

Animations

<WaveSection animate="flow" />           {/* Gentle horizontal drift */}
<WaveSection animate="pulse" />          {/* Vertical grow/shrink */}
<WaveSection animate="morph" />          {/* Shape morphing */}
<WaveSection animate="ripple" />         {/* Wave ripple */}
<WaveSection animate="bounce" />         {/* Subtle bounce */}
<WaveSection animate="drift" />          {/* Horizontal glide */}
<WaveSection animate="breathe" />        {/* Rhythmic amplitude */}
<WaveSection animate="undulate" />       {/* Full 2D wave motion */}

{/* Control speed */}
<WaveSection animate="flow" animationDuration={6} />

Customization

<WaveSection
  background="#1a1a2e"
  pattern="organic"
  height={200}
  amplitude={0.7}
  frequency={2}
  seed={42}                        {/* Reproducible random shape */}
  shadow={{ blur: 15, color: 'rgba(0,0,0,0.2)' }}
  layers={3}
  layerOpacity={0.25}
>
  <h2>Fully Customized</h2>
</WaveSection>

Provider Configuration

<WaveProvider
  defaults={{
    height: 150,
    pattern: 'organic',
    amplitude: 0.6,
    respectReducedMotion: true,
  }}
  debug={process.env.NODE_ENV === 'development'}
>
  {/* All WaveSections inherit these defaults */}
</WaveProvider>

API Reference

<WaveSection> Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | background | string | — | CSS color, gradient, or url() | | backgroundImage | string | — | Image URL shorthand | | clipImage | boolean | false | Clip background to wave shape | | preset | string | — | Named preset configuration | | wavePosition | 'top' \| 'bottom' \| 'both' \| 'none' | 'both' | Where to render waves | | height | number \| ResponsiveValue | 120 | Wave height in px | | pattern | PatternName | 'smooth' | Wave pattern shape | | amplitude | number | 0.5 | Wave amplitude (0–1) | | frequency | number | 1 | Number of wave peaks | | phase | number | 0 | Horizontal offset (0–1) | | mirror | boolean | false | Mirror the wave pattern | | seed | number | — | Seed for reproducible random patterns | | shadow | boolean \| ShadowConfig | false | Drop shadow effect | | glow | boolean \| GlowConfig | false | Glow effect | | stroke | boolean \| StrokeConfig | false | Stroke/outline on wave | | blur | boolean \| BlurConfig | false | Frosted glass effect | | texture | boolean \| TextureConfig | false | Texture overlay | | innerShadow | boolean \| InnerShadowConfig | false | Inner shadow effect | | animate | AnimationName \| false | 'none' | Animation type | | animationDuration | number | 4 | Animation duration in seconds | | layers | number | 1 | Stacked wave layers | | layerOpacity | number | 0.3 | Opacity for extra layers | | as | ElementType | 'section' | HTML element type | | className | string | — | CSS classes | | overlap | number | 0 | Overlap with adjacent section (px) |

<WaveProvider> Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | defaults | Partial<WaveDefaults> | — | Global defaults for all sections | | debug | boolean | false | Show debug overlay |

License

MIT © Modulo-click