How mayanksingh-07/cyberchef works
CyberChef is a browser-based data transformation workbench, with a Node.js API as a second way to use its operations. The main user workflow is to provide input, compose a recipe, run it in the browser’s Chef worker, and inspect the resulting output. Its core models data as typed Dishes and executes configurable Operations; the large operation catalog covers encoding, cryptography, compression, parsing, image processing, and analysis. The README documents additional user features, including Magic detection, breakpoints, recipe sharing, and file handling. Some UI-to-worker wiring and feature implementations are unsampled, so those links rely only on documented behavior.
Main entry points: Manager.mjs Event Manager · Dish.mjs Typed Dish · App.mjs Application UI · Operation.mjs Operation Model
Components 23
Browser Workbench
- Application UI
src/web/App.mjs - Event Manager
src/web/Manager.mjs - Recipe Controls
src/web/waiters/RecipeWaiter.mjs - Input Handling
src/web/waiters/InputWaiter.mjs - Output Display
src/web/waiters/OutputWaiter.mjs - Status Display
src/web/utils/statusBar.mjs - Magic Detection
src/web/waiters/BackgroundWorkerWaiter.mjs
Recipe Execution
- Worker Coordination
src/web/waiters/WorkerWaiter.mjs - Chef Worker
src/core/ChefWorker.js - Recipe Engine
src/core/Chef.mjs - Recipe Model
src/core/Recipe.mjs - Operation Model
src/core/Operation.mjs
Typed Data
- Typed Dish
src/core/Dish.mjs - Dish Conversion
src/web/workers/DishWorker.mjs - Data Utilities
src/core/Utils.mjs - File Detection
src/core/lib/FileType.mjs
Operation Catalog
- Operations Catalog
src/core/operations - Algorithm Libraries
src/core/lib
Node Interface
- Node API
src/node/api.mjs - Node Recipe
src/node/NodeRecipe.mjs - Node Dish
src/node/NodeDish.mjs
Other components
- Analyst
- External Services
Connections 25
- Analyst → Application UI: uses
- Application UI → Event Manager: configures
src/web/App.mjs - Event Manager → Input Handling: sets up
src/web/Manager.mjs - Event Manager → Recipe Controls: sets up
src/web/Manager.mjs - Event Manager → Worker Coordination: sets up
src/web/Manager.mjs - Application UI → Output Display: shows results
- Output Display → Status Display: updates
src/web/waiters/OutputWaiter.mjs - Event Manager → Magic Detection: registers worker
src/web/Manager.mjs - Worker Coordination → Chef Worker: dispatches work
src/web/waiters/WorkerWaiter.mjs - Chef Worker → Recipe Engine: delegates
src/core/ChefWorker.js - Recipe Engine → Recipe Model: executes
src/core/Chef.mjs - Recipe Engine → Typed Dish: uses
src/core/Chef.mjs - Recipe Model → Operation Model: runs steps
- Operation Model → Typed Dish: converts data
src/core/Operation.mjs - Typed Dish → Data Utilities: uses
src/core/Dish.mjs - Typed Dish → File Detection: detects type
src/core/Dish.mjs - Dish Conversion → Typed Dish: converts
src/web/workers/DishWorker.mjs - Operations Catalog → Operation Model: provides operations
src/core/operations/HASSHClientFingerprint.mjs - Operation Model → Algorithm Libraries: uses algorithms
- Node API → Node Recipe: creates recipe
src/node/api.mjs - Node API → Node Dish: returns dish
src/node/api.mjs - Node Recipe → Node API: executes recipe
src/node/NodeRecipe.mjs - Analyst → Node API: uses API
- Magic Detection → Chef Worker: runs detection
src/web/waiters/BackgroundWorkerWaiter.mjs - Application UI → External Services: requests data