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

@arach/og

v0.4.0

Published

Declarative OG images via og-render (native WebKit) — real Google Fonts, no Chromium in npm

Readme


Try it

bunx @arach/og viewer

Opens a local preview of every template with live renders. The package ships a prebuilt og-render binary for macOS — run og version to check versions, og build to rebuild from source.

Why not Puppeteer?

Most OG tools pull in a headless browser — Puppeteer, Playwright, or bundled Chromium — plus font files as npm dependencies to get typography right.

@arach/og takes a different path: templates are plain HTML, fonts load from Google Fonts or CDN at render time, and og-render snapshots them through macOS WebKit. No browser download in npm — just a small native CLI that uses the WebKit already on your Mac.

| | Puppeteer / Playwright | @arach/og | |---|---|---| | npm browser dep | Bundled Chromium (~300MB) | None | | Renderer | Downloaded Chromium | og-render → system WebKit | | Fonts | npm packages or manual embed | Google Fonts / CDN at render | | CSS | Full | Full | | PNG export | macOS, Linux, CI | macOS (og-render required) |

Installation

bun add @arach/og
og version   # @arach/og + bundled og-render versions
og build     # rebuild og-render from Swift source (optional)

og-render ships as a prebuilt binary for your Mac arch (native/og-render/bin/darwin-arm64/ or darwin-x64/), with Swift source if you need to rebuild. It's a headless WKWebView snapshotter — not a Chromium download.

Signed releases (Developer ID + Apple notarization) are on GitHub:

# https://github.com/arach/og/releases — e.g. og-render-v0.3.0
# og-render-v0.3.0-darwin-arm64.zip
# og-render-v0.3.0-darwin-x64.zip

To cut a release locally or in CI:

bun run release:native          # build, sign, notarize (macOS + certs)
# CI: push tag og-render-v0.3.0 (see .github/workflows/release-og-render.yml)

Usage

Programmatic API

import { generateOG } from '@arach/og'

await generateOG({
  template: 'branded',
  title: 'My App',
  subtitle: 'Build amazing things',
  accent: '#f07c4f',
  output: 'public/og.png'
})

CLI

bunx @arach/og config.json          # generate from JSON (single or batch)
bunx @arach/og validate <url>       # check OG tags, image size, dimensions
bunx @arach/og audit <url>          # audit a site via sitemap
bunx @arach/og viewer               # local template preview

Config file format:

[
  {
    "template": "branded",
    "title": "My App",
    "subtitle": "Build amazing things",
    "accent": "#f07c4f",
    "output": "public/og.png"
  }
]

Templates

Four templates out of the box. Preview them all →

| Template | Best for | |---|---| | branded | Product landing pages — logo, tag chip, accent glow | | docs | Documentation — breadcrumb-style layout | | minimal | Blog posts and articles — clean, centered | | editor-dark | Developer tools and code editors — dark theme |

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | template | string | 'branded' | Template ID | | title | string | required | Primary title | | subtitle | string | - | Subtitle or description | | accent | string | '#6366f1' | Brand/accent color (hex) | | accentSecondary | string | - | Secondary accent color | | background | string | '#0a0a0a' | Background color | | textColor | string | '#ffffff' | Text color | | output | string | required | Output file path | | width | number | 1200 | Width in pixels | | height | number | 630 | Height in pixels | | scale | number | 2 | Device scale factor (retina) | | fonts | string[] | ['Geist', 'Geist'] | Google Fonts or Geist (CDN) — loaded at render | | logo | string | - | Logo URL or base64 | | tag | string | - | Tag/chip text |

Batch generation

import { generateOGBatch } from '@arach/og'

await generateOGBatch([
  { template: 'branded', title: 'Home', output: 'og-home.png' },
  { template: 'docs', title: 'Docs', output: 'og-docs.png' },
])

Hudson / Atelier bundle

@arach/og exports a Hudson app bundle from ./catalog:

import { ogBundle, ogWorkspaceEntry, ogApp } from '@arach/og/catalog'

The Preframe-style alias catalogApp is also exported, so a host can resolve it with mod.catalogApp ?? mod.ogApp ?? mod.default. The bundle includes the HudsonApp, intents, config/HTML ports, a workspace registration entry, and a note describing assets/toolsets.

License

MIT