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

@gigo-ui/components

v1.0.1

Published

Deliberately dysfunctional UI components — technically excellent, intentionally terrible UX

Readme

🌀 @gigo-ui/components

High-Performance Components for Low-Performance Experiences.

Svelte SvelteKit TypeScript Tailwind License: MIT

A Svelte 5 component library of intentionally terrible UI patterns. Every component is production-quality code implementing the worst UX ideas imaginable.

Built with modern runes ($state, $derived, $effect, $bindable), TypeScript, and Tailwind CSS 4.


Install

pnpm add @gigo-ui/components

Styles (Required)

Import the package stylesheet once near your app root:

<script lang="ts">
  import '@gigo-ui/components/globals.css';
</script>

The stylesheet includes Tailwind v4 directives and @source scanning for this package, so utility classes used inside components are generated in consumer builds.

To customize theme tokens, override variables after importing the package CSS:

/* app.css */
@import "@gigo-ui/components/globals.css";

:root {
  --primary: #2563eb;
  --background: #ffffff;
  --foreground: #111827;
}

Quick Start

<script lang="ts">
  import '@gigo-ui/components/globals.css';
  import { ShatterPane, CatchSubmit } from '@gigo-ui/components';

  let broken = $state(false);
</script>

<ShatterPane bind:isShattered={broken}>
  <div class="card">
    <h2>Fragile Content</h2>
    <CatchSubmit label="Submit" />
  </div>
</ShatterPane>

<button onclick={() => broken = true}>Break it</button>

Components

🌪 Chaos (Destruction Overlays)

Wrap any component. One function call and it's physically destroyed.

| Component | Effect | Engine | | :---------------- | :------------------------------- | :------------------------------------- | | GigoCompactor | Voxel crush implosion | Three.js InstancedMesh + Rapier3D WASM | | ShatterPane | Voronoi glass fracture | Canvas2D + physics sim | | PixelDissolve | Per-pixel wave contagion | Canvas2D particle system | | BlackHoleSink | Gravitational singularity | Canvas2D warp + accretion glow | | ChaosButton | Button with random chaos effects | CSS transforms | | ChaosForm | Form that fights back | DOM manipulation |

😈 BadUI (Hostile Interactions)

Technically functional. Emotionally devastating.

| Component | What it does | | :------------------- | :---------------------------------------- | | RotaryDial | Rotary phone dial for number input | | GravityInput | Characters fall with gravity as you type | | PasswordPeekhole | Tiny draggable circle to view password | | ProgressDoom | Progress bar that regresses randomly | | CatchSubmit | Submit button that runs from your cursor | | SliderPhone | Single slider for entering phone numbers | | GhostCard | Cards that vanish and reappear corrupted | | DropdownCalc | Dropdown menus for basic arithmetic | | VolumeSlider | Deliberately confusing volume control | | ColorPickerWrong | Color picker that picks the wrong color | | TermsSidescroll | Terms of service in a horizontal scroller |

🛠 Standard (The Bait)

Normal, usable components to lull users into a false sense of security.

| Component | Purpose | | :------------- | :-------------- | | Button | Standard button | | Card | Content card | | Carousel | Image carousel | | Form | Form container | | Input | Text input | | Modal | Dialog overlay | | Navigation | Nav component |


Breaker Overlays

The destruction overlays are the flagship feature. They snapshot any wrapped content, then destroy it with real physics:

<script lang="ts">
  import { GigoCompactor } from '@gigo-ui/components';

  let compactor: GigoCompactor;
</script>

<GigoCompactor bind:this={compactor} cols={20} rows={20} intensity={8}>
  <div class="card">This will be voxelized</div>
</GigoCompactor>

<button onclick={() => compactor.crush()}>Crush</button>
<button onclick={() => compactor.restore()}>Restore</button>

Each overlay lazy-loads its engine only when triggered. Three.js, Rapier WASM, and html-to-image are all dynamically imported — zero cost until destruction begins.

| Overlay | Method | Prop | Size | | :------------ | :------------------------- | :------------ | :-------------------- | | GigoCompactor | crush() / restore() | isGarbage | ~180KB (Three+Rapier) | | ShatterPane | shatter() / restore() | isShattered | ~2KB | | PixelDissolve | dissolve() / restore() | isDead | ~2KB | | BlackHoleSink | consume() / restore() | isConsumed | ~2KB |


Requirements

  • Svelte 5.0+
  • SvelteKit 2.0+
  • Tailwind CSS 4.0+
  • TypeScript 5.0+

License

MIT