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

@bennyblader/ddk-ts

v0.3.32

Published

dlcdevkit typescript bindings

Downloads

386

Readme

@bennyblader/ddk-ts

TypeScript/Node.js bindings for the DLC Dev Kit (DDK) - NAPI-RS based native bindings for Node.js applications.

Installation

npm install @bennyblader/ddk-ts
# or
pnpm add @bennyblader/ddk-ts

The package includes prebuilt binaries for:

  • macOS ARM64 (Apple Silicon)
  • Linux x64 (glibc)

Quick Start

import { version, createFundTxLockingScript } from '@bennyblader/ddk-ts'

console.log(`DDK Version: ${version()}`)

For complete API documentation, see the main README.

Development

Prerequisites

  • Node.js >= 14
  • Rust >= 1.70
  • pnpm
  • NAPI-RS CLI: npm install -g @napi-rs/cli

Building from Source

# Install dependencies
pnpm install

# Build for current platform
pnpm build

# Build for all supported platforms (Darwin ARM64 and Linux x64)
pnpm build:all

Just Commands

# Build TypeScript bindings for current platform
just ts-build

# Build for all supported platforms
just ts-build-all

# Run example
just ts-example

# Run tests
just ts-test

# Development setup (build + example setup)
just ts-dev

# Release new version to npm
just ts-release <version>

Project Structure

ddk-ts/
├── src-napi/           # Rust NAPI-RS source code
│   ├── lib.rs          # Main library wrapper functions
│   ├── types.rs        # Type definitions matching UDL
│   └── conversions.rs  # Type conversions between Rust and JS
├── src/                # Generated TypeScript/JavaScript files
│   ├── index.js        # Main entry point (generated)
│   └── index.d.ts      # TypeScript definitions (generated)
├── npm/                # Platform-specific packages
│   ├── darwin-arm64/   # macOS ARM64 package
│   └── linux-x64-gnu/  # Linux x64 package
├── example/            # Example TypeScript application
├── __test__/           # Test files
└── scripts/            # Build and verification scripts
    └── verify-parity.cjs # Ensures API compatibility with UDL

Testing

# Run all tests
pnpm test

# Run verification scripts
pnpm verify        # Run all verification checks
pnpm verify:parity # Check API parity with UDL definitions
pnpm verify:types  # Verify TypeScript types

Platform Support

| Platform | Architecture | Status | | -------- | --------------------- | --------------- | | macOS | ARM64 (Apple Silicon) | ✅ Supported | | Linux | x64 (glibc) | ✅ Supported | | macOS | x64 (Intel) | ❌ Not included | | Windows | x64 | ❌ Not included | | Linux | ARM64 | ❌ Not included |

Release Process

To release a new version:

just ts-release 0.2.0

This will:

  1. Check working directory is clean
  2. Update version in package.json
  3. Build for all supported platforms
  4. Run tests
  5. Commit and tag as ddk-ts-v0.2.0
  6. Push to GitHub
  7. Publish to npm

API Compatibility

The TypeScript bindings maintain 100% API compatibility with the UniFFI definitions. The verify-parity.cjs script ensures that all functions defined in the UDL file are properly exposed in the TypeScript bindings.

Troubleshooting

Missing Binary

If you get an error about missing binaries, ensure your platform is supported or build from source:

pnpm build

BigInt Support

All 64-bit integers are represented as JavaScript BigInt. Make sure your Node.js version supports BigInt (Node.js 10.4.0+).

License

MIT