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

qudag

v1.2.1

Published

QuDAG - Quantum-Resistant Distributed Communication Platform

Downloads

20

Readme

QuDAG NPM Package

🌐 Quantum-Resistant Distributed Communication Platform

npm version License Platform Support

QuDAG is a revolutionary quantum-resistant distributed communication platform built on a Directed Acyclic Graph (DAG) architecture. This NPM package provides easy access to the QuDAG CLI through Node.js and NPX.

🚀 Quick Start

Using NPX (Recommended)

No installation required! Just run:

npx qudag@latest --help

Global Installation

Install globally for direct CLI access:

npm install -g qudag
qudag --help

Project Installation

Add to your project as a dependency:

npm install qudag

📋 Prerequisites

  • Node.js >= 16.0.0
  • Supported platforms:
    • Linux (x64, arm64)
    • macOS (x64, arm64)
    • Windows (x64)

🛠️ CLI Usage

Start a QuDAG Node

# Using npx
npx qudag@latest start --port 8000

# If installed globally
qudag start --port 8000

Dark Address Management

# Register a .dark domain
npx qudag@latest address register mynode.dark

# Resolve a dark address
npx qudag@latest address resolve mynode.dark

# Generate a temporary shadow address
npx qudag@latest address shadow --ttl 3600

# Create a quantum fingerprint
npx qudag@latest address fingerprint --data "Hello QuDAG!"

Peer Management

# List connected peers
npx qudag@latest peer list

# Add a new peer
npx qudag@latest peer add /ip4/192.168.1.100/tcp/8000

# Remove a peer
npx qudag@latest peer remove 12D3KooWExample...

Node Operations

# Check node status
npx qudag@latest status

# View network statistics
npx qudag@latest network stats

# Stop the node
npx qudag@latest stop

💻 Programmatic Usage

JavaScript/TypeScript API

const { QuDAG } = require('qudag');
// or
import { QuDAG } from 'qudag';

// Start a node
const startResult = await QuDAG.start(8000);
console.log('Node started:', startResult.stdout);

// Get node status
const status = await QuDAG.status();
console.log('Status:', status.stdout);

// Register a dark address
const register = await QuDAG.registerAddress('myapp.dark');
console.log('Registered:', register.stdout);

// List peers
const peers = await QuDAG.listPeers();
console.log('Peers:', peers.stdout);

// Execute raw commands
const result = await QuDAG.raw(['--version']);
console.log('Version:', result.stdout);

Advanced Usage

const { execute, getPlatformInfo, isInstalled } = require('qudag');

// Check if binary is installed
if (!isInstalled()) {
  console.log('QuDAG binary not installed');
}

// Get platform information
const info = getPlatformInfo();
console.log('Platform:', info.platform);
console.log('Architecture:', info.arch);
console.log('Binary path:', info.binaryPath);

// Execute custom commands with options
const result = await execute(['peer', 'list', '--format', 'json'], {
  env: { ...process.env, RUST_LOG: 'debug' }
});

const peers = JSON.parse(result.stdout);
console.log(`Connected to ${peers.length} peers`);

🏗️ Architecture

This NPM package acts as a wrapper around the native QuDAG binary, providing:

  • Automatic Binary Management: Downloads the correct binary for your platform
  • Cross-Platform Support: Works on Linux, macOS, and Windows
  • TypeScript Support: Full type definitions included
  • Programmatic API: Use QuDAG from your Node.js applications
  • NPX Support: Run without installation using npx qudag@latest

🔧 Troubleshooting

Binary Download Issues

If the binary fails to download during installation:

  1. Check your internet connection
  2. Verify your platform is supported
  3. Check if a proxy is blocking GitHub access
  4. Try manual installation:
# The binary will be downloaded on first use
npx qudag@latest --help

Permission Issues on Linux/macOS

If you get permission errors:

# Make the binary executable
chmod +x $(npm root -g)/qudag/bin/platform/qudag

Platform Not Supported

If your platform is not supported, you can build from source:

# Clone the repository
git clone https://github.com/ruvnet/QuDAG
cd QuDAG

# Build the project
cargo build --release

# Copy the binary to the npm package
cp target/release/qudag node_modules/qudag/bin/platform/

🤝 Contributing

Contributions are welcome! Please see the main QuDAG repository for contribution guidelines.

📄 License

Licensed under either of:

  • Apache License, Version 2.0
  • MIT License

at your option.

🔗 Links


Created by rUv