{"id":17675359,"url":"https://github.com/numandev1/react-native-decompiler","last_synced_at":"2025-10-10T19:40:36.721Z","repository":{"id":40344039,"uuid":"332223862","full_name":"numandev1/react-native-decompiler","owner":"numandev1","description":"Decompile React Native Android/IOS Bundle.","archived":false,"fork":false,"pushed_at":"2023-03-31T10:08:17.000Z","size":250,"stargazers_count":318,"open_issues_count":13,"forks_count":29,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-23T09:51:41.046Z","etag":null,"topics":["android","apk","bundle","decompile","decompiler","ios","ipa","react-native"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/numandev1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2021-01-23T14:01:48.000Z","updated_at":"2025-07-13T22:00:34.000Z","dependencies_parsed_at":"2023-07-17T02:18:24.742Z","dependency_job_id":null,"html_url":"https://github.com/numandev1/react-native-decompiler","commit_stats":null,"previous_names":["nomi9995/react-native-decompiler"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/numandev1/react-native-decompiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-decompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-decompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-decompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-decompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numandev1","download_url":"https://codeload.github.com/numandev1/react-native-decompiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-decompiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005033,"owners_count":26083827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","apk","bundle","decompile","decompiler","ios","ipa","react-native"],"created_at":"2024-10-24T07:10:51.297Z","updated_at":"2025-10-10T19:40:36.703Z","avatar_url":"https://github.com/numandev1.png","language":"TypeScript","readme":"### Would you like to support me?\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/numandev1?tab=followers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/followers/numandev1?label=Follow%20%40numandev1\u0026style=social\" height=\"36\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.youtube.com/channel/UCYCUspfN7ZevgCj3W5GlFAw\"\u003e\u003cimg src=\"https://img.shields.io/youtube/channel/subscribers/UCYCUspfN7ZevgCj3W5GlFAw?style=social\" height=\"36\" /\u003e\u003ca/\u003e\n\u003c/br\u003e\n\u003ca href=\"https://www.buymeacoffee.com/numan.dev\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\n# React Native Decompiler [ALPHA]\nA CLI for React Native that allows you to decompile JS code of Android and IOS.\n\n\u003c!-- Title --\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/nomi9995/react-native-decompiler/HEAD/media/decompileIcon.png\" alt=\"icon\" width=\"150\"/\u003e\n\u003c/p\u003e\n\n**DOES NOT SUPPORT ENCRYPTED/BINARY (FACEBOOK, INSTAGRAM) BUNDLES**\n\nDecompiles React Native `index.android.bundle` JS files. Webpack files too!\n\nAlso tries to remove some compilation artifacts (via internal plugins, ESLint, and Prettier) to make it easier to read.\n\n\u003c!-- Body --\u003e\n\n### using npx\n```sh\nnpx react-native-decompiler\n```\n\n\n### using npm\n```sh\nnpm i -g react-native-decompiler\n```\n\n```sh\nreact-native-decompiler\n\n# or you can write blow command\n\nrnd\n```\n\n# Usage\nExample 1: `npx react-native-decompiler -i ./index.android.bundle -o ./output`\n\nExample 2: `npx react-native-decompiler -i ./main.jsbundle -o ./output`\n\nExample 3: `react-native-decompiler -i ./index.android.bundle -o ./output`\n\nExample 4: `rnd -i ./index.android.bundle -o ./output`\n\nCommand params:\n- `-i` (required) - input file/folder\n- `-o` (required) - the path to the output folder\n- `-e` - a module ID, if specified will only decompile that module \u0026 it's dependencies.\n- `-p` - performance monitoring flag, will print out runtime for each decompiler plugin\n- `-v` - verbose flag, does not include debug logging (use `DEBUG=react-native-decompiler:*` env flag for that)\n- `--es6` - attempts to decompile to ES6 module syntax.\n- `--noEslint` - does not run ESLint after doing decompilation\n- `--prettier` - does not run Prettier after doing decompilation\n- `--unpackOnly` - only unpacks the app with no other adjustments\n- `--decompileIgnored` - decompile ignored modules (modules are generally ignored if they are flagged as an NPM module)\n- `--agressiveCache` - skips some cache checks at the expense of possible cache desync\n- `--noProgress` - don't show progress bar\n- `--debug` - when also given a module ID, will print out that modules code after any plugin handles the app.\n\n# Android\n## Extract index.android.bundle from APK\n\n### installation of apktool\n\n#### For Macbook\n```\nbrew install apktool\n```\n\n#### For Linux\n```\napt-get install -y apktool\n```\n\n#### For Window\n\nyou can read installion step for window [DOCS](https://ibotpeaches.github.io/Apktool/install/ \"DOCS\")\n\nafter install `apktool`, unzip apk file by run this command on terminal like this:\n\n```\napktool  d /pathOfApkFile.apk\n```\n\nAfter that you will get `index.android.bundle` file at `pathOfApkFile/assets/index.android.bundle`\n\nthan you can use `react-native-decompiler` for decompile `index.android.bundle` file\n# IOS\n## Extract main.jsbundle from IPA\nyou can unzip `ipa` by unzip command on terminal\n```sh\n$ unzip AppName.ipa\n```\nafter unzip, you will get `Playload` folder, then you have to copy `main.jsbundle` file.\nthere are two ways to copy this file as follow below\n\n1. run this command `cp ./Payload/AppName.app/main.jsbundle ./` to get get `main.jsbundle` file\n\n2. Go to `Payload` folder and right click on `AppName.app` and choose `Show Package Contents` then you will find `main.jsbundle` file at root. you can copy this file to any location\n\nafter getting `main.jsbundle` you can use `react-native-decompiler` for decompile `main.jsbundle` file\n\n## Valid inputs\n\nThe following input formats are currently supported:\n- A single `index.android.bundle`/`main.jsbundle` file that contains all modules (most cases for React Native)\n- A folder containing React Native modules (usually called `js-modules`) in \"unbundled\" apps\n- A single Webpack entrypoint bundle file (entrypoint bundles begin with `!function(e)`, chunked bundles start with `window.webpackJsonp`)\n- A folder containg Webpack chunks, where at least one file is the entrypoint\n\n# Extending\n\nThe decompiler operates on a tagger -\u003e editor -\u003e decompiler system.\n\n* Taggers - Manipulates the module metadata\n* Editors - Manipulates the module lines (add, move, or remove).\n* Decompilers - Manipulates the module code.\n\nTo add a new plugin, add it into the represpective list.\n\nThe plugins are initialized per module, so any data you store in your plugins will only persist for the current module.\n\nIf your plugin needs to be run before or after other plugins, adjust the ordering in the list, or modify it's pass position.\n\nGuidelines:\n\n* When doing any modifications to the AST, use the NodePath methods.\n* When you are only doing reading, directly reading from `.node` is acceptable.\n\n\u003c!-- Footer --\u003e\n\n## Contributors ✨\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/richardfuca\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/10174185?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRichard\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/richardfuca/react-native-decompiler/commits?author=richardfuca\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/nomi9995\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/36044436?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNuman\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/nomi9995/react-native-decompiler/commits?author=nomi9995\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","funding_links":["https://www.buymeacoffee.com/numan.dev"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumandev1%2Freact-native-decompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumandev1%2Freact-native-decompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumandev1%2Freact-native-decompiler/lists"}