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

theglow

v4.1.3

Published

Client library for interacting with Zax Cryptographic Relay Servers.

Downloads

31

Readme

Glow Build Status

Glow is a reference client library for interacting with Zax, a NaCl-based Cryptographic Relay. You can read the full technical specification here. This reference implementation is in CoffeeScript. We will add links to other implementations in different languages as they become available.

Version 4.0 Update

Glow 4.0 introduces support for Zax 2.0 file exchange api. Full documentation is avaiable here

Test Dashboard

Glow powers a test Dashboard app to provide user-friendly access point to given relay internal mailboxes. We maintain live Test Server that runs our latest build. For testing purposes expiration on that relay is set for 30 minutes.

Installation

Glow can be easily installed via npm, which is included when you install Node.js. In a terminal, navigate to the directory in which you'd like to install Glow and type the following:

npm install theglow

The built version of Glow will be available in dist subdirectory, along with the minified copy.

NOTE: if you're going to use Glow in CLI mode, consider installing it globally: npm install -g theglow.

Command-line interface

To see commands that Glow utility provides, type in the terminal ./bin/glow.js (or just glow if you've installed it globally). Currently supported commands are:

glow clean <relay_url> <guest_public_key>                delete all files in mailbox on the relay
glow count <relay_url> <guest_public_key> [options]      show number of pending files on the relay
glow download <relay_url> <guest_public_key> [options]   download file(s) from the relay
glow key [options]                                       show public key or h2(pk), set/update private key
glow upload <relay_url> <guest_public_key> <file_url>    upload file to the relay
glow help [cmd]                                          display help for [cmd]

Use glow help [cmd] to learn more about supported options for each command. Note that private key must be set with glow key prior to any relay requests.

Running the tests

By default, unit tests connect to a local Zax Cryptographic Relay Server on http://localhost:8080. You may also run tests on our maintained test server by modifying the code in tests/helper.coffee#L37, or set your own remote relay URL in tests/helper.coffee#L42:

host: 'https://zax-test.vault12.com'

To create a build and run the tests, navigate to the glow directory and type the following in a terminal:

node_modules/gulp/bin/gulp.js

Note that if you have Gulp installed globally, you can also simply type gulp.

Note that only one instance of tests can be run at the same time, since test keys are derived from the same seeds. Running multiple instances simultaneously may cause unpredicted behavior.

Source maps

By default, the build generates source maps and places them in the build directory.

If you are new to using source maps to debug, here's an overview:

Chrome: Source Maps on Chrome

Safari: Source Maps on Safari

Firefox: Source Maps on Firefox

Running the tests at the command line

To run the command line tests, navigate to the glow directory and type the following in a terminal:

node_modules/gulp/bin/gulp.js test

Release Builds

Generate production-ready build via the command line:

node_modules/gulp/bin/gulp.js dist

This will create the appropriate files in the following directory: dist

Demo

To see Glow and Zax in action, check out the Live Demo. This is a test project included in Zax called Zax-Dash.

Contributing

We encourage you to contribute to Glow using pull requests! Please check out the Contributing to Glow Guide for guidelines about how to proceed.

Slack Community Slack Status

We've set up a public slack community Vault12 Dwellers. Request an invite by clicking here.

License License

Glow is released under the MIT License.

Legal Reminder

Exporting/importing and/or use of strong cryptography software, providing cryptography hooks, or even just communicating technical details about cryptography software is illegal in some parts of the world. If you import this software to your country, re-distribute it from there or even just email technical suggestions or provide source patches to the authors or other people you are strongly advised to pay close attention to any laws or regulations which apply to you. The authors of this software are not liable for any violations you make - it is your responsibility to be aware of and comply with any laws or regulations which apply to you.