📄️ React (webpack) Refactor
The React webpack refactor (-t react-webpack) converts a webpack-bundled React application into a set of individual, human-readable ES module files. It is designed for bundles where all modules are packed into a single file under a numeric module map — the standard output produced by webpack 5 for React projects.
📄️ React (Vite) Refactor
The React Vite refactor (-t react-vite) converts a Vite-bundled React application into human-readable ES module files with canonical library imports and recovered JSX syntax. It targets bundles produced by Vite's rolldown bundler — the standard output for vite build with React projects.
📄️ Next.js (webpack) Refactor
The -t next-webpack technology refactors Next.js webpack bundle chunks into readable ES module files. It handles the minified module wrapper format emitted by Next.js when using the webpack bundler and recovers named exports, default exports, and import relationships.
📄️ Next.js (Turbopack) Refactor
The Next.js Turbopack refactor (-t next-turbopack) converts a Next.js bundle produced by the Turbopack bundler into human-readable ES module files with recovered imports, exports, and JSX syntax. It handles both native Turbopack module formats and the webpack-style modules that coexist in Turbopack bundles.
📄️ Vue.js (webpack) Refactor
The -t vue-webpack technology refactors Vue.js webpack bundle chunks into readable per-module ES files. It handles the webpack 4 and webpack 5 module wrapper formats used by Vue CLI and legacy Vue.js applications.
📄️ Vue.js (Vite) Refactor
The -t vue-vite technology refactors Vue 3 + Vite bundle chunks into readable ES module files. It handles the split-chunk output produced by @vitejs/plugin-vue with lazy-loaded routes.
📄️ Choosing the Right Scat Categories
The --scat flag controls which CS-MAST structural categories are used to fingerprint code during library module detection. Choosing the right combination affects how many library modules are stripped — a better scat config means a cleaner refactor output with less noise.
📄️ Remote Signature Stripping
By default, when running refactor -t without --collisions, the tool automatically downloads CS-MAST signature data from the HuggingFace bucket shriyanss/cs-mast-s-dataset and uses it to strip library/framework modules — no local baseline clone required.