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

svallet-core

v0.0.15

Published

Lighweight, consensus-based webwallet

Downloads

40

Readme

Svallet-Core

Tired of jumping from site to site to figure out the state of your cryptoassets? So are we!

The svallet is an entirely new kind of wallet. Rather than maintaining all of your data itself, the svallet knows where that data is held by others, compiles it and shows it to you in a concise, easy-to-understand format. Nothing to install if you run from svallet.info, and no blockchain to sync and parse if you install it yourself from here!

This repository contains the "core" of svallet - all the stuff on the client and server sides that queries and processes data from other sources.

Like this? Help me keep it going! 1Lhx85xtTjDTXHgXPVCBnBeJotG4kU5eK3

Usage

Installing the client code and server-side endpoints is very simple.

  1. Include svallet-core in your package.json.

  2. Add this to your express setup:

    var svallet_core = require( 'svallet-core' );
       
    var app = express();
    app.configure(function () {
        // Do your configuration and such in here; you've probably already got a bunch of stuff.
       
        // Add this at the end, so you can get the svallet client library.
        app.use(express.static( __dirname + '/node_modules/svallet-core/public' ));
    } );
       
    svallet_core.attach( app );
  3. Include the library file in any of your HTML files:

        <script src="/js/svallet-core.js"></script>
  4. Then in your javascript code, you can instantiate a svallet object, attach listeners, and then add some addresses:

    var svallet = new MultiAddressSvallet();
    
    svallet.on( 'all', function( type, data ) {
        console.log( 'Svallet change event (' + type + '):' );
        console.log( data );
    });
    
    svallet.add( '1Lhx85xtTjDTXHgXPVCBnBeJotG4kU5eK3' );
  5. It's that simple! Your event listeners should almost immediately begin to spew data regarding network connections, balances, values, and other data from a variety of sources.

Signing with your PGP key

Signing your commits with a PGP key is always appreciated.

  1. Generate a key: http://stackoverflow.com/a/16725717/364485
  2. Sign your commit: git commit -S (Works for merges too, don't need to sign every commit, just the last one before you push something up.
  3. Check the signature on your commit: git log --show-signature
  4. You may not have all the contributor's public keys, to verify. Most of them will be willing to send you either their key or its hash if you contact them (and contacting them is the best way to be sure you get the right one), then you can import it into your GPG client. For example, to get mine (https://github.com/curtislacy), gpg --recv-key 2A79E3932902383C