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

@ownft-platform/kriptou.js

v0.0.107-alpha.13

Published

Another kriptou (crypto) SDK

Readme

NPM Package Version NPM Package Downloads Build Status

A library that gives you access to the underlying blockchain

  • all client side
  • no backend needed

Getting started

Initialise

Without configuration

Kriptou.init();

With configuration

Kriptou.init(
    {
        /**
         * The log level.
         */
        logger: {
            level: 'info'
        },

        /**
         * Chain/network configuration.
         */
        chain: {
            performValidation: boolean,
            delayValidation: boolean,
            supportedChains: [Kriptou.supportedNetworks.Rinkarby],
            walletNotConnectedHandler: () => {
                // When the wallet is not connected 
            },
            chainCheckFailedHandler: () => {
                // When the current Chain Id selected in the wallet needs to be changed
            },
            
            /**
             * Whether the page reloads when the chain/network has changed.
             */
            changeReloadEnabled: boolean
        },

        /**
         * Accounts configuration.
         */
        accounts: {
            /**
             * Whether the page reloads when the account has changed.
             *
             * When the `changeHandler` is configured this setting is ignored and the page reload will not execute.
             */
            changeReloadEnabled: boolean,

            /**
             * Handler to execute when the account has changed.
             *
             * When this handler is configured then the page will not auto reload, the developer will have to implement the
             * page-reload in the handler if this behaviour is required.
             */
            changeHandler: (accounts: Array<string>) => {
                // When the account has changed (accounts is string array of connected wallet addresses)
            }
        }
    }
);

Events

React to 'UserLoggedIn' event (async):

Kriptou.Events.subscribe(
    {
        listener: 'ListenerName',
        event: Kriptou.events.UserLoggedIn
    },
    (user: Kriptou.Types.User) => {
        // do something with 'user'
    }
);

This subscribe method returns a Kriptou.Types.Subscription which can be used to unsubscribe again.

React to 'NetworkUpdated' event (async):

Kriptou.Events.subscribe(
    {
        listener: 'ListenerName',
        event: Kriptou.events.NetworkUpdated
    },
    (network: Kriptou.Types.Network | undefined) => {
        // do something with 'network', if undefined then selected network not supported
    }
);

This subscribe method returns a Kriptou.Types.Subscription which can be used to unsubscribe again.

Signature methods

sign

Calculates an Ethereum specific signature (web3.eth.personal.sign).

Kriptou.Signature.sign

verifySigner

Verifies whether the connected address (or the one provided as argument) signed the data with the sign method.

It uses the getSigner method under the hood.

Kriptou.Signature.verifySigner

getSigner

Gets the account (web3.eth.personal.ecRecover) that signed the data with the sign method.

Kriptou.Signature.getSigner

Next steps

Connect wallet

[TBC]

Retrieve user

[TBC]

Switch network

[TBC]

Browser applications

Angular project

(This documentation should live in an angular seed project rather)

With a newly created angular project, with angular-cli, ensure the following configs:

webpack.config.js

Put this file in the root of your project:

const webpack = require('webpack');

module.exports = {
    node: {
        global: true
    },
    resolve: {
        fallback: {
            stream: require.resolve('stream-browserify'),
            crypto: require.resolve('crypto-browserify'),
            assert: require.resolve('assert/'),
            http: require.resolve('stream-http'),
            https: require.resolve('https-browserify'),
            os: require.resolve('os-browserify/browser'),
            path: require.resolve('path-browserify'),
            url: false,
            events: require.resolve('events/')
        }
    },
    plugins: [
        new webpack.ProvidePlugin({
            process: 'process/browser',
            Buffer: ['buffer', 'Buffer']
        })
    ]
};

Node modules

Dependencies:

npm i stream-browserify crypto-browserify assert stream-http https-browserify os-browserify path-browserify events

Dev dependencies:

npm i @angular-builders/custom-webpack process --save-dev