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

@camelburrito/cf-utils

v0.3.2

Published

Agnostic Cloud Functions utilities: PII-redacting logger, writeWithAudit, rate limit, idempotency, validation, wrapHandler.

Readme

@camelburrito/cf-utils

Agnostic Cloud Functions utilities for the keel-derived projects.

Status: implemented (v0.3.2). See keel playbook 09-firebase-stack.md and 05-observability-pii.md.

What this package provides

  • logger — 7-layer PII redact pipeline (Gaxios scrubbing, domain-PII scrubber slot, email, phone, FCM token, Firestore-path embedded IDs, 28-char Firebase UID). Exports BARE_FIREBASE_UID_RE for downstream ratchets.
  • instrument.wrapHandler — Proxy-based unhandled-error catch routing thrown errors through the logger before rethrow. Exports OAUTH_SECRET_FIELDS + scrubGaxiosError.
  • writeWithAudit / writeWithAuditBatch — atomic mutation + audit doc in one transaction (the D-01 pattern).
  • checkRateLimit — per-CF per-caller quota with documented tier.
  • claimIdempotency — at-most-once semantics for retry-safe CFs.
  • validateString / validateEmail / validateUrl — input validation primitives with consistent HttpsError codes.
  • Generated AUDIT_ACTIONS literal-union (per-project codegen consumes from the project's audit catalog).

Installation

npm install @camelburrito/cf-utils

Requires .npmrc with GitHub Packages auth — see templates/.npmrc.template.

Domain-PII scrubber slot

The 7-layer pipeline includes a slot for domain-specific PII scrubbing (e.g., calendar fields, contacts, health data). Wire your project's scrubber at logger init:

import { configureLogger } from '@camelburrito/cf-utils';
import { scrubMyDomainFields } from './scrubbers';

configureLogger({ domainScrubber: scrubMyDomainFields });

Versioning

Semver. Breaking changes require a major bump. See CHANGELOG.md.

Publishing

Publishes to GitHub Packages on tag push (v*.*.*) via .github/workflows/publish.yml in the keel repo.