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

prs-lib-js

v0.0.1

Published

Social Identity / Publish System based on Blockchain.

Readme

简介

PRS Lib 是对 PRS REST API 的封装,开发者可以直接调用与 PRS 服务进行通信。

PRS 目前提供了两个环境供开发者使用:

  • 正式环境,域名是 https://press.one 。
  • 测试环境,域名是 https://beta.press.one 。

目前对 DApp 开放的接口有:

  • DApp 创建和维护。
  • 用户授权。
  • 签名。
  • 签名文件相关。(签名文件、获取文件)
  • 合约相关。(创建合约、绑定合约、查询合约)
  • 合约交易相关。(购买合约、合约交易记录)
  • 区块信息查询。
  • 钱包相关。(查询钱包、查询交易历史、充值、提现)

如何使用?

使用步骤

  1. 开发者前往 PRS 官网注册账号。(正式环境:https://press.one,测试环境:https://beta.press.one )
  2. 登录成功后进入开发者设置我的 DApp,完善开发者信息以及创建 DApp。
  3. 在项目中安装此 Lib .
  4. DApp 在合适的时候引导用户进行授权。
  5. 授权成功后即可进行签名发布文件、创建合约等操作。

PRS SDK 中有不同场景的使用示例,开发者可前往下载。具体的使用方法,请参考开发文档

安装

通过 npm 安装:

npm install prs-lib-js --save

初始化

在代码中通过 require 获得 SDK 的引用,之后创建 client:

const PRS = require('prs-lib-js');
// 初始化 client。
const client = new PRS({ env: 'env', debug: true, address: authAddress, token: token });
  • env: 设置开发环境。正式环境为'prod', 开发环境为'dev'.
  • debug: 开启调试日志,开启后 SDK 会把网络请求、错误消息等信息输出到IDE的日志窗口。
  • address: 授权用户的 address.
  • token: 授权用户的 access token.
  • privateKey: 授权用户的 privateKey.