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

@sharddog/approve

v0.1.0

Published

ShardDog Approve — on-chain human-in-the-loop approval stamps for AI-generated content

Readme

@sharddog/approve

On-chain human-in-the-loop approval stamps for AI-generated content. Built on ShardDog + NEAR Protocol.

Install

npm install @sharddog/approve

Quick Start

import { SharddogApprove } from '@sharddog/approve'

const approve = new SharddogApprove({ apiKey: 'your_api_key' })

// Stamp approval on AI-generated content
const stamp = await approve.stamp({
  content: 'The full text of your AI report...',
  label: 'Q1 Financial Summary',
  reviewer: 'alice.near',
  metadata: {
    ai_model: 'claude-opus-4',
    category: 'report',
  }
})

console.log(stamp.verification_url) // https://shard.dog/approve/abc123...
console.log(stamp.status)           // 'minted' (on-chain) or 'stamped' (DB only)

// Verify content was approved
const result = await approve.verify('abc123...')
if (result.approved) {
  console.log(`Approved by ${result.stamps[0].reviewer} at ${result.stamps[0].timestamp}`)
}

// Get reviewer's history
const history = await approve.history('alice.near')
console.log(`${history.total} approvals`)

API

new SharddogApprove(config?)

| Option | Type | Default | Description | |--------|------|---------|-------------| | apiKey | string | — | API key for authenticated requests | | baseUrl | string | https://shard.dog | API base URL |

approve.stamp(options)

Create an approval stamp.

| Option | Type | Required | Description | |--------|------|----------|-------------| | content | string | * | Raw content to hash and approve | | contentHash | string | * | Pre-computed SHA-256 hex hash | | label | string | ✅ | Human-readable description (max 256 chars) | | reviewer | string | ✅ | NEAR wallet or email of reviewer | | metadata | object | — | Optional: ai_model, source_system, category |

* Either content or contentHash is required.

approve.verify(hashOrContent, reviewer?)

Verify if content has been approved. Pass a SHA-256 hash or raw content string.

approve.history(reviewer, options?)

Get approval history for a reviewer.

sha256(text)

Utility to compute SHA-256 hash. Works in browser and Node.js.

Widget

Drop-in web component — no build step required:

<script src="https://shard.dog/approve-widget.js"></script>

<sharddog-approve
  api-key="your_key"
  content-hash="abc123..."
  label="AI Report Review"
  reviewer="alice.near"
  ai-model="claude-opus-4"
></sharddog-approve>

Or with raw content (auto-hashed):

<sharddog-approve
  api-key="your_key"
  content="The full AI-generated text..."
  label="Blog Post Review"
  reviewer="bob.near"
></sharddog-approve>

Events

document.querySelector('sharddog-approve')
  .addEventListener('sharddog:approved', (e) => {
    console.log('Stamp created:', e.detail)
  })

How It Works

  1. AI generates content (report, code, article)
  2. Human reviews and clicks "Approve"
  3. Content is SHA-256 hashed, approval stamp stored in DB + minted on NEAR as an NFT
  4. Anyone can verify by checking the content hash against the on-chain record

Links