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

@panomapp/bg-maker

v0.1.0

Published

Panom background generation engine, procedural scene helpers, registry presets, and Vue adapter utilities.

Readme

@panomapp/bg-maker

@panomapp/bg-maker is a lightweight background engine for product UIs, profile surfaces, story cards, and canvas exports. It includes a framework-agnostic core, procedural and tileable background primitives, and a curated Panom preset registry.

The package is designed for cases where the same background definition needs to work across:

  • CSS-based previews
  • <canvas> rendering
  • color sampling
  • serialized preset parameters

Highlights

  • Framework-agnostic core types and runtime contracts
  • Procedural scene helpers for fullscreen backgrounds
  • Tileable background helpers for repeatable pattern systems
  • Built-in Panom preset registry
  • Optional Vue adapter export
  • ESM package with typed subpath exports

Installation

npm install @panomapp/bg-maker

Package Exports

  • @panomapp/bg-maker Shared types and top-level exports
  • @panomapp/bg-maker/procedural Procedural scene definitions, normalization, serialization, and renderer helpers
  • @panomapp/bg-maker/tileable Tileable background factory utilities
  • @panomapp/bg-maker/panom Panom preset registry and convenience helpers
  • @panomapp/bg-maker/vue Vue-oriented style adapter

Usage

Panom presets

import {
  PANOM_BACKGROUND_PRESETS,
  getPanomBackgroundPreviewStyle,
  normalizePanomBackgroundParams,
  drawPanomBackground
} from '@panomapp/bg-maker/panom'

const preset = 'procedural-orbit'

const params = normalizePanomBackgroundParams(preset, {
  scalePercent: 120
})

const style = getPanomBackgroundPreviewStyle(preset, {
  ...params,
  viewportWidth: 1440,
  viewportHeight: 900
})

drawPanomBackground(ctx, preset, 1440, 900, params)

Procedural backgrounds

import {
  buildProceduralOrbitScene,
  defineProceduralBackground
} from '@panomapp/bg-maker/procedural'

const scene = buildProceduralOrbitScene('demo-scene')

const background = defineProceduralBackground({
  id: 'demo-scene',
  labelKey: 'backgrounds.demo',
  scene
})

Tileable backgrounds

import { defineTileableBackground } from '@panomapp/bg-maker/tileable'

const dots = defineTileableBackground({
  id: 'dots',
  labelKey: 'backgrounds.dots',
  getStyle: () => ({
    backgroundColor: '#ffffff',
    backgroundImage:
      'radial-gradient(circle at 8px 8px, rgba(0,0,0,0.15) 0 2px, transparent 2.5px)',
    backgroundSize: '24px 24px',
    backgroundRepeat: 'repeat'
  }),
  draw: (ctx, width, height) => {
    ctx.fillStyle = '#ffffff'
    ctx.fillRect(0, 0, width, height)
  },
  sample: () => ({ r: 255, g: 255, b: 255 })
})

Vue adapter

import { toVueCssProperties } from '@panomapp/bg-maker/vue'
import { getPanomBackgroundPreviewStyle } from '@panomapp/bg-maker/panom'

const style = toVueCssProperties(
  getPanomBackgroundPreviewStyle('sugar-pop')
)

Runtime Notes

  • CSS preview helpers are safe to use in standard browser UI flows.
  • Canvas rendering APIs require a browser canvas context.
  • Procedural raster generation is DOM-aware and avoids browser-only work when those APIs are unavailable.

Compatibility

  • Node.js 18+
  • ESM environments

License

MIT