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

@certivu/badge

v2.4.1

Published

Self-contained <certivu-badge> web component for displaying AI content provenance status

Downloads

290

Readme

@certivu/badge

A self-contained <certivu-badge> web component that displays the provenance status of AI-generated content. It calls the public, CDN-cacheable Certivu status endpoint and renders a compact trust pill that expands into a provenance panel.

  • Framework-free custom element — works with React, Vue, Svelte, Astro, plain HTML.
  • Zero runtime dependencies. Encapsulated with Shadow DOM.
  • Themable via CSS custom properties (Warm Dusk defaults).
  • Fails safe — a network or lookup error never throws or breaks the host page.

Certivu verifies signed provenance when present. A "Provenance not found" result does not imply content is human-made, and does not mean content is fake — it simply means no Certivu provenance record was matched for the supplied token.

Install

npm

npm i @certivu/badge
import "@certivu/badge"; // auto-registers <certivu-badge>
<certivu-badge token="ctv_..."></certivu-badge>

CDN (no build step)

<script src="https://cdn.certivu.ai/integrations/badge.js"></script>
<certivu-badge token="ctv_..."></certivu-badge>

Usage

<!-- Compact pill (default) -->
<certivu-badge token="ctv_abc123"></certivu-badge>

<!-- Full variant, custom API base -->
<certivu-badge
  token="ctv_abc123"
  variant="full"
  api-base="https://api.certivu.ai"
></certivu-badge>

Click (or focus + Enter/Space) a verified badge to toggle an inline provenance panel showing organization, model, signed timestamp, and generator status, plus a link to verify on Certivu. Press Escape to close it.

Attributes

| Attribute | Required | Default | Description | | ---------- | -------- | -------------------------- | ------------------------------------------------------------------ | | token | Yes | — | The ctv_... provenance token to look up. | | api-base | No | https://api.certivu.ai | Base URL of the Certivu API. | | variant | No | compact | compact or full. full appends the CERTIVU wordmark. |

Changing token or api-base after mount re-fetches automatically.

States

| State | Pill | Notes | | -------------------- | ----------------------------- | ------------------------------------------------------ | | Loading | Checking… | Shown while the status request is in flight. | | Verified | ✓ Verified by Certivu | valid === true and generator is active. Clickable. | | Provenance not found | Provenance not found | Invalid token, no record, or revoked generator. | | Error | Unable to verify | Network/other error. Never throws. |

Theming

Set CSS custom properties on the element (or any ancestor) to restyle it:

<certivu-badge
  token="ctv_abc123"
  style="
    --certivu-badge-bg: #0f0d1a;
    --certivu-badge-fg: #d8d0e8;
    --certivu-badge-muted: #9a94ac;
    --certivu-badge-accent: #3dd68c;
    --certivu-badge-neutral: #9a94ac;
    --certivu-badge-radius: 8px;
    --certivu-badge-font: 'Inter', system-ui, sans-serif;
  "
></certivu-badge>

| Custom property | Default | Affects | | -------------------------- | ------------------------ | ------------------------------------ | | --certivu-badge-bg | #1e1c2c | Pill and panel background. | | --certivu-badge-fg | #d8d0e8 | Primary text. | | --certivu-badge-muted | #9a94ac | Secondary text / labels. | | --certivu-badge-accent | #3dd68c | Verified accent (dot, text, link). | | --certivu-badge-neutral | #9a94ac | Neutral state dot / revoked status. | | --certivu-badge-radius | 999px | Pill corner radius. | | --certivu-badge-font | system sans-serif stack | Font family. |

The pill and panel are also exposed as ::part(pill) and ::part(panel) for deeper styling from the host page.

License

MIT