@s2g/ipfs-pinning-adapter
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

IPFS pinning services adapter

Project license Project license NPM version Size on NPM

A library for a common interface towards different IPFS pinning services. Currently supports:

  • pinata.cloud
  • nft.storage

The goal is to make a Buffer friendly interface towards different services.

import { PinataAdapter } from "../adapters/pinata";
import { NftStorageAdapter } from "../adapters/nftstorage";

import { KeySecretConfig, SimpleConfig } from "../config";

const pinata = new PinataAdapter({... CONFIG ...})
const nftStorage = new NftStorageAdapter({... CONFIG ...})

const buffer = Buffer.from ( ... Some UIntArray ...)
const cid1 = await pinata.pin(buffer)
const cid2 = await nftStorage.pin(buffer)

Please see integration tests for working examples.

Suggestions, problems?

Please create a ticket

Readme

Keywords

none

Package Sidebar

Install

npm i @s2g/ipfs-pinning-adapter

Weekly Downloads

1

Version

0.1.9

License

Apache-2.0

Unpacked Size

51.8 kB

Total Files

69

Last publish

Collaborators

  • marcus-quantleaf