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

blockin

v1.3.11

Published

<div id="top"></div> <!-- *** Thanks for checking out the Best-README-Template. If you have a suggestion *** that would make this better, please fork the repo and create a pull request *** or simply open an issue with the tag "enhancement". *** Don't forg

Downloads

620

Readme

Contributors Forks Stargazers Issues MIT License

About The Project

Blockin is a universal, multi-chain sign-in interface for Web 3.0 that supports micro-authorizations!

This README focuses mainly on this codebase. The Blockin Docs and the Blockin Demo provide much more documentation on what Blockin is, how it works, and how to use it.

Scope of the Library

This library supports creating digital authorization assets, such as NFTs, on any blockchain that supports them, as well as generating and verifying sign-in requests in the form of a challenge / response.

Note that the Blockin library does not handle signing the challenges and will never ask for your private key. Challenge signatures should be implemented separately. It only uses public data and cryptographic signatures to verify.

Usage

For using the Blockin library on either a backend or frontend codebase, all you will have to do is run

npm install blockin

Then, you can import via

import { ... } from 'blockin';'

Visit the Blockin Docs for documentation on how to use this library.

An example frontend and backend using Blockin can be found at Blockin Sample Integration Site.

  • The pages folder shows how to use it in the frontend. The api folder shows how to use it via a backend API.

Current Supported Chains

These are the chains that are natively supported by this library.

  • Algorand (AlgoDriver) via the blockin-algo-driver NPM package (Source Code).
    • Uses Purestake API and algosdk npm library

To add support for a new blockchain, please visit the README in the ChainDrivers folder.

We are currently working on adding implementations for more blockchains and also making it more convenient to import/export these templates.

Example Sites Using Blockin

Contributing to the Library

To develop and contribute to this library directly, all you should need to do is npm install.

The library has a few separate parts to it:

  • Smart Contracts: These live in the smart_contracts folder. This is where example smart contracts for the creation of assets and other use case examples can be found.
  • Blockin Library Functions: These live in the src folder (excluding the src/ui folder). This is for all the asset creation and verification functions.
    • If contributing to this part of the library, it is important that you become familiar with the ChainDriver interface and how it used. More information can be found at Blockin Docs.
  • UI Components: These importable UI components can be found in the src/ui folder. This, in theory, should be decoupled from the core library and able to eventually become its own library in the future.
    • View the README in src/ui for more information.

Everything is built using npm run build which creates a build folder in the dist directory. The build command first rolls up the UI components, and then it builds everything else.

Documentation

For more in-depth documentation, visit the Blockin Docs or the Blockin Paper.