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

scientific-protocol

v0.1.1

Published

Claim-centric protocol for scientific publication, replication, review, and reward.

Readme

Scientific Protocol

Scientific Protocol is a decentralized protocol for registering scientific claims, binding them to evidence, coordinating replication and review, resolving objective outcomes, and rewarding useful scientific work.

Claims are the atomic objects. Artifacts are content-addressed. Onchain state stays narrow, while indexers, APIs, workers, and storage services remain replaceable node infrastructure.

Repository Boundary

This repository contains the protocol implementation, canonical payload schemas, SDKs, generated contract bindings, and reference modules for nodes and downstream applications. Developers can consume those interfaces through package releases, contract metadata, deployment metadata, direct chain access, or the reference API.

The public command surface is intentionally small: build and test the contracts, regenerate bindings, run a local EVM node, and deploy the protocol contracts to a configured RPC endpoint. Application hosting, product release automation, and operated-service scheduling belong in downstream application or operator repositories.

Protocol Surface

  • Solidity contracts for claims, artifacts, replication, escrow, reputation checkpoints, rewards, governance, and resolution modules
  • JSON Schemas for canonical claim, replication, evaluation, and artifact-storage payloads
  • TypeScript SDK, generated contract bindings, and Python client
  • Reference API, indexer, worker, and read-model modules
  • Source ingress, artifact persistence, review, work routing, and reward settlement primitives
  • Hardhat tests plus Foundry fuzz, invariant, and gas checks

Development

Use Node 22 and npm:

npm install
forge install foundry-rs/[email protected] --no-git --shallow
npm run validate:env

Initialize the project-local Node 22 wrapper if host commands need it:

npm run node:env:init

Copy .env.example to .env if you want explicit local values instead of relying on defaults.

Run the core checks:

npm run lint
npm run typecheck
npm test
npm run test:forge

Regenerate checked-in contract artifacts after Solidity changes:

npm run build
npm run generate:contracts

Refresh the gas baseline when contract behavior changes:

npm run gas:snapshot

Release process: see docs/release.md.

Local Protocol Stack

Start a local Hardhat node:

npm run node

In another shell, deploy the protocol contracts to that node:

npm run deploy

To deploy to another EVM RPC endpoint, set the RPC URL and signer key before running the same deploy command:

SP_RPC_URL=https://your-rpc.example \
SP_PROTOCOL_ADMIN_PRIVATE_KEY=0x... \
SP_DEPLOYMENT_PATH=/absolute/path/to/deployment.json \
npm run deploy

Reference API

The reference API exposes health, read-model, signed public-write, signed operator, reward, work, source, artifact, governance, and claim routes. Canonical authority remains onchain plus content-addressed artifacts.

Useful routes include:

  • GET /health
  • GET /write-config
  • GET /reward-config
  • GET /claims
  • GET /claims/:claimId
  • GET /sources
  • GET /work/items

Set SP_API_MODE=read-model-optional for deployments that expose health and write configuration without a configured read-model database.

Repository Map

  • contracts/: protocol, governance, rewards, escrow, and module contracts
  • foundry-test/: Solidity fuzz, invariant, and gas-oriented tests
  • test/: Hardhat and TypeScript protocol tests
  • schemas/: canonical payload schemas
  • src/sdk/: TypeScript SDK
  • src/generated/: generated contract bindings
  • src/api/: reference protocol API
  • src/indexer/: chain projection into a read model
  • src/workers/: sync, replication, review, and artifact maintenance workers
  • src/artifacts/: artifact persistence, audit, repair, and storage attestation logic
  • src/sources/: source canonicalization, extraction, and publication services
  • ops/: read-model migrations
  • python/: Python client and examples

Contributing

See CONTRIBUTING.md. Security-sensitive reports should follow SECURITY.md.

License

MIT. See LICENSE.