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

stellar-keystore

v2.0.1

Published

A library to aid in the generation of stellar keystore files

Readme

Stellar Keystore

This is a helper library for creating stellar keystore wallets.

What is a keystore wallet?

A keystore wallet is a data blob that stores an encrypted secret key. The objective of a keystore wallet is to allow a user who does not want to remember/manage a secret key and would instead rather manage a password, to store and securely encrypt their secret key using their desired password.

What does this library offer?

This library offers methods that will allow your application to create stellar keystore wallets (i.e. keystore wallets containing secret keys controlling stellar public keys) as well as retrieve a stellar keypair given a keystore wallet/password combination.

How does stellar-keystore accomplish this?

For more information on the internals please see: stellar-keystore third party audit

Getting Started

npm install stellar-keystore --save
import {StellarKeystore} from 'stellar-keystore';

You can also include it directly in the browser as a script tag and use StellarKeystore via the window object.

Methods

create()

Creates a keystore file's contents using a provided password and an optional keypair (uses a random keypair when no keypair is provided). Returns a json object representing the keypair file.

Use like so:

create('someRandomPassword', keypair);

createAndDownload()

This Method is Deprecated

Instead of using this method directly, we recommend using the create() method and then something like file saver to actually download the file

Creates a keystore file in the same manner as create() and downloads it.

Use like so:

createAndDownload('someRandomPassword', 'desiredFileName', keypair);

publicKey()

Retrieves a stellar public key from a keystore file.

Use like so:

publicKey(keystore);

where keystore is an object of type Blob or a json object representing a keystore wallet (i.e. the file contents of a keystore wallet file).

keypair()

Retrieves a stellar keypair from a keystore file.

Use like so:

keypair(keystore, 'passwordForFile');

where keystore is an object of type Blob or a json object representing a keystore wallet (i.e. the file contents of a keystore wallet file).