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

react-rubber-stamp

v1.0.0

Published

πŸ–ƒ Worn-out rubber stamp component for React. Any text length, no CSS import, no image assets.

Readme

react-rubber-stamp πŸ–ƒ

node version npm version downloads count size license github-ci

Worn-out rubber stamp component for React β€” any text length, no CSS import, no image assets.

Two stamps reading Certified and Approved

Most "stamp" components are a rectangle with a border. This one masks the ink with generated fractal noise β€” blotches where the pad ran dry, scratches carved by the worn edges of the rubber, and flecks of stray ink around the text β€” so it looks pressed rather than drawn. Everything is generated rather than loaded from a bitmap, and it tiles at a size tied to the type, so Beta and Confidential β€” do not distribute outside the organization carry the same grain at any font size.

Install πŸ“¦

npm install react-rubber-stamp

React 17 or newer is a peer dependency.

Usage πŸ”¨

import { Stamp } from "react-rubber-stamp";

<Stamp>Beta</Stamp>;

That is the whole setup. There is no stylesheet to import β€” the component injects its CSS into <head> on first render.

<Stamp color="#1e6f3f" rotate={6}>Approved</Stamp>
<Stamp distress="heavy" speckle={4}>Confidential β€” internal use only</Stamp>
<Stamp distress="none">Draft</Stamp>

Any text length ↔️

The grain is tiled rather than stretched, so a single word and a full sentence wear the same way.

Stamps reading Copy, Important, Not for production, and a full sentence

Distress 🧽

How much ink the pad has lost.

The four distress levels, from none to heavy

<Stamp distress="none">Approved</Stamp>
<Stamp distress="heavy">Approved</Stamp>

Speckle πŸ’¦

Stray flecks of ink around the text, on a five-step scale. They are clipped to the frame, so a fleck never escapes past it. Defaults to one step below the matching distress level.

The five speckle levels, from 0 to 4

<Stamp speckle={0}>Received</Stamp>
<Stamp speckle={4}>Received</Stamp>

Colors and rotation 🎨

Stamps in red, green, blue and purple at different angles

<Stamp color="#1e6f3f" rotate={6}>Approved</Stamp>
<Stamp color="#2b4f9c" rotate={-14}>Received</Stamp>

Scales with font-size πŸ“

Borders, corners, padding and grain are all sized in em, so one font-size scales the whole stamp and keeps its proportions.

The same stamp at three sizes

<Stamp style={{ fontSize: "3rem" }}>Certified</Stamp>

Props πŸ“‹

| Prop | Type | Default | Description | | ----------- | ------------------------------------------ | ------------------ | -------------------------------------------------------------------- | | children | ReactNode | β€” | Text to stamp. Any length. | | color | string | #c62828 | Ink color. Any CSS color. | | distress | "none" \| "light" \| "medium" \| "heavy" | "medium" | How worn out the ink looks. | | speckle | 0 \| 1 \| 2 \| 3 \| 4 | follows distress | Stray flecks of ink around the text. 0 is a clean press. | | rotate | number | -8 | Rotation in degrees. | | seed | string \| number | the text | Varies the noise pattern. Same seed always renders the same pattern. | | opacity | number | 0.85 | Ink coverage, 0–1. | | blendMode | MixBlendMode | multiply | How the ink blends with what is underneath. | | wrap | boolean | false | Let long text break across lines. |

Any other prop (className, id, aria-*, onClick, …) is forwarded to the underlying <span>, and ref is forwarded too.

Theming 🎨

Every visual detail is a custom property, so you can restyle the stamp from your own CSS without touching the props:

.my-stamp {
  --rrs-font-family: "Special Elite", cursive;
  --rrs-border-width: 0.2em;
  --rrs-letter-spacing: 0.2em;
  --rrs-radius: 0.4em 0.1em 0.35em 0.15em;
}
<Stamp className="my-stamp">Beta</Stamp>

Available properties: --rrs-color, --rrs-border-width, --rrs-border-style, --rrs-radius, --rrs-padding, --rrs-font-size, --rrs-font-family, --rrs-font-weight, --rrs-font-stretch, --rrs-letter-spacing, --rrs-tile-size, --rrs-opacity, --rrs-blend-mode, --rrs-rotate.

[!TIP] Sizes are in em on purpose. Overriding one with a pixel value pins it while everything else keeps scaling, which is usually not what you want.

Notes πŸ“’

[!NOTE] The stamp is decorative by default. If it carries meaning your users need, keep the text readable and skip aria-hidden; if it only repeats something already on the page, pass aria-hidden="true".

[!NOTE] seed defaults to the stamped text, so server and client renders agree. Two stamps with the same text look identical on purpose β€” pass an explicit seed when you want them to differ.

Demo πŸ“Ί

npm run demo

Builds the package and opens a page with every prop side by side, each example showing the JSX that produced it.

License

The MIT License @ 2026