IPC mode
IPC mode starts your app with the appwire agent injected via --require, then opens a REPL connected over IPC.
appwireappwire --entry src/main.ts # override entry pointappwire --entry apps/backend/ # point to a directory.appwirerc
Section titled “.appwirerc”Add a .appwirerc file to your project root to persist the entry point:
{ "entry": "src/main.ts" }Appwire reads it automatically so you don’t need --entry every run.
Entry detection
Section titled “Entry detection”When --entry is omitted and no .appwirerc exists, Appwire reads package.json in this order:
mainfieldscripts.start— parses the command for the entry filescripts.dev— same- Falls back to
src/main.tsanddist/main.js
TypeScript
Section titled “TypeScript”If the entry is a .ts file, Appwire detects your TypeScript runtime from devDependencies and wraps accordingly. Supported: tsx, ts-node, ts-node-esm.
Session output
Section titled “Session output”appwire: detected entry src/main.ts (from scripts.start)appwire: using tsx for TypeScriptappwire: starting src/main.ts ...appwire(ipc:main.ts) > appwire: app ready (42 services)
appwire(ipc:main.ts) > $env.NODE_ENV'development' (0ms)Auto-reconnect
Section titled “Auto-reconnect”If the app crashes, Appwire restarts it and reconnects:
appwire: disconnectedappwire: reconnecting...appwire: restarting src/main.ts ...appwire: reconnectedUse .reload from the REPL to manually restart:
appwire(ipc:main.ts) > .reloadreloaded