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

@outpost67/sdk

v1.0.0

Published

The official TypeScript SDK for Outpost67.

Downloads

63

Readme

@outpost67/sdk

The official TypeScript SDK for Outpost 67, a stablecoin prepayment storage network.
Compatible with Node.js and Browser environments.

npm version License: MIT

Features

  • Decentralized Storage: Upload files to the Outpost 67 network with various storage tiers.
  • Micro-Payments: Built-in support for the x402 payment protocol using EVM (Ethereum compatible) and SVM (Solana) wallets.
  • Dual Support: Works seamlessly in both Node.js (Buffers, Streams, Files) and Browser (File, Blob) environments.
  • Full Lifecycle Management: Upload, retrieve, list, renew, and delete objects.

Installation

npm install @outpost67/sdk

Quick Start

Initialize Client

You can initialize the client for either EVM or SVM networks.

EVM (Ethereum, Polygon, Base, etc.)

import { Outpost67Client } from '@outpost67/sdk';

const privateKey = '0x...'; // Your EVM private key
const client = new Outpost67Client('evm', privateKey, {
    mode: 'live' // or 'test'
});

SVM (Solana)

import { Outpost67Client } from '@outpost67/sdk';

const privateKey = '...'; // Your base58 API/Private key
const client = new Outpost67Client('svm', privateKey, {
    mode: 'live' // or 'test'
});

Upload a File

Node.js Example

import fs from 'fs';

// Upload a file stream
const stream = fs.createReadStream('./my-document.pdf');
const stats = fs.statSync('./my-document.pdf');

const upload = await client.upload('my-document.pdf', stream, {
    tier: 'standard',
    duration: 24, // hours
    explicitSize: stats.size // Required for streams
});

console.log('Upload successful:', upload.id);

Browser Example

const fileInput = document.querySelector('input[type="file"]');
const file = fileInput.files[0];

const upload = await client.upload(file.name, file, {
    tier: 'standard',
    duration: 24
});

console.log('Upload successful:', upload.id);

Retrieve a File

// Returns a ReadableStream in Node.js or a Blob in the Browser
const result = await client.retrieve(upload.id);

// Node.js: Pipe to file
const dest = fs.createWriteStream('./downloaded.pdf');
result.pipe(dest);

// Browser: Create object URL
const url = URL.createObjectURL(result);
window.open(url);

API Reference

constructor(network, privateKey, options)

  • network: 'evm' | 'svm' - The blockchain network to use for payments.
  • privateKey: string - The hex string (EVM) or base58 string (SVM) private key.
  • options: ClientOptions
    • mode: 'live' | 'test' (default: 'live')
    • endpoint: Custom API endpoint (optional)

upload(fileName, fileItem, params)

Uploads a file to specific storage tier.

  • fileName: string - The name of the file.
  • fileItem: File | Blob | Buffer | Readable | string - The file content or path.
  • params: UploadParams
    • tier: 'decentralized' | 'fast' | 'standard' | 'infrequent' | 'cold'
    • duration: Storage duration in hours.
    • explicitSize: (Required for Streams) Size of the file in bytes.

list(filter?)

List all objects in your storage.

  • filter: string (optional) - Regex filter for the list.

retrieve(objectIdOrName, retrievalToken?)

Download a file.

  • objectIdOrName: string - The ID or name of the file.
  • retrievalToken: string (optional) - Token for authorization if required.

renew(objectIdOrName, duration, renewalToken?)

Extend the storage duration of a file.

  • duration: number - Additional hours to store.

rotate(objectIdOrName, rotateToken?)

Rotate access tokens for an object.

delete(objectIdOrName, deleteToken?)

Delete a file from storage.

restore(objectIdOrName, newObjectName, duration, restoreToken?)

Restore a file from cold storage.

  • newObjectName: string - Name for the restored copy.
  • duration: number - How long to keep the restored copy.

Types

StorageTier

'decentralized' | 'fast' | 'standard' | 'infrequent' | 'cold'

UploadParams

interface UploadParams {
    tier: StorageTier;
    duration: number; // hours
    explicitSize?: number; // bytes
}