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

page-patterns

v1.0.0

Published

Pattern backgrounds for website sections, designed by your AI agent: the Page Patterns MCP server and functions.

Readme

Page Patterns MCP server

Pattern backgrounds for website sections, designed by your AI agent. Page Patterns makes geometric SVG backgrounds (low-poly triangles, hexagons, halftone dots, isometric cubes, fine line and contour textures and more) that stay quiet behind your headline. This package lets agents such as Claude Code use it: the agent reads your page, explores variants, shows you options in your real page and adds the one you pick.

Everything runs on your computer, and the package draws the same SVG as the editor at pagepatterns.com.

Setup

Needs Node 22 or later. You also need a free key.

  1. Sign in at pagepatterns.com/account with GitHub or Google and make a key.
  2. Add the server to your AI tool.

Claude Code, with the plugin (recommended). The plugin adds the server and a skill that teaches Claude the workflow, and asks for your key.

claude plugin marketplace add OldMillennial/page-patterns-claude
claude plugin install page-patterns@page-patterns

Claude Code, server only:

claude mcp add --scope user --env PAGE_PATTERNS_KEY=<your key> --transport stdio page-patterns -- npx -y page-patterns@1 mcp

Cursor, Claude Desktop and other MCP apps: add this to the app's MCP settings.

{
  "mcpServers": {
    "page-patterns": {
      "command": "npx",
      "args": ["-y", "page-patterns@1", "mcp"],
      "env": { "PAGE_PATTERNS_KEY": "<your key>" }
    }
  }
}

Then ask, for example: "Make the hero background on my home page more interesting."

Tools

| Tool | What it does | |---|---| | guide | The full workflow and design rules (for agents without the skill) | | describe_options | Presets, shapes and what each suits, strength levels, emphasis options, advanced settings | | explore | Up to 16 variants for one site, as one contact sheet image plus a code per variant | | preview | 1 to 4 codes at desktop and phone size | | export | The final SVG for a code: inline markup with CSS and variables, a file, a CSS background, React or Tailwind; a download URL, a share link, and insertInto or savePath to write it |

A code holds a variant's settings, so the server stores nothing. export with insertInto: { file, slot } replaces <svg data-page-patterns="slot"> in an HTML or PHP file and leaves every other byte alone. Pages set up with the older data-shape-studio attribute still work.

The downloadUrl that export returns carries a per-session key (k), so other web pages cannot make the server render; use the URL as given.

From code

import { explore, exportDesign } from 'page-patterns';

const { sheet, variants } = await explore({
  site: { background: '#1d4ed8', width: 1440, height: 640, contentBox: { x: 120, y: 160, w: 640, h: 320 } },
  variants: [{ preset: 'low-poly', colours: ['#ffffff'], strength: 'subtle', clearBehindContent: true }]
});
const { svg, css } = await exportDesign({ code: variants[0].code, parentSelector: '.hero' });

sheet and the images from preview are PNG Buffers. The functions need the key in PAGE_PATTERNS_KEY, like the server.

Your key and privacy

The package checks your key with our account service, which runs on Supabase, about once a day and sends only the key. Your designs and your site's files never leave your computer. If the check can't reach the server, the tools keep working. See the privacy notice.

If a tool says the key is missing, not recognised or turned off, make a new one at pagepatterns.com/account. With the plugin, update it with /plugin, page-patterns, Configure options.

Settings

| Variable | Default | What it does | |---|---|---| | PAGE_PATTERNS_KEY | none | Your free key | | PAGE_PATTERNS_APP_URL | https://pagepatterns.com/ | Where share links open | | PAGE_PATTERNS_PORT | 4517 | Port on 127.0.0.1 for SVG downloads; a free port is used if another session holds it |

Licence

PolyForm Shield 1.0.0: free for any use, including commercial work, except building a product that competes with Page Patterns. The patterns you make are yours, as the terms say.