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

@shoplifter/presentation-contract

v0.3.3

Published

Shared Shoplifter presentation validation, fixtures and authoring contracts

Readme

Shoplifter presentation contract

Shared validation, types, fixtures, image/source policies and declarative migrations for portable Shoplifter Astro presentations. Requires Node 24. Use the SDK and CLI with the same release version. Public installation does not authorize platform access.

Version 0.3.0 adds shared YouTube URL/thumbnail/embed helpers (also available through /youtube) and validates explicit SDK external images. YouTube output requires the exact HTTPS i.ytimg.com/vi/{11-character-video-id}/hqdefault.jpg URL and matching marker ID. External image output requires a credential-free absolute HTTPS URL, alt and positive dimensions. Conflicting image markers, responsive alternatives and picture wrappers are rejected for these components. Existing Picture asset ownership checks still run in trusted platform validation.

imageMarkupWarnings returns a non-blocking, URL-free warning for ExternalImage usage; its use constitutes consent to third-party image requests. YouTube thumbnails do not emit this warning. Raw source images and external CSS images stay restricted.

The root export provides project/definition/content validation, deterministic fixtures, type generation, data requirements, image policy, source admission and migrations. /editor exposes the editor configuration helpers. Project files are authoritative; unsupported data sources, executable migrations and unsafe paths are rejected.

The upload policy admits project contract files, supported files under src/, declared raster assets and decorative SVG/font assets. It excludes environment files, credential stores, private keys, generated fixtures, caches and unrelated trees. The CLI applies .gitignore and .shoplifterignore; required excluded files cause an explicit error. Mandatory exclusions cannot be reversed by ignore negations. Backend admission independently enforces the same policy.

This is validation and developer tooling, not an authorization boundary. Services must authenticate users, enforce channel ownership and validate build output themselves. Retained revisions keep their original source and exact runtime dependencies.

Shoplifter-owned code in this package is Apache-2.0. Third-party code retains its original license. Read LICENSE, NOTICE, THIRD_PARTY_NOTICES and the generated dist/THIRD_PARTY_NOTICES. Only these package files are licensed for public release; the surrounding monorepo and backend remain private.