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

sdrive

v6.1.1

Published

SDrive is a decentralized storage provider that lets you upload your content on uncensorable networks

Downloads

1,013

Readme

SDrive

About SDrive

SDrive is a powerful decentralized storage solution that makes file uploading easy without compromising user experience or privacy.

Key Features

  • 🔒 Secure file upload and storage
  • 🌐 Support for multiple decentralized networks
  • ⚡ Simple and intuitive API
  • 📦 Buffer and file stream support
  • 🔍 Easy file management and overview

Installation

Requirements

  • Node.js v18 or newer
  • API key from SDrive

Package Installation

npm install sdrive

Configuration

Create a .env file in your project root:

SDRIVE_API_KEY=<your-key>
USER_GUID=<your-guid>

Usage

Importing

ES Modules

import { SDrive } from "sdrive";

CommonJS

const { SDrive } = require("sdrive");

Basic Usage

const sdrive = new SDrive("your_sdrive_apikey", "your_user_guid");

Network Selection (Optional)

SDrive supports multiple decentralized networks. Default is Arweave.

const sdrive = new SDrive("your_sdrive_apikey");

API Examples

File Upload

Upload using buffer

import { SDrive } from "sdrive";
import fs from "fs/promises";

const sdrive = new SDrive("your_sdrive_apikey", "your_user_guid");
const filePath = './my-file.png';
const buffer = await fs.readFile(filePath);

try {
  const response = await sdrive.upload(buffer, "my-file.png");
  console.log("Upload successful:", response);
} catch (error) {
  console.error("Upload failed:", error);
}

Upload using file stream

import { SDrive } from "sdrive";

const sdrive = new SDrive("your_sdrive_apikey", "your_user_guid");
const filePath = './my-file.png';

try {
  const response = await sdrive.upload(filePath, "my-file.png");
  console.log("Upload successful:", response);
} catch (error) {
  console.error("Upload failed:", error);
}

List Files

import { SDrive } from "sdrive";

const sdrive = new SDrive("your_sdrive_apikey", "your_user_guid");

// Optional settings
sdrive.page = 1;  // Page number
sdrive.limit = 10; // Files per page

try {
  const response = await sdrive.listObjects();
  console.log("File overview:", response);
} catch (error) {
  console.error("Failed to fetch file overview:", error);
}

API Documentation

Methods

upload(filebuffer | filepath, filename)

Uploads a file to the selected network.

Parameters:

  • filebuffer | filepath: Buffer or file path of the file to upload
  • filename: Desired filename for the uploaded file

Returns: Promise that resolves with upload response

listObjects()

Retrieves a list of all files uploaded with your API key.

Returns: Promise that resolves with file overview

Troubleshooting

Common Issues

  1. API Key Not Working

    • Verify that the API key is correctly copied to the .env file
    • Check if the API key is active in the SDrive dashboard
  2. Upload Failing

    • Check if the file size doesn't exceed the limit
    • Verify that you have sufficient credit on your account
  3. Network Issues

    • Check your internet connection
    • Verify that the selected network is available

Pricing and Subscription

SDrive requires a monthly subscription for permanent storage of uploaded files.

  • Visit SDrive Dashboard to view available plans
  • Choose the plan that best fits your needs

License

This project is licensed under the MIT License. See LICENSE.md for details.

Support

Need help? Visit our documentation or contact us at [email protected]