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

@authdp/protocol

v1.0.3

Published

SDK for Domain Node Protocol (IMAGXP Native Integration)

Downloads

39

Readme

@authdp/protocol (Authentication over Domain Protocol)

AuthDP is the foundational SDK for building decentralized, secure, and sovereign nodes on the web. It leverages the IMAGXP cryptographic standard to enable seamless, password-less communication between independent web domains.

With AuthDP, you can turn any Next.js or Node.js application into a verifiable Domain Node capable of sending and receiving cryptographically signed messages, without relying on centralized SaaS databases for user identity.

Features

  • Sovereign Identity: Replaces traditional login/signup. Your domain is your identity (e.g., alice.com talking to bob.shop).
  • Cryptographic Verification: Built on top of @imagxp/protocol using ECDSA P-256 for robust signature validation and DNS-binding.
  • Node-to-Node Messaging: Securely route envelopes between independent domains using standardized capabilities.
  • Next.js Ready: Includes Higher-Order Components (HOCs) and adapters optimized for the Next.js App Router.

Installation

npm install @authdp/protocol

Core Concepts

1. The Protocol Node

A generic handler that defines what your domain is capable of doing.

import { NodeRouter } from 'authdp';

// Initialize the router for your domain
export const nodeRouter = new NodeRouter('yourdomain.com');

// Register capabilities
nodeRouter.registerCapability('messaging.receive', async (envelope, storage) => {
    console.log(`Received message from: ${envelope.from}`);
    console.log(`Payload:`, envelope.payload);
});

2. Next.js App Router Integration

AuthDP provides adapters to easily expose your Domain Node to the internet.

In your app/api/inbox/route.ts:

import { createNextInboxHoc } from 'authdp';
import { nodeRouter } from '@/lib/node'; // Your router from above

export const POST = createNextInboxHoc(nodeRouter);

3. Client Usage (Sending securely)

When you want to send data to another domain, AuthDP signs the payload using your .env private keys and delivers it directly to the receiver's inbox.

import { ProtocolNode } from 'authdp';

const node = new ProtocolNode("yourdomain.com", {
    private: process.env.IMAGXP_PRIVATE_KEY,
    public: process.env.IMAGXP_PUBLIC_KEY,
});

await node.sendMessage(
    "receiverdomain.com", 
    "messaging.receive", 
    { content: "Hello from my sovereign node!" }
);

License

MIT