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

android-key-tools

v1.0.3

Published

Multi-tool CLI for Android Keystore fingerprints (SHA-1/SHA-256) and extracting from installed APKs.

Readme

🔑 Android Key Tools (Android Certificate Doctor)

npm version License: ISC

A multi-tool CLI for Android developers to easily extract SHA-1 and SHA-256 fingerprints from keystores, installed APKs, and google-services.json. Perfect for quickly configuring Firebase, Google Maps Platform, OAuth 2.0, or App Links.

✨ Features

This interactive CLI tool allows you to:

  1. 📱 Extract from Installed APK: Automatically detects connected devices via adb, pulls an installed APK by its package name, and reads its certificate fingerprints using apksigner.
  2. 🐛 Print Debug Keystore Fingerprints: Quickly reads the default ~/.android/debug.keystore and prints its SHA-1/SHA-256 fingerprints without needing to remember the complex keytool command.
  3. 🔐 Print Custom/Production Keystore Fingerprints: Prompts for a path to any .jks or .keystore file, and parses its fingerprints securely using keytool.
  4. 📋 List all Aliases (Keys): Quickly lists the names of all aliases available in a given keystore.
  5. 🔍 Check google-services.json: Analyzes your local google-services.json to list all registered certificate fingerprints and automatically cross-references them when extracting keys.

Bonus: The tool automatically verifies if the fingerprints it extracts are properly registered in your google-services.json!

🚀 Installation

You can run it directly using npx (recommended):

npx android-key-tools

Or install it globally:

npm install -g android-key-tools

🛠️ Requirements

  • adb available in your PATH or connected Android device (for extracting from APKs).
  • Android SDK installed (apksigner is automatically located if Android SDK is in default locations).
  • Java / keytool installed in your PATH (for keystore operations).

🎮 Usage

Simply run android-key-tools in your terminal. You'll be greeted with an interactive menu:

--- Android Certificate Doctor ---
1) Extract SHA-1/SHA-256 from an APK installed on a connected device
2) Print SHA-1/SHA-256 for the default Android Debug Keystore
3) Print SHA-1/SHA-256 for a custom/production Keystore
4) List all aliases (keys) in a Keystore
5) Check registered fingerprints in google-services.json
6) Exit

Select the desired option by entering its number and following the prompts.

📦 Publishing to npm

To publish this package to the public npm registry, follow these steps:

  1. Create an npm account on npmjs.com.
  2. Run npm login in your terminal and authenticate.
  3. Run npm publish in the root of this project.

Note: if the name android-key-tools is already taken on npm, you will need to rename the package in package.json to something else (e.g., @yourusername/android-key-tools) before publishing.


Made for Android developers to save time and sanity.