How princejwesley/mancy works
Mancy is an Electron/React desktop REPL. Users configure a language and editor, enter commands, and inspect interactive results; the app also offers a separate console, suggestions, preferences, and multiple language runtimes. The graph follows the documented workflow and source-index references. Several feature components are represented at directory level because their implementations were not sampled; those links are included only where README or index references support them.
Main entry points: Repl.js REPL coordinator · ReplActiveInput.js Command editor · app.js React app entry · ReplPreferencesStore.js Preferences state
Components 22
Desktop shell
- Electron host
src/main/index.js - Window menus
src/main/MenuManager.js - React app entry
src/app.js
REPL interaction
- REPL coordinator
src/components/Repl.js - Command editor
src/components/ReplActiveInput.js - Prompt view
src/components/ReplPrompt.js - Command history
src/components/ReplEntries.js - Suggestions
src/components/ReplSuggestions.js - Input state
src/stores/ReplActiveInputStore.js - Input actions
src/actions/ReplActiveInputActions.js
Language runtime
- Execution context
src/common/ReplContext.js - Runtime utilities
src/common/ReplCommon.js - Language selector
src/languages/ReplLanguages.js - Language adapters
src/languages
Output and settings
- Output dispatch
src/common/ReplOutput.js - Result viewers
src/components - DOM helpers
src/common/ReplDOM.js - Async console
src/components/ReplConsole.js - Console capture
src/common/ReplConsoleHook.js - Preferences UI
src/components/ReplPreferences.js - Preferences state
src/stores/ReplPreferencesStore.js - Settings defaults
src/constants/ReplConstants.js
Connections 24
- Electron host → Window menus: manages menus
src/main/index.js - React app entry → REPL coordinator: renders
src/app.js - React app entry → Suggestions: renders
src/app.js - React app entry → Preferences UI: renders
src/app.js - REPL coordinator → Command editor: uses
src/components/Repl.js - REPL coordinator → Prompt view: uses
src/components/Repl.js - REPL coordinator → Command history: renders
src/components/Repl.js - REPL coordinator → Async console: uses
src/components/Repl.js - REPL coordinator → Input actions: dispatches
src/components/Repl.js - Command editor → Input state: reads
src/components/ReplActiveInput.js - Input state → Input actions: listens to
src/stores/ReplActiveInputStore.js - Command editor → Execution context: executes in
src/components/ReplActiveInput.js - Command editor → Language selector: selects runtime
src/components/ReplActiveInput.js - Language selector → Language adapters: selects adapter
src/languages/ReplLanguages.js - Language adapters → Execution context: uses context
src/languages/ReplLangWrapper.js - Command editor → Output dispatch: formats results
src/components/ReplActiveInput.js - Output dispatch → Result viewers: renders values
src/common/ReplOutput.js - Output dispatch → DOM helpers: uses helpers
src/common/ReplOutput.js - Async console → Console capture: captures logs
src/components/ReplConsole.js - Preferences UI → Preferences state: reads settings
src/components/ReplPreferences.js - Preferences state → Settings defaults: uses constants
src/stores/ReplPreferencesStore.js - React app entry → Settings defaults: loads defaults
src/app.js - Preferences state → Language selector: updates compiler options
src/stores/ReplPreferencesStore.js - Preferences state → Execution context: configures paths
src/stores/ReplPreferencesStore.js