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

aporia

v0.3.1

Published

A small React UI kit for your little tools — a polished, draggable Panel with sliders, toggles, colors, and gradient controls.

Readme

aporia

aporia is a small React UI kit for your little tools.

Built for designers and visual builders who make lots of tiny branding tools, config panels, AI apps, and experiments, then need a fast way to tune values and make things feel right.

Install

npm i aporia

Import styles once in your app entry:

import 'aporia/styles.css'

Prompt an LLM

You can use Aporia with any LLM by just asking naturally, like:

Install the aporia npm package and add it to this configurator - hook up all sliders, toggles, colors, and other adjustable values to the right state and actions so everything actually controls the app.

Quick start

import { useState } from 'react'
import Panel, { Category, SliderRow, ColorRow, ToggleRow } from 'aporia'
import 'aporia/styles.css'

export default function App() {
  const [size, setSize] = useState(40)
  const [color, setColor] = useState('#E8470C')
  const [enabled, setEnabled] = useState(true)

  return (
    <Panel>
      <Category title="Basics">
        <SliderRow label="Size" value={size} min={0} max={100} step={1} onChange={setSize} />
        <ColorRow label="Color" value={color} onChange={setColor} />
        <ToggleRow label="Enabled" checked={enabled} onChange={setEnabled} />
      </Category>
    </Panel>
  )
}

What you get

  • Panel + Category layout primitives
  • SliderRow, NumberRow, TextRow, ColorRow, ToggleRow, SelectRow, GradientRow, ButtonRow
  • GradientPicker + gradient utils (parseGradient, stopsToGradient)
  • usePresets + PresetRow — save, load, and delete named value presets
  • DriverProvider + useDriverClock — drive SliderRow / NumberRow values from time-based generators
  • Keyboard accessible controls and polished defaults

Presets

Save and restore sets of values. You stay in control of your state — usePresets just snapshots the values you give it and applies them back. Pass a storageKey to persist to localStorage.

import Panel, { Category, SliderRow, PresetRow, usePresets } from 'aporia'

function App() {
  const [size, setSize] = useState(40)
  const [color, setColor] = useState('#E8470C')

  const presets = usePresets({
    values: { size, color },
    onApply: (v) => { setSize(v.size); setColor(v.color) },
    storageKey: 'my-tool',
  })

  return (
    <Panel>
      <Category title="Presets">
        <PresetRow presets={presets} />
      </Category>
      <Category title="Controls">
        <SliderRow label="Size" value={size} min={0} max={100} onChange={setSize} />
        <ColorRow label="Color" value={color} onChange={setColor} />
      </Category>
    </Panel>
  )
}

Driven values

Give a SliderRow or NumberRow a stable id inside a DriverProvider, and a small dot appears on the row that opens a generator editor — sine, triangle, ramp, pulse, or noise — so a value can animate itself over time. Grabbing the control hands the live value back and turns the driver off.

Aporia never runs its own animation loop. You feed it time from your existing render loop with useDriverClock().tick(t) and read the live values back with getValue(id) — one clock, no drift.

import Panel, { Category, SliderRow, DriverProvider, useDriverClock } from 'aporia'

function Clock() {
  const { tick, getValue } = useDriverClock()
  useEffect(() => {
    let raf = 0
    const start = performance.now()
    const loop = (now: number) => {
      tick((now - start) / 1000)        // feed absolute seconds
      const spread = getValue('spread') // live value, or undefined when not driven
      // ...apply `spread` to your scene
      raf = requestAnimationFrame(loop)
    }
    raf = requestAnimationFrame(loop)
    return () => cancelAnimationFrame(raf)
  }, [tick, getValue])
  return null
}

function App() {
  const [spread, setSpread] = useState(0.5)
  return (
    <DriverProvider>
      <Clock />
      <Panel>
        <Category title="Motion">
          <SliderRow id="spread" label="Spread" value={spread} min={0} max={1} step={0.01} onChange={setSpread} />
        </Category>
      </Panel>
    </DriverProvider>
  )
}

The id must be stable for the row's lifetime — it's the key the clock reads values back by. You can also seed a driver in code with defaultDriver={{ kind: 'sin', rate: 0.25, amplitude: 0.35, center: 0.5 }}.

Notes

  • The UI theme is dark by default.
  • Peer deps: react, react-dom, motion, @base-ui/react.

License

MIT