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

@abapify/p2-cli

v0.4.1

Published

CLI for Eclipse P2 repositories - download, extract, and decompile plugins

Readme

@abapify/p2-cli

CLI for Eclipse P2 repositories - download, extract, and decompile plugins.

Installation

# npm
npm install -g @abapify/p2-cli

# or run without installing globally
npx @abapify/p2-cli --help

Development

# From monorepo root
bun install
npx nx build p2-cli

# Or run directly with tsx
npx tsx tools/p2-cli/src/cli.ts

Publishing Bootstrap (maintainers)

p2-cli is wired into workspace release publishing via nx release.

# Validate npm publish/trusted-publisher readiness
bunx nx run p2-cli:npm-trust-check

# One-time bootstrap for new npm package/trusted publishing
bunx nx run p2-cli:npm-trust-check --prepare

Then publish from CI using the repository release workflow (which triggers .github/workflows/publish.yml).

Commands

p2 download <url>

Download plugins from a P2 repository.

# Download ADT plugins from SAP tools
p2 download https://tools.hana.ondemand.com/latest -o ./sdk

# Filter to specific plugins
p2 download https://tools.hana.ondemand.com/latest -o ./sdk -f "com.sap.adt.*"

# Download and extract in one step
p2 download https://tools.hana.ondemand.com/latest -o ./sdk --extract

Options:

  • -o, --output <dir> - Output directory (default: ./p2-download)
  • -f, --filter <patterns> - Filter plugins by ID pattern (comma-separated)
  • -e, --extract - Also extract files after download
  • --extract-output <dir> - Output directory for extraction
  • --extract-patterns <patterns> - File patterns to extract (default: *.xsd,*.ecore,*.genmodel,*.xml)

p2 extract <input>

Extract files from JAR archives. Works as a general-purpose JAR extractor.

# Extract schemas from downloaded plugins
p2 extract ./sdk/plugins -o ./extracted

# Extract specific file types
p2 extract ./sdk/plugins -o ./extracted -p "*.xsd,*.xml"

# Extract everything (no organization)
p2 extract ./sdk/plugins -o ./extracted -p "*" --no-organize

# Single JAR file
p2 extract ./my-plugin.jar -o ./extracted

Options:

  • -o, --output <dir> - Output directory (default: ./extracted)
  • -p, --patterns <patterns> - File patterns to extract (default: *.xsd,*.ecore,*.genmodel,*.xml)
  • --no-organize - Do not organize files by type (flat output)
  • -v, --verbose - Verbose output

Organized output structure:

extracted/
├── schemas/
│   ├── xsd/       # XML Schema definitions
│   ├── ecore/     # Eclipse EMF models
│   └── genmodel/  # Generator models
├── templates/     # Code templates
├── xml/           # Other XML files
├── classes/       # Java class files (by JAR)
└── sources/       # Java source files (by JAR)

p2 decompile <input>

Decompile Java class files to readable source code.

# Decompile extracted classes
p2 decompile ./extracted/classes -o ./decompiled

# Use specific decompiler
p2 decompile ./extracted/classes -o ./decompiled -d cfr

Options:

  • -o, --output <dir> - Output directory (default: ./decompiled)
  • -d, --decompiler <name> - Decompiler to use (cfr, procyon, fernflower)
  • -v, --verbose - Verbose output

Supported decompilers:

  • CFR - brew install cfr-decompiler (macOS/Linux)
  • Procyon - Download from GitHub
  • Fernflower - Bundled with IntelliJ IDEA

Examples

Download SAP ADT SDK

# Full workflow: download, extract, and organize
p2 download https://tools.hana.ondemand.com/latest \
  -o ./adt-sdk \
  -f "com.sap.adt.*,com.sap.conn.jco.*" \
  --extract \
  --extract-output ./adt-sdk/extracted

# Result:
# ./adt-sdk/
# ├── artifacts.jar
# ├── content.jar
# ├── plugins/
# │   ├── com.sap.adt.tools.core_3.54.1.jar
# │   └── ...
# └── extracted/
#     ├── schemas/xsd/
#     ├── schemas/ecore/
#     └── ...

Extract from existing Eclipse installation

# macOS
p2 extract /Applications/Eclipse.app/Contents/Eclipse/plugins \
  -o ./eclipse-schemas \
  -p "*.xsd"

# Linux
p2 extract ~/.eclipse/*/plugins -o ./eclipse-schemas

Requirements

  • Node.js 18+
  • wget command (for downloads)
  • unzip command (for extraction)
  • Java decompiler (optional, for decompilation)