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

@bdcash-protocol/login

v1.0.2

Published

Enable ID BDCash Login for every website.

Downloads

9

Readme

Login with ID BDCASH

Main Features

This tool is useful if you need to easily implement a login system with bdcash. By default the tool produces an UI where the user can enter with:

  • Manent App: by usign the remote signing tool
  • Sid File: manually import previoysly stored .sid file
  • QR card: using a printed card

You can even choose what kind of identities the user must have so you can recognize him as a qualified user or leave the required attribute blank to allow anonymous users.

How to use it

First of all you need to include it in your project by including the bdcash.login.min.js file like:

<script src="./bdcash.login.min.js"></script>

You can even use the IPFS version, the hash is: QmZZVKCYK6v9RHrZkyPUoQH6hEHcNC7W8igULzzWGCp4kM like this:

<script src="https://ipfs.io/ipfs/QmZZVKCYK6v9RHrZkyPUoQH6hEHcNC7W8igULzzWGCp4kM"></script>

Then you need to write the rendering html, where you want to render the button:

<div id="bdcash-login" dapp="Demo dApp" callback="testCallback" required="phone"></div>

You can customize the login process by including these attributes:

  • dapp: customize showed title
  • callback: call the given callback when the login is successful, is required if you include one or more required identities, the return object will include it
  • required: the list of required identifiers separated by a comma (ex. phone,mail,ethereum,twitter)
  • gateway: if you want to admit one or more identity gateways, in this case you need to insert one or more pubkeys (ex. 0240f294ef20c7bbb82bae24d8d22c7ab94d195adf153162482b6bf540393d7dd5)

Test the project

If you want to test it you can simply download the package with git clone, install all dependencies with npm install and run the development enviorment with npm run dev.

Check the integrity with the blockchain

If you need to check the integrity of the file please use bdcash-bvc tool as documented here: https://github.com/BdcashProtocol/bdcash-blockchain-versioning-cli.

All the updates will be uploaded at https://proof.bdcashprotocol.com/#/address/8KuqWhNnJNvgBCLfc16RTQa2aqvk9ZxW6Z

Demo page

Check out this link to run a simple demo, available even at webpack/dist/index.html: https://bdcashprotocols.github.io/bdcash-login/