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

@mirayavandiepen/ram

v0.1.0

Published

Swedish for frame. A tiny React component for animated design-tool selection frames around text.

Downloads

42

Readme

ram

A tiny React component for animated design-tool selection frames around text.

Wrap a word and it gets a hairline outline, four corner handles and a live width × height label, with a short letter-spacing pass that never moves the text around it.

Swedish for "frame" — pronounced /rɑːm/, like rahm, rhyming with "calm".

pnpm add @mirayavandiepen/ram
import { Ram } from "@mirayavandiepen/ram";

export default function Example() {
  return (
    <h1>
      built to <Ram>delight</Ram>
    </h1>
  );
}

Zero dependencies · inherits the parent's typography · respects prefers-reduced-motion.

Props

Content

| Prop | Type | Default | Description | | ---------- | ----------- | -------- | --------------------------------------------------------------------------- | | children | ReactNode | required | The text to frame. Plain strings track most accurately, but any node works. |

Timing

| Prop | Type | Default | Description | | -------------- | ------------- | ------- | -------------------------------------------------------- | | delay | number (ms) | 0 | Wait before the frame appears, on every trigger. | | duration | number (ms) | 1400 | Length of the tracking pass. | | holdDuration | number (ms) | 1200 | How long the frame holds its measurement before leaving. |

Appearance

| Prop | Type | Default | Description | | ------------------ | -------------------------------------- | ----------------------- | ----------------------------------------------------------- | | label | boolean \| (size) => string | true | Show the width × height label, or format it yourself. | | labelPosition | "top" \| "bottom" \| "top-left" \| … | "top" | Where the label sits relative to the outline. | | labelColor | string | light-dark(#fff,#111) | Colour of the text inside the label. | | labelBackground | string | currentColor | Background of the label chip. Follows the frame colour. | | handles | boolean | true | Draw the four corner handles. | | handleSize | number (px) | 6 | Width and height of each handle. | | handleFill | "hollow" \| "solid" | "hollow" | hollow rings each handle the way a design tool does. | | handleBackground | string | light-dark(#fff,#111) | What a hollow handle is filled with. | | lineWidth | number (px) | 1 | Thickness of the outline. | | handleLineWidth | number (px) | 1 | Thickness of the handle rings, independent of lineWidth. | | color | string | "#0d99ff" | Outline, handles and label. Any CSS colour. |

Behaviour

| Prop | Type | Default | Description | | ------------ | ------------------------------------------- | ------------ | ------------------------------------------------------------ | | animation | "tracking" \| "static" | "tracking" | tracking breathes the letter-spacing; static only fades. | | trigger | "mount" \| "hover" \| "click" \| "manual" | "mount" | What starts the sequence. | | active | boolean | — | Controlled visibility. Implies trigger="manual". | | persistent | boolean | false | Keep the frame up instead of leaving after the hold. | | onStart | () => void | — | The frame has started to appear. | | onComplete | () => void | — | The frame has left, or, when persistent, settled. |

CSS variables

--ram-color             /* outline, handles and label; #0d99ff, selection blue */
--ram-line-width        /* 1px, the outline */
--ram-outline-opacity   /* 0.6 */
--ram-handle-size       /* 6px */
--ram-handle-fill       /* centre of a hollow handle; white on light, near-black on dark */
--ram-handle-line-width /* 1px, the handle rings; set apart from the outline */
--ram-inset             /* 4px, how far the outline sits outside the text */
--ram-label-background  /* defaults to the frame colour */
--ram-label-color       /* white on light, near-black on dark */
--ram-label-font-size   /* 11px */
--ram-label-offset      /* 6px */

Documentation

Source, issues and live examples: github.com/mirayavandiepen/ram

MIT © Miraya van Diepen