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

j832

v1.0.5

Published

SDK for J832 Protocol - Blockchain change logging

Readme

J832 Protocol SDK

Enterprise-grade blockchain audit trails and multi-admin governance — easy integration for any system.

npm version

License: MIT

Table of Contents


Production-ready! Contract and SDK stable for integration.


Features

  • Immutable audit trails for any entity, resource, or process
  • Multi-admin, on-chain approval workflow (add/remove/transfer)
  • Tamper-proof, public or private by design (hash-only storage)
  • Pagination, status management, and role verification
  • Works with any EVM-compatible chain

Contract Address (Testnet)

Installation

  1. git clone … && cd j832Protocol
  2. npm install
  3. .env: define provider URL, keys, contract address
  4. npm run build && npm test

Quick Start

import { J832, ChangeType } from 'j832';

const sdk = new J832({ providerUrl: process.env.J832_PROVIDER_URL!, contractAddress: process.env.J832_CONTRACT_ADDRESS!, privateKey: process.env.J832_SIGNER_KEY, // Only for write actions });


Usage Examples


Create a Resource

await sdk.createResource({ resourceId: 'HR_PAYROLL', enforceUniqueness: true });

Register a Change

import { keccak256, toUtf8Bytes } from 'ethers';

const data = JSON.stringify({ employeeId: 123, bonus: 500 }); const dataHash = keccak256(toUtf8Bytes(data));

await sdk.registerChange({ resourceId: 'HR_PAYROLL', dataHash, changeType: ChangeType.UPDATE, });


Query Audit Trail

const latest = await sdk.getLatestChange('HR_PAYROLL'); const total = await sdk.getVersionCount('HR_PAYROLL'); const history = await sdk.getHistoryRange('HR_PAYROLL', 0, total);


. Multi-Admin Governance

await sdk.proposeAddAdmin('HR_PAYROLL', '0xNewAdmin...'); await sdk.approveAddAdmin('HR_PAYROLL'); await sdk.proposeRemoveAdmin('HR_PAYROLL', '0xOldAdmin...'); await sdk.approveRemoveAdmin('HR_PAYROLL');


Status and Uniqueness

await sdk.setResourceActiveStatus('HR_PAYROLL', false); const active = await sdk.isResourceActive('HR_PAYROLL'); const uniqueness = await sdk.isUniquenessEnforced('HR_PAYROLL');


Admin & Owner Query

const admins = await sdk.getAdmins('HR_PAYROLL'); const owner = await sdk.getResourceOwner('HR_PAYROLL');


Audit Log Transparency

For maximum auditability and regulatory compliance, J832 SDK exposes a method to retrieve the full on-chain change history via contract events, including transaction hash and block data.

  • getHistoryRange: Reads the on-chain structs for versioned data (does not include transaction metadata).

  • getHistoryFromEvents: Reads the blockchain event logs, returning all metadata (txHash, blockNumber, etc.) for independent verification.

API Reference (Summary)

📦 Constructor

new J832(config) config: J832Config — Create SDK instance

📝 Resource Management

await sdk.createResource({ resourceId, enforceUniqueness }) await sdk.setResourceActiveStatus(resourceId, active) await sdk.isResourceActive(resourceId) await sdk.setUniqueness(resourceId, enforceUniqueness) await sdk.isUniquenessEnforced(resourceId) await sdk.getVersionCount(resourceId)

🔄 Change Tracking & Audit

await sdk.registerChange({ resourceId, dataHash, changeType }) await sdk.getLatestChange(resourceId) await sdk.getHistoryRange(resourceId, start, count)

🛡️ Admin & Governance

await sdk.getAdmins(resourceId) await sdk.isAdmin(resourceId, address) await sdk.getResourceOwner(resourceId)

await sdk.proposeAddAdmin(resourceId, newAdmin) await sdk.approveAddAdmin(resourceId) await sdk.proposeRemoveAdmin(resourceId, adminToRemove) await sdk.approveRemoveAdmin(resourceId) await sdk.proposeTransferOwnership(resourceId, newOwner) await sdk.approveTransferOwnership(resourceId)

See full documentation

Security Best Practices

NEVER commit private keys or secrets to any repository.

All write actions (createResource, registerChange, admin proposals) must be server-side.

Always pre-hash sensitive data off-chain; never send raw confidential data to the blockchain.

Monitor your RPC endpoint and contract address for changes.

Audit transaction receipts for every call; handle failures gracefully.

MIT

Documentation

Getting Started

API Reference

Governance

Security

FAQ

J832 SDK is open-source, designed for enterprise-grade audit and compliance, and extensible for any regulated industry.

Contributions, bug reports, and security reviews welcome!

License

MIT © 2025 mfelizweb

Support / Contact

📲 Community