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

@michaelthielemann/kestrel-galleries-secure-proofing

v1.0.1

Published

Opt-in Kestrel extension: client proofing (Lightroom-style colour flags + comments) on top of kestrel-galleries-secure. Customer marks are encrypted client-side; a public back-channel stores only ciphertext. Requires a running server (not pure-static).

Readme

kestrel-galleries-secure-proofing

An opt-in Kestrel extension that adds a client proofing workflow on top of kestrel-galleries-secure: the customer opens a secure gallery and marks photos Lightroom-style (colour flags + comments); the photographer reviews those marks, read-only, in the backend.

Compose it after the core and the base:

// nuxt.config.ts
export default defineNuxtConfig({
  extends: ['@michaelthielemann/kestrel', '@michaelthielemann/kestrel-galleries-secure', '@michaelthielemann/kestrel-galleries-secure-proofing'],
})

Zero-knowledge is preserved

The customer is anonymous to the server (the gallery password never reaches it). Marks/comments are encrypted client-side under the gallery key (via the base's useSecureGallery().seal) and POSTed as ciphertext to a public back-channel; the server stores only opaque bytes; the photographer decrypts them in the backend (open). The server never sees plaintext.

Deployment — needs a running server (NOT pure-static)

Unlike the base (which can deploy as a 100%-static site), this extension ships a public write route (/api/galleries-secure-proofing/submit) + a galleryProofing table, so it requires a running Node server. Keep it OUT of any deployment that must stay fully static (e.g. an enterprise pilot) — simply don't compose this layer there; the base + the core access grant seam stay inert without it.

What it ships (primitives)

| Primitive | Role | |-----------|------| | galleryProofing collection | persistence — one (encrypted) submission per (gallery, customer) | | POST /api/galleries-secure-proofing/submit | public back-channel — same-site + rate-limited + size-capped; stores ciphertext only | | access grant (server plugin) | registers anonymous → write → galleries-secure-proofing via the core grant seam | | app/utils/proofing.ts | pure marks model (emptyDoc/setMark/validate) — node-tested | | useProofing(...) | customer: hold marks + debounced encrypted submit (opaque customerId in localStorage) | | <SecureGalleryProofingView> | customer view: base gallery + per-photo colour/comment overlay | | useProofingReview(...) | photographer review logic: load submissions → decrypt → aggregate marks per photo | | editor override (registerFieldComponent('secureGallery', …)) | augments the BASE gallery editor in-place: colour flags on photos + comments in the lightbox + a colour filter, shown when the photographer unlocks the gallery in the record editor (no separate page) |

The customer's identity (name/avatar/personalisation) is consumer territory — this layer keeps only an opaque customerId; a consumer project can carry a display name inside the sealed payload or build its own UI.

Recipe — wire it into your own block + admin page

Customer view — in your gallery block's display, use <SecureGalleryProofingView> instead of the base <SecureGalleryView>, and pass the gallery record's slug as the submission key:

<!-- app/blocks/MyGallery.vue (schema + display in one SFC) -->
<script setup>
// `slug` MUST be the gallery RECORD's `slug` field value — the exact key the photographer's editor reads
// (it derives the review key from the record's `slug`). Do NOT use `$route.path`: it carries a leading slash
// and any locale prefix, so it would never match the editor's key and the photographer's review would be
// silently empty. Source the slug from your page's record (e.g. as block data) and pass it through.
defineProps(['heading', 'gallery', 'slug'])
</script>
<template>
  <h2 v-if="heading">{{ heading }}</h2>
  <SecureGalleryProofingView :gallery="gallery" :gallery-slug="slug" />
</template>

Photographer review — nothing to wire. Just compose this extension (extends: ['@michaelthielemann/kestrel', '@michaelthielemann/kestrel-galleries-secure', '@michaelthielemann/kestrel-galleries-secure-proofing']): it overrides the secureGallery editor widget, so in the normal record editor the photographer enters the gallery password (the same unlock that shows folders/files), and then sees each customer's colour flags on the photos, the comments in the lightbox, and a colour filter — all read-only, in the same place they manage the gallery. The gallery key is already in memory from the unlock; reads are admin-gated; the customer write went through the public back-channel. (The proofing submission key is the gallery record's slug field by default; set the secureGallery field's options.keyField to use a different sibling field — the customer view must submit the same value.)

Status: feature-complete (slices 0–3). The pure marks/submission/rate-limit logic is node-tested; the route, collection, grant plugin, composables and views are browser-/build-verified (a running server + WebCrypto, not the headless suite). Photographer's OWN marks (a write path for the editor, not just read-only review) is a noted follow-up. See 2026-06-28-galleries-secure-proofing-slice-plan.md (outer dir).