Skip to main content

bundle-parser

Universal JS bundle extractor for routes, API endpoints, UI strings, i18n keys, and source maps.

Install

pip install .

Use

Command Line

bundle-parser path/to/bundle.js [output.json]

Example:

bundle-parser app.min.js report.json

Python API

from bundle_parser import parse_bundle_file

report = parse_bundle_file('app.min.js')

print("Bundler:", report.detection['bundler'])
print("Routes:", report.extraction['routes'])
print("API Endpoints:", report.extraction['api_endpoints'])
print("UI Strings:", report.extraction['ui_strings'])
print("Confidence:", report.confidence)

Example Output

{
  "detection": {
    "bundler": "webpack",
    "obfuscation": "partial",
    "has_source_map": true,
    "is_split_chunks": true,
    "detector_confidence": 0.92
  },
  "extraction": {
    "routes": ["/api/users", "/api/posts", "/dashboard"],
    "ui_strings": ["Welcome", "Loading...", "Error"],
    "ui_elements": ["Button", "Form", "Modal"],
    "api_endpoints": ["https://api.example.com/v1/users", "https://api.example.com/v1/posts"],
    "i18n_keys": ["common.welcome", "common.error"],
    "source_maps": ["app.min.js.map"],
    "chunks": ["app.chunk1.js", "app.chunk2.js"],
    "counts": {
      "routes": 3,
      "ui_strings": 3,
      "ui_elements": 3,
      "api_endpoints": 2,
      "i18n_keys": 2,
      "source_maps": 1,
      "chunks": 2
    }
  },
  "confidence": 0.87
}

What it provides

  • bundle_parser.parse_bundle_file(...) for programmatic use
  • bundle-parser console script for CLI runs

Dependencies

  • pyjsparser>=2.7.1

Metadata

Release files for bundle-parser 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bundle-parser 0.1.0
File Size Uploaded Provenance Actions
bundle_parser-0.1.0.tar.gz 15.8 kB Without provenance Details for bundle_parser-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bundle-parser 0.1.0
File Interpreter ABI Platform Actions
bundle_parser-0.1.0-py3-none-any.whl Python 3 none any Details for bundle_parser-0.1.0-py3-none-any.whl

Total release size: 35.2 kB

Release files / bundle_parser-0.1.0.tar.gz

Download URL bundle_parser-0.1.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4dd1edb05c52dac0e516a867f491b7fd00314acf94743d89595c675464571d4f
BLAKE2b-256 checksum
How to use checksums
684a41057b0c1c3c73f7490f4ec9f5ad0c1b0e2d0ddefa4a56fe999c82492893
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release files / bundle_parser-0.1.0-py3-none-any.whl

Download URL bundle_parser-0.1.0-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e0bc4923c873553c56373ea5f608afcfda4ddb065862355cd69f6d7037032b0
BLAKE2b-256 checksum
How to use checksums
e379fc45e05f5e67b0b58988e2674d2e6b4f9583fd5ab0d79eb1122e673f4492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Security for bundle-parser 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page