Skip to content

Node-APKAndroid APK Parser

A modern, type-safe library to parse Android application manifests, resources, and signatures

Node-APK Logo

Quick Start

bash
npm install node-apk
typescript
import { Apk } from "node-apk";

const apk = new Apk("app.apk");

// Get app information
const manifest = await apk.getManifestInfo();
console.log(`Package: ${manifest.package}`);
console.log(`Version: ${manifest.versionName}`);

// Get localized app name
const label = await apk.getLabel();
console.log(`App Name: ${label}`);

// Extract launcher icon
const icon = await apk.getLauncherIcon();

// Get signing certificates
const certs = await apk.getCertificateInfo();
console.log(`Signed by: ${certs[0].subject.get("CN")}`);

Why Node-APK?

Modern Architecture

Built from the ground up with modern JavaScript:

  • ESM-only - Native ES modules for tree-shaking and better performance
  • Async/await - Clean, readable asynchronous code
  • Type-safe - Comprehensive TypeScript definitions included

Comprehensive Feature Set

Everything you need to work with APK files:

  • Binary XML parsing for AndroidManifest.xml
  • Resource table parsing with locale support
  • Certificate chain extraction and validation
  • Icon extraction with density handling
  • Arbitrary file extraction from APK

Production Ready

Battle-tested and reliable:

  • 95%+ test coverage
  • Zero runtime dependencies for parsing
  • Active maintenance and community support

Sponsors

If you find this library useful, please consider sponsoring the project.

Released under the MIT License.