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

apl-web-crypto

v1.0.29

Published

JS implementation of APL Crypto

Readme

Apollo Web Crypto

Disclaimer.

Apollo team is actively working on modularity of Apollo blockchain so build scripts and source structure is subject of changes. Apollo project consists of several modules written in different programming languages. If you are not an expert in Java and Maven, JavaScript, NodeJs, npm, yarn, C/C++ and Cmakle please use our release builds at Apollo Releases page.

If you feel like an expert, please use build instructions below. But also please note that instructions may be slightly outdated, especially in "development" branches of the Apollo project repositories.

Apollo is being developed by the Apollo Foundation and supporting members of the community.

This repository contains NPM module implementation of main crypto functions.

There are other components that are parts of Apollo:

  1. Apollo: Core classes of Apollo blockchain platform and main executable of Apollo-blockchain component.
  2. Apollo-web-ui: Web wallet UI that is served by Apollo blockchain node and can be accersed by browser at http://localhost:7876
  3. Apollo-dektop: Desktop wallet UI. Apollo-web-ui must be installed tobe able to run Apollo desktop wallet.
  4. Apollo-tools: "swiss knife" of tools for node maintenance, transaction signing, etc.
  5. Apollo-bom-ext: This module required in compilation time oly. It contains BOM of all external libraries used by Apollo components.

Requirements

The latest NodeJS LTS version is required to develop and build Apollo Web Crypto. It could be downloaded from NodeJS official site. For developers (Linux, OS X)Node Version Manager is highly recommended. If you use Windows OS, please consider trying Node Version Manager (nvm) for Windows.

Yarn is the build tool for Apollo-web-crypto. To install yarn, please run following command in a terminal window:

npm install -g yarn

Building

Firstly you need to generate api help folder. It is based on .yaml file in the main Apollo backend repository.

yarn install

For build of that module:

yarn build

Formatting and Linting

We are using Prettier and TsLint!

yarn lint
yarn format

Tests (with Jest)

In the src folder, we have folder called __tests__. Add a new file with a name you like, but it has to end with test.ts, for example FBCrypto.test.ts

Run tests:

yarn test

Bumping a new npm package version

Let’s bump a new patch version of the package:

npm version patch

Our preversion, version, and postversion will run, create a new tag in git and push it to our remote repository. Now publish:

npm publish --access=public

And now you have a new version.

Implementation

Reed-Solomon Encryption

To use the Reed-Solomon encryption, the corresponding cryptographic module can be used. To set it up, the following steps should be taken:

  1. Import Reed-Solomon encryption functions from the initial code: import {processAccountIDtoRS, processAccountRStoID} from 'apl-web-crypto';

  2. Usage: const accountRS = processAccountIDtoRS(accountID), where accountID is user's account id. This function will return account RS value like APL-XXXX-XXXX-XXXX-XXXXX

    const accountID = processAccountRStoID(accountRS), where accountRS is user's account like APL-XXXX-XXXX-XXXX-XXXXX. This function will return account id.