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

@limewire/lmwrntwrk-sdk-ts

v0.1.5

Published

S3-compatible LMWRNTWRK middleware and helpers for AWS SDK v3

Readme

LimeWire Network TypeScript SDK

lmwrntwrk-sdk-ts is the official TypeScript SDK for LimeWire Network, a decentralized file storage network. It allows developers to easily integrate decentralized storage into their applications using familiar S3-compatible APIs and the standard AWS SDK for JavaScript (v3).

The SDK is isomorphic: it runs in Node.js (v18+) and modern browsers.

Prerequisites

  • Node.js 18 or later (for server-side usage).
  • AWS SDK for JavaScript v3 (@aws-sdk/client-s3).

Installation

npm install @limewire/lmwrntwrk-sdk-ts

Browser Usage

The SDK integrates seamlessly with the standard @aws-sdk/client-s3. When using the SDK in a browser environment, ensure your privateKey is provided as a string (Hex or PEM). The privateKeyPEMFile option is only supported in Node.js.

import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3';
import { applyLmwrntwrkMiddleware, generateCredentials } from '@limewire/lmwrntwrk-sdk-ts';

// 1. Setup your LimeWire configuration
const config = {
  privateKey: '<private-key-in-pem-or-raw-hex>',
};

// 2. Generate S3-compatible credentials from the private key
const credentials = await generateCredentials(config);

// 3. Initialize the standard S3 Client
const s3 = new S3Client({
  region: 'lmwrntwrk',
  forcePathStyle: true,
  endpoint: 'https://sp1.strg.com',
  credentials
});

// 4. Apply the LimeWire middleware to the S3 Client
applyLmwrntwrkMiddleware(s3, config);

// 5. Use the S3 client as usual
await s3.send(new PutObjectCommand({
  Bucket: 'my-bucket',
  Key: 'hello.txt',
  Body: 'Hello LimeWire Network!'
}));

How it Works

The LimeWire Network TypeScript SDK seamlessly integrates with the official AWS SDK for JavaScript (v3) to provide a familiar S3-compatible interface for decentralized storage. By providing a middleware that handles the underlying decentralized routing, request signing, and data validation, it allows developers to use standard S3 operations. This approach enables you to leverage the full power of the AWS SDK ecosystem to interact with the LimeWire Network as a storage backend. For more information, please visit the official LimeWire Network website.

Included Helpers

  • applyLmwrntwrkMiddleware(client, config): Injects LimeWire logic into the S3 client.
  • generateCredentials(config): Derives accessKeyId and secretAccessKey from your private key.
  • addLmwrntwrkParamsToPresignedUrl(config, url, maxCount): Adds signing parameters to S3 presigned URLs.
  • staticValidatorUrlResolver(...urls): A helper to provide fixed validator URLs.

Documentation