@demirarch/demcode
v0.1.2
Published
A minimal TUI code editor with AI assistant powered by OpenRouter
Readme
Recode
A minimal terminal code editor with an embedded AI assistant powered by OpenRouter.
Built with TypeScript + Ink.
Features
- Split-pane TUI: code editor (left) + AI chat (right)
- Syntax highlighting via
cli-highlight - Line numbers + cursor display
- OpenRouter AI integration (bring your own key)
- Model switching at runtime (
Ctrl+M) - Config persisted to
~/recode-data/config.json - First-launch setup wizard
Install
npm install -g recodeOr run from source:
git clone https://github.com/demirgitbuh/recode
cd recode
npm install
npm run dev [file]Usage
recode [file] # open a file
recode # start with empty bufferKeybindings
| Key | Action |
|-----|--------|
| Ctrl+Q | Quit |
| Ctrl+S | Save file |
| Ctrl+A | Focus AI panel |
| Ctrl+E | Focus editor |
| Enter | Send AI message |
| Ctrl+Enter | Send message + current file content to AI |
| Ctrl+M | Open model selector |
| Esc | Cancel / close overlay |
License
This project is dual-licensed:
- Open source (personal & non-commercial use): Apache License 2.0
- Commercial use (companies, SaaS, paid products): see COMMERCIAL.md
Made by DemirArch
