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

sybil

v0.0.19

Published

Minimum viable decentralized identity

Readme

sybil.me - Minimum Viable Decentralized Identity

Introduction

Sybil lets you attach a basic social identity, consisting of a nickname and an avatar, to your Ethereum address that can be used easily used by any other dapp. The obvious candidates are social dapps (decentralized messaging, messageboards, microblogging, etc.), but many dapps in other domains would also benefit from the presence of nicknames and avatars to humanize their user's experience.

Principles

  • Simple code

The smart contract powering Sybil is less than 100 lines of code. Simple contracts are more secure and easily auditable.

  • Simple integration

Adding nicknames and pictures to the users of your dapp using the Sybil protocol can be done in a few minutes. We also provide various example dapps that use Sybil.

  • No unique nicknames

You should be called by any name you wish to be called. That's why your Sybil nickname is not unique, meaning that any number of people can share the same nickname. After all, you already have a unique id that other people and services can use to verify you — your Ethereum address!

  • No real names

We call it it "nickname" instead of "name" and "avatar" instead of "profile picture" because we want to encourage you not to use your legal name or an actual photo, as it more easily makes you subject to surveillance by states and corporations. Pseudonyms, i.e. non-legal names, give you the freedom you to safely manage and explore different facets of your identity.

Integration

Install the sybil library through NPM:

npm install sybil --save

To be able to read from and write to the Ethereum blockchain, you will need to use the web3 (v1.0) library and create a connection to an Ethereum provider.

import Web3 from 'web3';

// initialize web3 via the injected web3 from Metamask/Mist
const web3 = new Web3(window.web3);

// initialize web3 via a local RPC
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));

// initialize web3 via a remote provider
const web3 = new Web3(new Web3.providers.HttpProvider("https://mainnet.infura.io/"));

Now that you have initialized the web3 provider, you can now create a Sybil instance to interact with the Sybil smart contract.

import Sybil from 'sybil';

// initialize Sybil using the default contract address
const S = new Sybil(web3);

// initialize Sybil using a different contract address
const S = new Sybil(web3, {contractAddress: '0x1234567890abcdef1234567890abcdef12345678'});

To get information about an address:

// get the nickname associated with an address
await S.of('0x02f807d30DcA3bAb5C5b010F5D9a05e4876dcaB8').get('nickname');

// get the avatar URL associated with an address
await S.of('0x02f807d30DcA3bAb5C5b010F5D9a05e4876dcaB8').get('avatar');

To set information about an address:

// get the nickname associated with an address
await S.of('0x02f807d30DcA3bAb5C5b010F5D9a05e4876dcaB8').set('nickname', 'anastasis');

// get the avatar URL associated with an address
await S.of('0x02f807d30DcA3bAb5C5b010F5D9a05e4876dcaB8').uploadAndSet();

License

MIT