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

pringo-sdk

v1.0.7

Published

## Description

Readme

pringo-sdk

Description

JS Library abstracting freeverse's API to create end update living assets represented by NFTs. This SDK is mainly targeted at videogame companies that are interested in participating in PRINGO platform to retrieve the different NFTs owned by their players together with their properties to render/represent those features in a game context.

Configuration

To test and experiment with the SDK at current development stage, there's a sample .env file called .env.sample in this directory containing some configuration variables needed to check some of the functionalities. Of course feel free to include these configuration variables inside your own .env file corresponding to your application.

  • PRIVATE_KEY: Freeverse signing private key (just needed to perform write operations).
  • UNIVERSE_ID: A valid freeverse's universe id (just for default operations).
  • FREEVERSE_API_URL: Freeverse API URL.
  • IPFS_API_URL=https://ipfs.infura.io:5001/api/v0
  • MAX_ASSETS_TO_BULK_UPDATE: Maximum assets to update in a bulk kind operation.
  • CORS: CORS enabled or not (boolean)
  • FREEVERSE_TIMEOUT: Accepted timeout for freverse's API calls (recommended 120000)
  • SUFFIX_REAL_WORLD_PROPS=real:: Asset Real World props Suffix
  • SUFFIX_IN_GAME_PROPS=game:: Asset In Game props suffix
  • SUFFIX_GOV_PROPS=gov:: Asset Governance props suffix

Testing

Under the directory tests, there's an integration test regarding all this module exported methods.

Examples/Usage

After installing the package:

npm i pringo-sdk

This code snippet can serve (appart from the tests in tests/index.tests.js) as an example on how to use this SDK methods:

const PRINGO_SDK = require('pringo-sdk')
const UNIVERSE_ID = parseInt(process.env.UNIVERSE_ID)

const run = async function () {
  const assets = await PRINGO_SDK.getAssets(UNIVERSE_ID)
  console.log(assets.nodes)

  const attr = { trait_type: 'gov::proposalId', value: 5 }
  const nfts = await PRINGO_SDK.getAssetsByAttribute(attr, UNIVERSE_ID)
  console.log(nfts.nodes)

  const ownerNfts = await PRINGO_SDK.getAssetsByOwnerId(nfts.nodes[0].ownerId, UNIVERSE_ID)
  console.log(ownerNfts)

  const isEmailLinked = await PRINGO_SDK.isEmailLinked(nfts.nodes[0].ownerId, UNIVERSE_ID)
  console.log(isEmailLinked)

  const reference = await PRINGO_SDK.getVerseReference()
  console.log(reference)

  const cryptos = await PRINGO_SDK.getAllSupportedCryptocurrencies()
  console.log(cryptos)

  const crypto = await PRINGO_SDK.getSupportedCryptocurrencyById(cryptos.nodes[0].currencyId)
  console.log(crypto)

  const refundableBuynows = await PRINGO_SDK.getMyRefundableBuyNows(nfts.nodes[0].id, UNIVERSE_ID)
  console.log(refundableBuynows)

  const withdrawableBuynows = await PRINGO_SDK.getMyWithdrawableBuynows(nfts.nodes[0].id, UNIVERSE_ID)
  console.log(withdrawableBuynows)

  const universes = await PRINGO_SDK.getAllUniverses()
  console.log(universes)

  const ownership = await PRINGO_SDK.isUniverseOwner(universes.nodes[0].ownerId, universes.nodes[0].id)
  console.log(ownership)

  const universe = await PRINGO_SDK.getUniverseById(universes.nodes[0].id)
  console.log(universe)
}

run()