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 🙏

© 2024 – Pkg Stats / Ryan Hefner

restful-identity

v1.6.1

Published

This package implements a Jolocom Self Sovereign Identity as a Node RPC server (the name stuck).

Downloads

5

Readme

restful-identity

This package implements a Jolocom Self Sovereign Identity as a Node RPC server (the name stuck).

Installation

NPM

It can be easily installed via npm install -g restful-identity.

Git

It can also be installed via git with git clone https://github.com/jolocom/restful-identity and yarn install and yarn build

Usage

If installed globally via npm, it can be run simply with $ restful-identity. Running from the repo is easy with $ ./main.js or $ node main.js If using a secure hardware element, this program MUST be used with sudo or as root in order to enable hardware interfacing.

Configuration

The server takes two kinds of configuration: cli and ini format. By default it will look for a /etc/jolocom.conf file. This can be changed with the --file=/some/path command line argument. Command line arguments will override configuration file arguments if both are present and conflict.

Identity

These arguments corrospond to the unique Identity of the server. They should be kept secret. They consist of:

  • seed: a 64 character (32 byte) hexadecimal string
  • password: any string

Keep in mind that if you are using this server with a compatible secure hardware element, using the identity configuration will override the hardware element, and so should not be used.

The default arguments if none are provided are:

  • seed: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  • password: secret
Backend

These arguments represent the Self-Sovereign Identity backend that the server will interact with. This is a complex topic, but think of it as a database that it must access. The arguments consist of:

  • endpoint: A URL
  • contract: An Ethereum-like contract address

The default backend used is the Jolocom SSI system.

Port

This is simply the port that the server will listen on. The default is 3000

File-based Configuration

Here is an example configuration file with every option (they are all optional):

[identity]
seed = B491A4D2A93281420DE9D799943DA73C3BCEE08FAD6EACD8E8A69BBE77C6D110
password = some_secret_password

[backend]
endpoint = https://some.chain.interface/endpoint
contract = 0x50ee3ad2042a16c9a9b75b447947c7a7d2c53e29

[deployment]
port = 3000

Command Line Configuration

Any of the fields in the file configuration can also be used on the command line:

$ restful-identity --port=3000 --endpoint=https://some.chain.interface/endpoint --contract=0x50ee3ad2042a16c9a9b75b447947c7a7d2c53e29

Note that the grouped configs (backend and identity) MUST have BOTH arguments in order to override the file.

API

API Documentation can be found by running the server and visiting the /documentation/ route. Swagger descriptions can also be found at /documentation/json and /documentation/yaml.